diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-12-26 20:44:10 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-12-26 20:58:37 -0800 |
commit | 201458e3bd2f1d79a0ea0b853552e9df267e92b1 (patch) | |
tree | 0a4f13662cde7f92ae0bcf641c9733e2a0fcd6ef /html/edit/009-sandbox-test.mu.html | |
parent | e35c2d6857e1ed916221faae707e3c53ff8ed042 (diff) | |
download | mu-201458e3bd2f1d79a0ea0b853552e9df267e92b1.tar.gz |
3713 - cross-link calls with definitions in html
Diffstat (limited to 'html/edit/009-sandbox-test.mu.html')
-rw-r--r-- | html/edit/009-sandbox-test.mu.html | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/html/edit/009-sandbox-test.mu.html b/html/edit/009-sandbox-test.mu.html index 9361df24..52631e6f 100644 --- a/html/edit/009-sandbox-test.mu.html +++ b/html/edit/009-sandbox-test.mu.html @@ -71,12 +71,12 @@ if ('onhashchange' in window) { <span id="L12" class="LineNr"> 12 </span><span class="Constant"> |]</span>| <span id="L13" class="LineNr"> 13 </span> ] <span id="L14" class="LineNr"> 14 </span> ] -<span id="L15" class="LineNr"> 15 </span> env:&:environment <span class="Special"><-</span> new-programming-environment resources, screen, <span class="Constant">[foo]</span> +<span id="L15" class="LineNr"> 15 </span> env:&:environment <span class="Special"><-</span> new-programming-environment <a href='088file.mu.html#L11'>resources</a>, <a href='081print.mu.html#L4'>screen</a>, <span class="Constant">[foo]</span> <span id="L16" class="LineNr"> 16 </span> <span class="Comment"># run it</span> <span id="L17" class="LineNr"> 17 </span> assume-console [ <span id="L18" class="LineNr"> 18 </span> press F4 <span id="L19" class="LineNr"> 19 </span> ] -<span id="L20" class="LineNr"> 20 </span> event-loop screen, console, env, resources +<span id="L20" class="LineNr"> 20 </span> event-loop <a href='081print.mu.html#L4'>screen</a>, <a href='084console.mu.html#L23'>console</a>, env, <a href='088file.mu.html#L11'>resources</a> <span id="L21" class="LineNr"> 21 </span> screen-should-contain [ <span id="L22" class="LineNr"> 22 </span> <span class="Constant"> . run (F4) .</span> <span id="L23" class="LineNr"> 23 </span> <span class="Constant"> .recipe foo [ ╎ .</span> @@ -92,7 +92,7 @@ if ('onhashchange' in window) { <span id="L33" class="LineNr"> 33 </span> left-click<span class="Constant"> 5</span>,<span class="Constant"> 51</span> <span id="L34" class="LineNr"> 34 </span> ] <span id="L35" class="LineNr"> 35 </span> run [ -<span id="L36" class="LineNr"> 36 </span> event-loop screen, console, env, resources +<span id="L36" class="LineNr"> 36 </span> event-loop <a href='081print.mu.html#L4'>screen</a>, <a href='084console.mu.html#L23'>console</a>, env, <a href='088file.mu.html#L11'>resources</a> <span id="L37" class="LineNr"> 37 </span> ] <span id="L38" class="LineNr"> 38 </span> <span class="Comment"># color toggles to green</span> <span id="L39" class="LineNr"> 39 </span> screen-should-contain-in-color <span class="Constant">2/green</span>, [ @@ -108,7 +108,7 @@ if ('onhashchange' in window) { <span id="L49" class="LineNr"> 49 </span> <span class="Comment"># cursor should remain unmoved</span> <span id="L50" class="LineNr"> 50 </span> run [ <span id="L51" class="LineNr"> 51 </span> cursor:char <span class="Special"><-</span> copy <span class="Constant">9251/␣</span> -<span id="L52" class="LineNr"> 52 </span> print screen, cursor +<span id="L52" class="LineNr"> 52 </span> print <a href='081print.mu.html#L4'>screen</a>, cursor <span id="L53" class="LineNr"> 53 </span> ] <span id="L54" class="LineNr"> 54 </span> screen-should-contain [ <span id="L55" class="LineNr"> 55 </span> <span class="Constant"> . run (F4) .</span> @@ -129,7 +129,7 @@ if ('onhashchange' in window) { <span id="L70" class="LineNr"> 70 </span> press F4 <span id="L71" class="LineNr"> 71 </span> ] <span id="L72" class="LineNr"> 72 </span> run [ -<span id="L73" class="LineNr"> 73 </span> event-loop screen, console, env, resources +<span id="L73" class="LineNr"> 73 </span> event-loop <a href='081print.mu.html#L4'>screen</a>, <a href='084console.mu.html#L23'>console</a>, env, <a href='088file.mu.html#L11'>resources</a> <span id="L74" class="LineNr"> 74 </span> ] <span id="L75" class="LineNr"> 75 </span> <span class="Comment"># result turns red</span> <span id="L76" class="LineNr"> 76 </span> screen-should-contain-in-color <span class="Constant">1/red</span>, [ @@ -156,14 +156,14 @@ if ('onhashchange' in window) { <span id="L97" class="LineNr"> 97 </span> expected-response:text <span class="Special"><-</span> get *curr, <span class="Constant">expected-response:offset</span> <span id="L98" class="LineNr"> 98 </span> <span class="muControl">break-unless</span> expected-response <span id="L99" class="LineNr"> 99 </span> filename <span class="Special"><-</span> append filename, <span class="Constant">[.out]</span> -<span id="L100" class="LineNr">100 </span> resources <span class="Special"><-</span> dump resources, filename, expected-response +<span id="L100" class="LineNr">100 </span> <a href='088file.mu.html#L11'>resources</a> <span class="Special"><-</span> <a href='088file.mu.html#L127'>dump</a> <a href='088file.mu.html#L11'>resources</a>, filename, expected-response <span id="L101" class="LineNr">101 </span> <span class="Delimiter">}</span> <span id="L102" class="LineNr">102 </span>] <span id="L103" class="LineNr">103 </span> <span id="L104" class="LineNr">104 </span><span class="muRecipe">before</span> <span class="Constant"><end-restore-sandbox></span> [ <span id="L105" class="LineNr">105 </span> <span class="Delimiter">{</span> <span id="L106" class="LineNr">106 </span> filename <span class="Special"><-</span> append filename, <span class="Constant">[.out]</span> -<span id="L107" class="LineNr">107 </span> contents <span class="Special"><-</span> slurp resources, filename +<span id="L107" class="LineNr">107 </span> contents <span class="Special"><-</span> <a href='088file.mu.html#L38'>slurp</a> <a href='088file.mu.html#L11'>resources</a>, filename <span id="L108" class="LineNr">108 </span> <span class="muControl">break-unless</span> contents <span id="L109" class="LineNr">109 </span> *curr <span class="Special"><-</span> put *curr, <span class="Constant">expected-response:offset</span>, contents <span id="L110" class="LineNr">110 </span> <span class="Delimiter">}</span> @@ -188,12 +188,12 @@ if ('onhashchange' in window) { <span id="L129" class="LineNr">129 </span> <span class="muControl">break-unless</span> sandbox <span id="L130" class="LineNr">130 </span> <span class="Comment"># toggle its expected-response, and save session</span> <span id="L131" class="LineNr">131 </span> sandbox <span class="Special"><-</span> toggle-expected-response sandbox -<span id="L132" class="LineNr">132 </span> save-sandboxes env, resources -<span id="L133" class="LineNr">133 </span> hide-screen screen -<span id="L134" class="LineNr">134 </span> screen <span class="Special"><-</span> render-sandbox-side screen, env, render -<span id="L135" class="LineNr">135 </span> screen <span class="Special"><-</span> update-cursor screen, recipes, current-sandbox, sandbox-in-focus?, env +<span id="L132" class="LineNr">132 </span> save-sandboxes env, <a href='088file.mu.html#L11'>resources</a> +<span id="L133" class="LineNr">133 </span> <a href='081print.mu.html#L623'>hide-screen</a> <a href='081print.mu.html#L4'>screen</a> +<span id="L134" class="LineNr">134 </span> <a href='081print.mu.html#L4'>screen</a> <span class="Special"><-</span> render-sandbox-side <a href='081print.mu.html#L4'>screen</a>, env, render +<span id="L135" class="LineNr">135 </span> <a href='081print.mu.html#L4'>screen</a> <span class="Special"><-</span> update-cursor <a href='081print.mu.html#L4'>screen</a>, recipes, current-sandbox, sandbox-in-focus?, env <span id="L136" class="LineNr">136 </span> <span class="Comment"># no change in cursor</span> -<span id="L137" class="LineNr">137 </span> show-screen screen +<span id="L137" class="LineNr">137 </span> <a href='081print.mu.html#L631'>show-screen</a> <a href='081print.mu.html#L4'>screen</a> <span id="L138" class="LineNr">138 </span> <span class="muControl">loop</span> <span class="Constant">+next-event</span> <span id="L139" class="LineNr">139 </span> <span class="Delimiter">}</span> <span id="L140" class="LineNr">140 </span>] @@ -251,11 +251,11 @@ if ('onhashchange' in window) { <span id="L192" class="LineNr">192 </span> response-is-expected?:bool <span class="Special"><-</span> equal expected-response, sandbox-response <span id="L193" class="LineNr">193 </span> <span class="Delimiter">{</span> <span id="L194" class="LineNr">194 </span> <span class="muControl">break-if</span> response-is-expected?:bool -<span id="L195" class="LineNr">195 </span> row, screen <span class="Special"><-</span> render-text screen, sandbox-response, left, right, <span class="Constant">1/red</span>, row +<span id="L195" class="LineNr">195 </span> row, <a href='081print.mu.html#L4'>screen</a> <span class="Special"><-</span> render-text <a href='081print.mu.html#L4'>screen</a>, sandbox-response, left, right, <span class="Constant">1/red</span>, row <span id="L196" class="LineNr">196 </span> <span class="Delimiter">}</span> <span id="L197" class="LineNr">197 </span> <span class="Delimiter">{</span> <span id="L198" class="LineNr">198 </span> <span class="muControl">break-unless</span> response-is-expected?:bool -<span id="L199" class="LineNr">199 </span> row, screen <span class="Special"><-</span> render-text screen, sandbox-response, left, right, <span class="Constant">2/green</span>, row +<span id="L199" class="LineNr">199 </span> row, <a href='081print.mu.html#L4'>screen</a> <span class="Special"><-</span> render-text <a href='081print.mu.html#L4'>screen</a>, sandbox-response, left, right, <span class="Constant">2/green</span>, row <span id="L200" class="LineNr">200 </span> <span class="Delimiter">}</span> <span id="L201" class="LineNr">201 </span> <span class="muControl">jump</span> <span class="Constant">+render-sandbox-end</span> <span id="L202" class="LineNr">202 </span> <span class="Delimiter">}</span> |