Skip to content

Commit

Permalink
a few more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jwahlstrand committed Jun 23, 2024
1 parent 16c8061 commit 2602452
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions test/gdkpixbuf.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ using Test, Gtk4, Gtk4.GdkPixbufLib, Colors, TestImages

t2 = GdkMemoryTexture(img,false)
@test size(t2) == size(img)
arr = Gtk4.toarray(t2)
@test size(arr) == size(img)
end

@testset "pixbuf" begin
Expand Down
3 changes: 2 additions & 1 deletion test/gui/canvas.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ gs = GtkEventControllerScroll(Gtk4.EventControllerScrollFlags_VERTICAL,c)
gk = GtkEventControllerKey(c)
ggc = GtkGestureClick(c)
ggd = GtkGestureDrag(c)
gsc = GtkShortcutController(c)
gsc = GtkShortcutController(c)
Gtk4.add_action_shortcut(gsc,"<Control>S","win.copy")
ggz = GtkGestureZoom(c)
t = Gtk4.find_controller(c,GtkEventControllerMotion)
@test t==gm
Expand Down
2 changes: 2 additions & 0 deletions test/gui/layout.jl
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ end
push!(nb, four, "tab _four")
@test pagenumber(nb, four) == 4
@test length(nb) == 4
deleteat!(nb, 3)
@test length(nb) == 3
empty!(nb)
@test length(nb) == 0
destroy(w)
Expand Down

0 comments on commit 2602452

Please sign in to comment.