@@ -10,11 +10,12 @@ test.Step(
1010 function ()
1111 a2d .AddShortcut (" /A2.DESKTOP/READ.ME" )
1212 a2d .RenamePath (" /A2.DESKTOP/READ.ME" , " README" )
13- a2d .OAShortcut (" 1" )
14- test .Snap (" verify alert shown" )
15- apple2 .EscapeKey ()
16- a2d .WaitForRepaint ()
17- test .Snap (" verify alert dismissed" )
13+ a2dtest .ExpectNothingHappened (function ()
14+ a2d .OAShortcut (" 1" )
15+ test .Snap (" verify alert shown" )
16+ apple2 .EscapeKey ()
17+ a2d .WaitForRepaint ()
18+ end )
1819end )
1920
2021test .Step (
@@ -24,12 +25,13 @@ test.Step(
2425 a2d .ToggleOptionShowShortcutsOnStartup () -- Enable
2526 a2d .Reboot ()
2627
27- apple2 .Type (" 1" )
28- a2d .DialogOK ()
29- test .Snap (" verify alert shown" )
30- apple2 .EscapeKey ()
31- a2d .WaitForRepaint ()
32- test .Snap (" verify alert dismissed" )
28+ a2dtest .ExpectNothingHappened (function ()
29+ apple2 .Type (" 1" )
30+ a2d .DialogOK ()
31+ test .Snap (" verify alert shown" )
32+ apple2 .EscapeKey ()
33+ a2d .WaitForRepaint ()
34+ end )
3335
3436 apple2 .Type (" D" ) -- Desktop
3537 a2d .WaitForRestart ()
@@ -84,8 +86,7 @@ test.Step(
8486 emu .wait (2 / 60 )
8587 test .Snap (" verify down on yes" )
8688 m .MoveByApproximately (20 , 20 )
87- m .ButtonUp ()
88- test .Snap (" verify nothing happened" )
89+ a2dtest .ExpectNothingHappened (m .ButtonUp )
8990 m .MoveToApproximately (yes_x ,btn_y )
9091 m .Click ()
9192 emu .wait (5 ) -- allow copy to continue
@@ -95,8 +96,7 @@ test.Step(
9596 emu .wait (2 / 60 )
9697 test .Snap (" verify down on no" )
9798 m .MoveByApproximately (20 , 20 )
98- m .ButtonUp ()
99- test .Snap (" verify nothing happened" )
99+ a2dtest .ExpectNothingHappened (m .ButtonUp )
100100 m .MoveToApproximately (yes_x ,btn_y )
101101 m .Click ()
102102 emu .wait (5 ) -- allow copy to continue
@@ -106,8 +106,7 @@ test.Step(
106106 emu .wait (2 / 60 )
107107 test .Snap (" verify down on all" )
108108 m .MoveByApproximately (20 , 20 )
109- m .ButtonUp ()
110- test .Snap (" verify nothing happened" )
109+ a2dtest .ExpectNothingHappened (m .ButtonUp )
111110 m .MoveToApproximately (all_x ,btn_y )
112111 m .Click ()
113112 emu .wait (5 ) -- allow copy to continue
0 commit comments