diff options
Diffstat (limited to 'html/073scenario_screen_test.mu.html')
-rw-r--r-- | html/073scenario_screen_test.mu.html | 49 |
1 files changed, 24 insertions, 25 deletions
diff --git a/html/073scenario_screen_test.mu.html b/html/073scenario_screen_test.mu.html index 0da61050..3213a549 100644 --- a/html/073scenario_screen_test.mu.html +++ b/html/073scenario_screen_test.mu.html @@ -2,7 +2,7 @@ <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> -<title>Mu - 073scenario_screen_test.mu</title> +<title>~/Desktop/s/mu/073scenario_screen_test.mu</title> <meta name="Generator" content="Vim/7.4"> <meta name="plugin-version" content="vim7.4_v1"> <meta name="syntax" content="none"> @@ -14,9 +14,8 @@ pre { white-space: pre-wrap; font-family: monospace; color: #d0d0d0; background- body { font-family: monospace; color: #d0d0d0; background-color: #000000; } * { font-size: 1em; } .Comment { color: #8080ff; } -.Delimiter { color: #c000c0; } +.Constant { color: #008080; } .Special { color: #ff6060; } -.Identifier { color: #008080; } --> </style> @@ -30,33 +29,33 @@ body { font-family: monospace; color: #d0d0d0; background-color: #000000; } <pre id='vimCodeElement'> <span class="Comment"># To check our support for screens in scenarios, rewrite tests from print.mu</span> -scenario print-character-at-top-left2 <span class="Delimiter">[</span> - assume-screen 3:literal/width, 2:literal/height - run <span class="Delimiter">[</span> - screen:address<span class="Special"> <- </span>print-character screen:address, 97:literal <span class="Comment"># 'a'</span> - <span class="Delimiter">]</span> - screen-should-contain <span class="Delimiter">[</span> - <span class="Identifier"> .a</span> . - . . - <span class="Delimiter">]</span> -<span class="Delimiter">]</span> +scenario print-character-at-top-left2 [ + assume-screen <span class="Constant">3:literal/width</span>, <span class="Constant">2:literal/height</span> + run [ + screen:address<span class="Special"> <- </span>print-character screen:address, <span class="Constant">97:literal</span> <span class="Comment"># 'a'</span> + ] + screen-should-contain [ + <span class="Constant"> .a .</span> + <span class="Constant"> . .</span> + ] +] -scenario clear-line-erases-printed-characters2 <span class="Delimiter">[</span> - assume-screen 5:literal/width, 3:literal/height - run <span class="Delimiter">[</span> +scenario clear-line-erases-printed-characters2 [ + assume-screen <span class="Constant">5:literal/width</span>, <span class="Constant">3:literal/height</span> + run [ <span class="Comment"># print a character</span> - screen:address<span class="Special"> <- </span>print-character screen:address, 97:literal <span class="Comment"># 'a'</span> + screen:address<span class="Special"> <- </span>print-character screen:address, <span class="Constant">97:literal</span> <span class="Comment"># 'a'</span> <span class="Comment"># move cursor to start of line</span> - screen:address<span class="Special"> <- </span>move-cursor screen:address, 0:literal/row, 0:literal/column + screen:address<span class="Special"> <- </span>move-cursor screen:address, <span class="Constant">0:literal/row</span>, <span class="Constant">0:literal/column</span> <span class="Comment"># clear line</span> screen:address<span class="Special"> <- </span>clear-line screen:address - <span class="Delimiter">]</span> - screen-should-contain <span class="Delimiter">[</span> - . . - . . - . . - <span class="Delimiter">]</span> -<span class="Delimiter">]</span> + ] + screen-should-contain [ + <span class="Constant"> . .</span> + <span class="Constant"> . .</span> + <span class="Constant"> . .</span> + ] +] </pre> </body> </html> |