Skip to content

Commit bba047a

Browse files
Tests: A few more automated verifications
1 parent 908faa5 commit bba047a

File tree

3 files changed

+19
-18
lines changed

3 files changed

+19
-18
lines changed
File renamed without changes.

tests/keyboard_window_control.lua

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ test.Step(
1010
function()
1111
a2d.OpenPath("A2.DESKTOP")
1212
a2d.WaitForRepaint()
13-
14-
a2d.OAShortcut("M")
15-
for i=1,3 do
16-
apple2.RightArrowKey()
17-
apple2.DownArrowKey()
18-
end
19-
apple2.EscapeKey()
20-
test.Snap("should not have moved")
13+
a2dtest.ExpectNothingHappened(function()
14+
a2d.OAShortcut("M")
15+
for i=1,5 do
16+
apple2.RightArrowKey()
17+
apple2.DownArrowKey()
18+
end
19+
apple2.EscapeKey()
20+
end)
2121
end)
2222

2323
test.Step(
@@ -27,7 +27,7 @@ test.Step(
2727
a2d.WaitForRepaint()
2828

2929
a2d.OAShortcut("M")
30-
for i=1,3 do
30+
for i=1,5 do
3131
apple2.RightArrowKey()
3232
apple2.DownArrowKey()
3333
end
@@ -42,13 +42,14 @@ test.Step(
4242
a2d.OpenPath("A2.DESKTOP")
4343
a2d.WaitForRepaint()
4444

45-
a2d.OAShortcut("G")
46-
for i=1,3 do
47-
apple2.RightArrowKey()
48-
apple2.DownArrowKey()
49-
end
50-
apple2.EscapeKey()
51-
test.Snap("should not have resized")
45+
a2dtest.ExpectNothingHappened(function()
46+
a2d.OAShortcut("G")
47+
for i=1,5 do
48+
apple2.RightArrowKey()
49+
apple2.DownArrowKey()
50+
end
51+
apple2.EscapeKey()
52+
end)
5253
end)
5354

5455
test.Step(
@@ -58,7 +59,7 @@ test.Step(
5859
a2d.WaitForRepaint()
5960

6061
a2d.OAShortcut("G")
61-
for i=1,3 do
62+
for i=1,5 do
6263
apple2.RightArrowKey()
6364
apple2.DownArrowKey()
6465
end

tests/window_headers.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ test.Step(
5555
test.Snap("verify right edge of header text is cut off")
5656
a2d.MoveWindowBy(-250, 0)
5757

58+
-- Get both scrollbars showing
5859
a2d.GrowWindowBy(-100,-50)
59-
test.Snap("both scrollbars?")
6060

6161
a2d.MoveWindowBy(-150, 0)
6262
test.Snap("verify left edge of header text is cut off")

0 commit comments

Comments
 (0)