about summary refs log tree commit diff stats
path: root/html/083scenario_screen_test.mu.html
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-09-28 20:08:04 -0700
committerKartik K. Agaram <vc@akkartik.com>2016-09-28 20:08:04 -0700
commit6c69569a4c4ca3a23635d4d7a40f0fe557194619 (patch)
tree162ab23faa9fdc402732f35b875b8755bb646b33 /html/083scenario_screen_test.mu.html
parent6f65d5918f4b73de56e6cb6362c7cbc7dbbe5945 (diff)
downloadmu-6c69569a4c4ca3a23635d4d7a40f0fe557194619.tar.gz
3430
Diffstat (limited to 'html/083scenario_screen_test.mu.html')
-rw-r--r--html/083scenario_screen_test.mu.html15
1 files changed, 7 insertions, 8 deletions
diff --git a/html/083scenario_screen_test.mu.html b/html/083scenario_screen_test.mu.html
index 6aa4e9d6..81fb48ec 100644
--- a/html/083scenario_screen_test.mu.html
+++ b/html/083scenario_screen_test.mu.html
@@ -31,9 +31,9 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color
 <span class="Comment"># To check our support for screens in scenarios, rewrite tests from print.mu</span>
 
 <span class="muScenario">scenario</span> print-character-at-top-left-2 [
+  <span class="Constant">local-scope</span>
   assume-screen <span class="Constant">3/width</span>, <span class="Constant">2/height</span>
   run [
-    <span class="Constant">local-scope</span>
     a:char<span class="Special"> &lt;- </span>copy <span class="Constant">97/a</span>
     screen:&amp;:screen<span class="Special"> &lt;- </span>print screen:&amp;:screen, a
   ]
@@ -44,15 +44,14 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color
 ]
 
 <span class="muScenario">scenario</span> clear-line-erases-printed-characters-2 [
+  <span class="Constant">local-scope</span>
   assume-screen <span class="Constant">5/width</span>, <span class="Constant">3/height</span>
+  <span class="Comment"># print a character</span>
+  a:char<span class="Special"> &lt;- </span>copy <span class="Constant">97/a</span>
+  screen:&amp;:screen<span class="Special"> &lt;- </span>print screen:&amp;:screen, a
+  <span class="Comment"># move cursor to start of line</span>
+  screen:&amp;:screen<span class="Special"> &lt;- </span>move-cursor screen:&amp;:screen, <span class="Constant">0/row</span>, <span class="Constant">0/column</span>
   run [
-    <span class="Constant">local-scope</span>
-    <span class="Comment"># print a character</span>
-    a:char<span class="Special"> &lt;- </span>copy <span class="Constant">97/a</span>
-    screen:&amp;:screen<span class="Special"> &lt;- </span>print screen:&amp;:screen, a
-    <span class="Comment"># move cursor to start of line</span>
-    screen:&amp;:screen<span class="Special"> &lt;- </span>move-cursor screen:&amp;:screen, <span class="Constant">0/row</span>, <span class="Constant">0/column</span>
-    <span class="Comment"># clear line</span>
     screen:&amp;:screen<span class="Special"> &lt;- </span>clear-line screen:&amp;:screen
   ]
   screen-should-contain [