Skip to content

Commit

Permalink
xxx: test should error
Browse files Browse the repository at this point in the history
  • Loading branch information
aplavin committed Jul 16, 2024
1 parent 4dc2acc commit d1d5a46
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CairoMakie/src/screen.jl
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ Base.size(screen::Screen) = round.(Int, (screen.surface.width, screen.surface.he
# we render the scene directly, since we have
# no screen dependent state like in e.g. opengl
Base.insert!(screen::Screen, scene::Scene, plot) = nothing
Base.insert!(screen::Screen, scene::Scene, plot::Plot{plotlist}) = nothing
# Base.insert!(screen::Screen, scene::Scene, plot::Plot{plotlist}) = nothing
function Base.delete!(screen::Screen, scene::Scene, plot::AbstractPlot)
# Currently, we rerender every time, so nothing needs
# to happen here. However, in the event that changes,
Expand Down
3 changes: 2 additions & 1 deletion CairoMakie/test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@ end
end

@testset "plotlist no ambiguity" begin
plotlist([Makie.SpecApi.Scatter(1:10)])
f = plotlist([Makie.SpecApi.Scatter(1:10)])
save("test.png", f)
plotlist!([Makie.SpecApi.Scatter(1:10)])
end

Expand Down

0 comments on commit d1d5a46

Please sign in to comment.