From 32efde4a49e45580762d6d782655de61551b239c Mon Sep 17 00:00:00 2001 From: Jared Wahlstrand Date: Sat, 7 Dec 2024 09:05:27 -0500 Subject: [PATCH] don't use TestImages in tests It's currently broken with Gtk4's CI. --- test/Project.toml | 4 ++-- test/gdkpixbuf.jl | 4 ++-- test/gui/examples.jl | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/test/Project.toml b/test/Project.toml index 21e5763a..dc737c87 100644 --- a/test/Project.toml +++ b/test/Project.toml @@ -5,5 +5,5 @@ ColorTypes = "3da002f7-5984-5a60-b8a6-cbb66c0b333f" Colors = "5ae59095-9a9b-59fe-a467-6f913c188581" ModernGL = "66fc600b-dfda-50eb-8b99-91cfa97b1301" Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" -TestImages = "5e47fb64-e119-507b-a336-dd2b206d9990" -ImageIO = "82e4d734-157c-48bb-816b-45c225c6df19" \ No newline at end of file +ImageIO = "82e4d734-157c-48bb-816b-45c225c6df19" +FixedPointNumbers = "53c48c17-4a7d-5ca2-90c5-79b7896eea93" diff --git a/test/gdkpixbuf.jl b/test/gdkpixbuf.jl index c117c598..ab7def2e 100644 --- a/test/gdkpixbuf.jl +++ b/test/gdkpixbuf.jl @@ -1,7 +1,7 @@ -using Test, Gtk4, Gtk4.GdkPixbufLib, Colors, TestImages +using Test, Gtk4, Gtk4.GdkPixbufLib, Colors, FixedPointNumbers @testset "GdkTexture" begin - img = testimage("mountainstream") + img = rand(RGB{N0f8}, 512, 768) t = GdkMemoryTexture(img) @test size(t) == reverse(size(img)) # image is transposed p = GdkPaintable(t) diff --git a/test/gui/examples.jl b/test/gui/examples.jl index 327e9c2c..d55f1e02 100644 --- a/test/gui/examples.jl +++ b/test/gui/examples.jl @@ -66,10 +66,10 @@ end destroy(main_window) end - @testset "Show Image" begin - include(joinpath(@__DIR__, "..", "..", "examples", "show_image.jl")) - destroy(win) - end + #@testset "Show Image" begin + # include(joinpath(@__DIR__, "..", "..", "examples", "show_image.jl")) + # destroy(win) + #end @testset "CSS Style" begin include(joinpath(@__DIR__, "..", "..", "examples", "css-style.jl"))