Skip to content

Commit

Permalink
Merge pull request #25 from JuliaPluto/show-test-pass-at-first-frame
Browse files Browse the repository at this point in the history
  • Loading branch information
fonsp authored Mar 9, 2022
2 parents dec4a38 + bde9881 commit be78e59
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/notebook.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1414,7 +1414,7 @@ p-frame-controls {
""")

# ╔═╡ e968fc57-d850-4e2d-9410-8777d03b7b3c
function frames(fs::Vector, startframe = nothing)
function frames(fs::Vector; startframe::Union{Nothing,Int}=nothing)
l = length(fs)

startframe = if isnothing(startframe)
Expand Down Expand Up @@ -1623,7 +1623,10 @@ begin
<pt-dot class="floating top"></pt-dot>
<pt-dot class="floating bottom"></pt-dot>
$(frames(SlottedDisplay.( call.steps)))
$(frames(
SlottedDisplay.( call.steps);
startframe=isa(call,Pass) ? 1 : nothing,
))
</div>
<style>
$(pluto_test_css.code)
Expand Down

0 comments on commit be78e59

Please sign in to comment.