Skip to content

Commit

Permalink
add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bjarthur committed Oct 1, 2024
1 parent d71a7e4 commit 423a1c9
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion ReferenceTests/src/tests/figures_and_makielayout.jl
Original file line number Diff line number Diff line change
Expand Up @@ -410,4 +410,16 @@ end
Makie.Checkbox(f[2, 4], checked = false, checkboxcolor_unchecked = :yellow)
Makie.Checkbox(f[2, 5], checked = true, checkboxcolor_checked = :orange)
f
end
end

@reference_test "Textbox" begin
f = Figure()
tb = Makie.Textbox(f[1,1])
Makie.set!(tb, "1234567890qwertyuiop")
tbw= Makie.Textbox(f[2,1], width=100)
Makie.set!(tbw, "1234567890qwertyuiop")
tbw.cursorindex[] = 20
tbw.focused[] = true
f.scene.events.keyboardbutton[] = Makie.KeyEvent(Makie.Keyboard.backspace, Makie.Keyboard.press)
f
end

0 comments on commit 423a1c9

Please sign in to comment.