Skip to content

Commit 4c5dfe2

Browse files
Tests: More automated verification
1 parent 852bf01 commit 4c5dfe2

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

tests/calculator.lua

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,9 @@ test.Step(
7171
m.ButtonUp()
7272
end)
7373
a2d.WaitForRepaint()
74-
apple2.Type("123.456")
75-
test.Snap("verify no bad repaint while obscured")
74+
a2dtest.ExpectNothingChanged(function()
75+
apple2.Type("123.456")
76+
end)
7677

7778
a2d.InMouseKeysMode(function(m)
7879
m.MoveToApproximately(apple2.SCREEN_WIDTH/2,apple2.SCREEN_HEIGHT)

tests/options.lua

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,11 @@ test.Step(
5555
m.ButtonUp()
5656
end)
5757
a2d.WaitForRepaint()
58-
a2d.OAShortcut("1")
59-
a2d.OAShortcut("2")
60-
a2d.OAShortcut("3")
61-
test.Snap("verify no mispaints")
58+
a2dtest.ExpectNothingChanged(function()
59+
a2d.OAShortcut("1")
60+
a2d.OAShortcut("2")
61+
a2d.OAShortcut("3")
62+
end)
6263
a2d.CloseWindow()
6364
a2d.CloseAllWindows()
6465
end)

0 commit comments

Comments
 (0)