Skip to content

Commit 16ee212

Browse files
Tests: split out some tests from tests/desktop/basics.lua
Just to make running subsets easier. No coverage changes.
1 parent a9469d1 commit 16ee212

5 files changed

Lines changed: 1199 additions & 1171 deletions

File tree

tests/desktop/about.lua

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
a2d.ConfigureRepaintTime(0.25)
2+
3+
--[[
4+
Launch DeskTop. Apple Menu > About Apple II DeskTop. Click anywhere
5+
on the screen. Verify that the dialog closes.
6+
]]
7+
test.Step(
8+
"About dialog closes on click",
9+
function()
10+
a2d.CloseAllWindows()
11+
a2d.InvokeMenuItem(a2d.APPLE_MENU, a2d.ABOUT_APPLE_II_DESKTOP)
12+
a2d.InMouseKeysMode(function(m)
13+
m.Click()
14+
end)
15+
emu.wait(1)
16+
test.ExpectEquals(a2dtest.GetWindowCount(), 0, "dialog should have dismissed")
17+
end)
18+
19+
--[[
20+
Launch DeskTop. Apple Menu > About Apple II DeskTop. Press any
21+
non-modifier key screen. Verify that the dialog closes.
22+
]]
23+
test.Step(
24+
"About dialog closes on key",
25+
function()
26+
a2d.CloseAllWindows()
27+
a2d.InvokeMenuItem(a2d.APPLE_MENU, a2d.ABOUT_APPLE_II_DESKTOP)
28+
apple2.Type("A")
29+
emu.wait(1)
30+
test.ExpectEquals(a2dtest.GetWindowCount(), 0, "dialog should have dismissed")
31+
end)
32+

0 commit comments

Comments
 (0)