Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
jkrumbiegel committed Dec 8, 2023
1 parent b2ac59d commit 7d81ccf
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions GLMakie/test/unit_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -393,3 +393,13 @@ end

GLMakie.closeall()
end

@testset "image size changes" begin
s = Scene()
im = image!(s, 0..10, 0..10, zeros(RGBf, 10, 20))
display(s)
im[3][] = zeros(RGBf, 20, 10) # same length, different size
im[3][] = zeros(RGBf, 15, 5) # smaller size
im[3][] = zeros(RGBf, 25, 15) # larger size
GLMakie.closeall()
end

0 comments on commit 7d81ccf

Please sign in to comment.