From 9c2421ec0de599af01080a7a2483f482e1e56ecd Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Thu, 9 Jun 2016 16:51:29 -0700 Subject: 3039 - bug fix in edit/ Thanks Caleb Couch for finding this. --- edit/010-sandbox-trace.mu | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) (limited to 'edit/010-sandbox-trace.mu') diff --git a/edit/010-sandbox-trace.mu b/edit/010-sandbox-trace.mu index 1a9f93dc..3451cc4b 100644 --- a/edit/010-sandbox-trace.mu +++ b/edit/010-sandbox-trace.mu @@ -121,6 +121,48 @@ recipe foo [ ] ] +scenario clicking-on-app-trace-does-nothing [ + trace-until 100/app # trace too long + assume-screen 100/width, 10/height + 1:address:array:character <- new [] + # create and expand the trace + 2:address:array:character <- new [stash 123456789] + assume-console [ + press F4 + left-click 4, 51 + ] + 3:address:programming-environment-data <- new-programming-environment screen:address:screen, 1:address:array:character, 2:address:array:character + event-loop screen:address:screen, console:address:console, 3:address:programming-environment-data + screen-should-contain [ + . run (F4) . + . ┊ . + .┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┊━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + . ┊0 edit copy delete . + . ┊stash 123456789 . + . ┊123456789 . + . ┊━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + . ┊ . + ] + # click on the stash under the edit-button region (or any of the other buttons, really) + assume-console [ + left-click 5, 57 + ] + run [ + event-loop screen:address:screen, console:address:console, 3:address:programming-environment-data + ] + # no change; doesn't die + screen-should-contain [ + . run (F4) . + . ┊ . + .┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┊━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + . ┊0 edit copy delete . + . ┊stash 123456789 . + . ┊123456789 . + . ┊━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━. + . ┊ . + ] +] + container sandbox-data [ trace:address:array:character display-trace?:boolean -- cgit 1.4.1-2-gfad0