diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2017-08-22 09:50:06 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2017-08-22 09:50:06 -0700 |
commit | 8a92572df505eab170912e082e085301e7fecddd (patch) | |
tree | 9db133bf1f048de9f146dfabda21c1736510e01e /html/edit/009-sandbox-test.mu.html | |
parent | fc97f6670d3094f1a5f213ec3a3f7134a14ddadd (diff) | |
download | mu-8a92572df505eab170912e082e085301e7fecddd.tar.gz |
3983
Diffstat (limited to 'html/edit/009-sandbox-test.mu.html')
-rw-r--r-- | html/edit/009-sandbox-test.mu.html | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/html/edit/009-sandbox-test.mu.html b/html/edit/009-sandbox-test.mu.html index 5b817172..c6ef7017 100644 --- a/html/edit/009-sandbox-test.mu.html +++ b/html/edit/009-sandbox-test.mu.html @@ -159,7 +159,7 @@ if ('onhashchange' in window) { <span id="L96" class="LineNr"> 96 </span>] <span id="L97" class="LineNr"> 97 </span> <span id="L98" class="LineNr"> 98 </span><span class="Comment"># include expected response when saving or restoring a sandbox</span> -<span id="L99" class="LineNr"> 99 </span><span class="muRecipe">before</span> <span class="Constant"><a href='005-sandbox.mu.html#L251'><end-save-sandbox></a></span> [ +<span id="L99" class="LineNr"> 99 </span><span class="muRecipe">before</span> <span class="Constant"><a href='005-sandbox.mu.html#L248'><end-save-sandbox></a></span> [ <span id="L100" class="LineNr">100 </span> <span class="Delimiter">{</span> <span id="L101" class="LineNr">101 </span> <span class="Conceal">¦</span> expected-response:text <span class="Special"><-</span> get *sandbox, <span class="Constant">expected-response:offset</span> <span id="L102" class="LineNr">102 </span> <span class="Conceal">¦</span> <span class="muControl">break-unless</span> expected-response @@ -168,7 +168,7 @@ if ('onhashchange' in window) { <span id="L105" class="LineNr">105 </span> <span class="Delimiter">}</span> <span id="L106" class="LineNr">106 </span>] <span id="L107" class="LineNr">107 </span> -<span id="L108" class="LineNr">108 </span><span class="muRecipe">before</span> <span class="Constant"><a href='005-sandbox.mu.html#L493'><end-restore-sandbox></a></span> [ +<span id="L108" class="LineNr">108 </span><span class="muRecipe">before</span> <span class="Constant"><a href='005-sandbox.mu.html#L490'><end-restore-sandbox></a></span> [ <span id="L109" class="LineNr">109 </span> <span class="Delimiter">{</span> <span id="L110" class="LineNr">110 </span> <span class="Conceal">¦</span> filename <span class="Special"><-</span> append filename, <span class="Constant">[.out]</span> <span id="L111" class="LineNr">111 </span> <span class="Conceal">¦</span> contents <span class="Special"><-</span> <a href='../088file.mu.html#L38'>slurp</a> <a href='../088file.mu.html#L11'>resources</a>, filename @@ -197,7 +197,7 @@ if ('onhashchange' in window) { <span id="L134" class="LineNr">134 </span> <span class="Conceal">¦</span> <span class="Comment"># update it</span> <span id="L135" class="LineNr">135 </span> <span class="Conceal">¦</span> sandbox <span class="Special"><-</span> <a href='009-sandbox-test.mu.html#L180'>toggle-expected-response</a> sandbox <span id="L136" class="LineNr">136 </span> <span class="Conceal">¦</span> <span class="Comment"># minimal update to disk</span> -<span id="L137" class="LineNr">137 </span> <span class="Conceal">¦</span> <a href='005-sandbox.mu.html#L245'>save-sandbox</a> <a href='../088file.mu.html#L11'>resources</a>, sandbox, sandbox-index +<span id="L137" class="LineNr">137 </span> <span class="Conceal">¦</span> <a href='005-sandbox.mu.html#L242'>save-sandbox</a> <a href='../088file.mu.html#L11'>resources</a>, sandbox, sandbox-index <span id="L138" class="LineNr">138 </span> <span class="Conceal">¦</span> <span class="Comment"># minimal update to screen</span> <span id="L139" class="LineNr">139 </span> <span class="Conceal">¦</span> sandbox-right-margin:num <span class="Special"><-</span> get *current-sandbox, <span class="Constant">right:offset</span> <span id="L140" class="LineNr">140 </span> <span class="Conceal">¦</span> row:num <span class="Special"><-</span> <a href='009-sandbox-test.mu.html#L207'>render-sandbox-response</a> <a href='../081print.mu.html#L16'>screen</a>, sandbox, sandbox-left-margin, sandbox-right-margin @@ -258,7 +258,7 @@ if ('onhashchange' in window) { <span id="L195" class="LineNr">195 </span>] <span id="L196" class="LineNr">196 </span> <span id="L197" class="LineNr">197 </span><span class="Comment"># when rendering a sandbox, color it in red/green if expected response exists</span> -<span id="L198" class="LineNr">198 </span><span class="muRecipe">after</span> <span class="Constant"><a href='005-sandbox.mu.html#L314'><render-sandbox-response></a></span> [ +<span id="L198" class="LineNr">198 </span><span class="muRecipe">after</span> <span class="Constant"><a href='005-sandbox.mu.html#L311'><render-sandbox-response></a></span> [ <span id="L199" class="LineNr">199 </span> <span class="Delimiter">{</span> <span id="L200" class="LineNr">200 </span> <span class="Conceal">¦</span> <span class="muControl">break-unless</span> sandbox-response <span id="L201" class="LineNr">201 </span> <span class="Conceal">¦</span> *sandbox <span class="Special"><-</span> put *sandbox, <span class="Constant">response-starting-row-on-screen:offset</span>, row @@ -275,21 +275,21 @@ if ('onhashchange' in window) { <span id="L212" class="LineNr">212 </span> row:num <span class="Special"><-</span> get *sandbox <span class="Constant">response-starting-row-on-screen:offset</span> <span id="L213" class="LineNr">213 </span> <span class="Delimiter">{</span> <span id="L214" class="LineNr">214 </span> <span class="Conceal">¦</span> <span class="muControl">break-if</span> expected-response -<span id="L215" class="LineNr">215 </span> <span class="Conceal">¦</span> row <span class="Special"><-</span> <a href='005-sandbox.mu.html#L401'>render-text</a> <a href='../081print.mu.html#L16'>screen</a>, sandbox-response, left, right, <span class="Constant">245/grey</span>, row +<span id="L215" class="LineNr">215 </span> <span class="Conceal">¦</span> row <span class="Special"><-</span> <a href='005-sandbox.mu.html#L398'>render-text</a> <a href='../081print.mu.html#L16'>screen</a>, sandbox-response, left, right, <span class="Constant">245/grey</span>, row <span id="L216" class="LineNr">216 </span> <span class="Conceal">¦</span> <span class="muControl">return</span> <span id="L217" class="LineNr">217 </span> <span class="Delimiter">}</span> <span id="L218" class="LineNr">218 </span> response-is-expected?:bool <span class="Special"><-</span> equal expected-response, sandbox-response <span id="L219" class="LineNr">219 </span> <span class="Delimiter">{</span> <span id="L220" class="LineNr">220 </span> <span class="Conceal">¦</span> <span class="muControl">break-if</span> response-is-expected? -<span id="L221" class="LineNr">221 </span> <span class="Conceal">¦</span> row <span class="Special"><-</span> <a href='005-sandbox.mu.html#L401'>render-text</a> <a href='../081print.mu.html#L16'>screen</a>, sandbox-response, left, right, <span class="Constant">1/red</span>, row +<span id="L221" class="LineNr">221 </span> <span class="Conceal">¦</span> row <span class="Special"><-</span> <a href='005-sandbox.mu.html#L398'>render-text</a> <a href='../081print.mu.html#L16'>screen</a>, sandbox-response, left, right, <span class="Constant">1/red</span>, row <span id="L222" class="LineNr">222 </span> <span class="Delimiter">}</span> <span id="L223" class="LineNr">223 </span> <span class="Delimiter">{</span> <span id="L224" class="LineNr">224 </span> <span class="Conceal">¦</span> <span class="muControl">break-unless</span> response-is-expected?:bool -<span id="L225" class="LineNr">225 </span> <span class="Conceal">¦</span> row <span class="Special"><-</span> <a href='005-sandbox.mu.html#L401'>render-text</a> <a href='../081print.mu.html#L16'>screen</a>, sandbox-response, left, right, <span class="Constant">2/green</span>, row +<span id="L225" class="LineNr">225 </span> <span class="Conceal">¦</span> row <span class="Special"><-</span> <a href='005-sandbox.mu.html#L398'>render-text</a> <a href='../081print.mu.html#L16'>screen</a>, sandbox-response, left, right, <span class="Constant">2/green</span>, row <span id="L226" class="LineNr">226 </span> <span class="Delimiter">}</span> <span id="L227" class="LineNr">227 </span>] <span id="L228" class="LineNr">228 </span> -<span id="L229" class="LineNr">229 </span><span class="muRecipe">before</span> <span class="Constant"><a href='005-sandbox.mu.html#L328'><end-render-sandbox-reset-hidden></a></span> [ +<span id="L229" class="LineNr">229 </span><span class="muRecipe">before</span> <span class="Constant"><a href='005-sandbox.mu.html#L325'><end-render-sandbox-reset-hidden></a></span> [ <span id="L230" class="LineNr">230 </span> *sandbox <span class="Special"><-</span> put *sandbox, <span class="Constant">response-starting-row-on-screen:offset</span>,<span class="Constant"> 0</span> <span id="L231" class="LineNr">231 </span>] </pre> |