summaryrefslogtreecommitdiff
path: root/gui/test/basic.script
diff options
context:
space:
mode:
Diffstat (limited to 'gui/test/basic.script')
-rw-r--r--gui/test/basic.script103
1 files changed, 93 insertions, 10 deletions
diff --git a/gui/test/basic.script b/gui/test/basic.script
index 220eb0b..cf23a47 100644
--- a/gui/test/basic.script
+++ b/gui/test/basic.script
@@ -1,33 +1,116 @@
console launch {TARGET}
await stops 1
-console break work
+type :break work
+expect command_open true
+key return
+expect command_open false
+type ?
+expect help true
+key escape
+expect help false
console continue
await stops 2
expect status stopped
-key f10
+key s
await stops 3
frames 6
screenshot {STRIKE}
frames 60
screenshot {SETTLED}
-expect-different-screenshot {STRIKE} {SETTLED} 24 756 1280 280
-key left
+expect-different-screenshot {STRIKE} {SETTLED} 24 844 1072 360
+key left_bracket
expect following false
expect moment 1
-key end
+# Browsing and per-pane history do not execute the target.
+console goto memory 0x1000
+wheel 1500 1000 -0.5
+expect nav[2].place.row 1.5
+console goto memory 0x2000
+console mouse-button 4 1500 1000
+expect nav[2].place.address 4096
+expect nav[2].place.row 1.5
+console mouse-button 5 1500 1000
+expect nav[2].place.address 8192
+hold left_ctrl
+key o
+release left_ctrl
+expect nav[2].place.address 4096
+console goto memory 0x3000
+console mouse-button 5 1500 1000
+expect nav[2].place.address 12288
+key j
+expect nav[2].place.row 1
+key g
+key g
+expect nav[2].place.row 0
+hold left_ctrl
+key d
+release left_ctrl
+expect nav[2].place.row 7.5
+key f
+expect nav[2].place.follow true
+# Rendered code addresses route to disassembly, including source-aligned rows.
+console mouse-button 3 650 122
+expect focus code
+expect nav[0].place.follow false
+console mouse-button 4 650 122
+expect nav[0].place.follow true
+console mouse-button 5 650 122
+expect nav[0].place.follow false
+key f
+# Stack storage addresses route to telescope.
+console mouse-button 3 250 855
+expect focus stack
+expect nav[1].place.follow false
+console mouse-button 4 250 855
+expect nav[1].place.follow true
+console mouse-button 5 250 855
+expect nav[1].place.follow false
+key f
+expect status stopped
+expect stops 3
+expect moment 1
+# A real address lens, with an animated rise and real recorded bytes.
+click 250 855
+expect lens true
+frames 6
+screenshot {LENS}
+frames 30
+screenshot {LENS_SETTLED}
+expect-different-screenshot {LENS} {LENS_SETTLED} 1090 580 1120 230
+key escape
+expect lens false
+# Opening from a call-frame address keeps its origin visible.
+click 1700 726
+expect lens true
+frames 30
+screenshot {FRAME_LENS}
+key escape
+expect lens false
+# Minimap dragging moves the viewport without changing the target.
+down 2175 950
+move 2175 1100
+up 2175 1100
+expect focus memory
+key f
+expect nav[2].place.follow true
+expect stops 3
+hold left_shift
+key f
+release left_shift
expect following true
expect moment 2
console clear 1
-key f5
+key c
await status running
-key f5
+key escape
await status stopped
-click 260 50
+click 80 54
await stops 5
-key f11
+key n
await stops 6
expect status stopped
expect-no-log InterruptFailed
expect-no-log CommandFailed
-key f5
+key c
await status running