diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-01-27 15:27:29 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-01-27 15:27:29 -0800 |
commit | 95425355a01edf284a86d0873e63d88071221ed8 (patch) | |
tree | ac293fa0a23a3e51c17faef4de2ebdf36fced6f0 /edit/005-sandbox.mu | |
parent | 5516dd288d705fed42f2c099471b19a76481b18a (diff) | |
download | mu-95425355a01edf284a86d0873e63d88071221ed8.tar.gz |
2608 - fix-up tests in sandbox/ app
When I first forked it from the edit/ app, I wasn't sure how to deal with changing the recipe side when the only way the program accesses it is with the untestable 'restore' hack. Now we introduce a little hook into event-loop and pass in any updated recipe side directly. In the process I've cleaned up several minor stylistic inconsistencies between edit/ and sandbox/ apps.
Diffstat (limited to 'edit/005-sandbox.mu')
-rw-r--r-- | edit/005-sandbox.mu | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/edit/005-sandbox.mu b/edit/005-sandbox.mu index e8f97fce..568c7cb1 100644 --- a/edit/005-sandbox.mu +++ b/edit/005-sandbox.mu @@ -721,9 +721,7 @@ scenario scrolling-down-on-recipe-side [ assume-console [ press F4 ] - run [ - event-loop screen:address:shared:screen, console:address:shared:console, 3:address:shared:programming-environment-data - ] + event-loop screen:address:shared:screen, console:address:shared:console, 3:address:shared:programming-environment-data # hit 'down' in recipe editor assume-console [ press down-arrow @@ -733,8 +731,7 @@ scenario scrolling-down-on-recipe-side [ 4:character/cursor <- copy 9251/␣ print screen:address:shared:screen, 4:character/cursor ] - # sandbox editor hidden; first sandbox displayed - # cursor moves to first sandbox + # cursor moves down on recipe side screen-should-contain [ . . . ┊ . @@ -763,11 +760,9 @@ scenario scrolling-through-multiple-sandboxes [ type [add 1, 1] press F4 ] - run [ - event-loop screen:address:shared:screen, console:address:shared:console, 3:address:shared:programming-environment-data - 4:character/cursor <- copy 9251/␣ - print screen:address:shared:screen, 4:character/cursor - ] + event-loop screen:address:shared:screen, console:address:shared:console, 3:address:shared:programming-environment-data + 4:character/cursor <- copy 9251/␣ + print screen:address:shared:screen, 4:character/cursor screen-should-contain [ . . . ┊␣ . @@ -917,9 +912,7 @@ scenario scrolling-manages-sandbox-index-correctly [ type [add 1, 1] press F4 ] - run [ - event-loop screen:address:shared:screen, console:address:shared:console, 3:address:shared:programming-environment-data - ] + event-loop screen:address:shared:screen, console:address:shared:console, 3:address:shared:programming-environment-data screen-should-contain [ . . . ┊ . |