Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
jkrumbiegel committed Nov 1, 2023
1 parent b1b38d5 commit 1c874bd
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/scenes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,17 @@
end
@test theme(nothing, :nonexistant, default=1) == 1
@test theme(scene, :nonexistant, default=1) == 1

# test that deprecated `resolution keyword still works but throws warning`
errstring = mktemp() do path, io
redirect_stderr(io) do
scene = Scene(; resolution = (999, 999), size = (123, 123))
@test scene.px_area[] == Rect2i((0, 0), (999, 999))
end
flush(io)
s = read(path, String)
end
@test occursin("The `resolution` keyword for `Scene`s and `Figure`s has been deprecated", errstring)
end

@testset "Lighting" begin
Expand Down

0 comments on commit 1c874bd

Please sign in to comment.