diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2017-06-09 11:29:15 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2017-06-09 11:29:15 -0700 |
commit | 6d12a8c4ebe25527c92a934702e2628ce8c4bd4c (patch) | |
tree | 051825d9664a06fc3bc7085031fe62dfeb94c417 /sandbox/011-errors.mu | |
parent | f53746f80145a184b5e4a6974175e2f92f49dcba (diff) | |
download | mu-6d12a8c4ebe25527c92a934702e2628ce8c4bd4c.tar.gz |
3902 - drop redundant redraw of recipe side on F4
This change is interesting because I only updated one test to gain confidence that F4 will never redraw the recipe side. (Most of the changes are to explicitly render-all before each scenario.)
Diffstat (limited to 'sandbox/011-errors.mu')
-rw-r--r-- | sandbox/011-errors.mu | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sandbox/011-errors.mu b/sandbox/011-errors.mu index 7c04621d..06a5fb16 100644 --- a/sandbox/011-errors.mu +++ b/sandbox/011-errors.mu @@ -163,6 +163,7 @@ scenario run-updates-status-with-first-erroneous-sandbox [ assume-resources [ ] env:&:environment <- new-programming-environment resources, screen, [] + render-all screen, env, render assume-console [ # create invalid sandbox 1 type [get foo, x:offset] @@ -187,6 +188,7 @@ scenario run-updates-status-with-first-erroneous-sandbox-2 [ assume-resources [ ] env:&:environment <- new-programming-environment resources, screen, [] + render-all screen, env, render assume-console [ # create invalid sandbox 2 type [get foo, x:offset] @@ -214,6 +216,7 @@ scenario run-hides-errors-from-past-sandboxes [ assume-resources [ ] env:&:environment <- new-programming-environment resources, screen, [get foo, x:offset] # invalid + render-all screen, env, render assume-console [ press F4 # generate error ] @@ -256,6 +259,7 @@ scenario run-updates-errors-for-shape-shifting-recipes [ ] ] env:&:environment <- new-programming-environment resources, screen, [foo 2] + render-all screen, env, render assume-console [ press F4 ] @@ -307,6 +311,7 @@ scenario run-avoids-spurious-errors-on-reloading-shape-shifting-recipes [ test-sandbox:text <- new [x:&:list:num <- copy 0 to-text x] env:&:environment <- new-programming-environment resources, screen, test-sandbox + render-all screen, env, render # run it once assume-console [ press F4 @@ -357,6 +362,7 @@ scenario run-shows-missing-type-errors [ ] ] env:&:environment <- new-programming-environment resources, screen, [foo] + render-all screen, env, render assume-console [ press F4 ] @@ -385,6 +391,7 @@ scenario run-shows-unbalanced-bracket-errors [ ] ] env:&:environment <- new-programming-environment resources, screen, [foo] + render-all screen, env, render assume-console [ press F4 ] @@ -418,6 +425,7 @@ scenario run-shows-get-on-non-container-errors [ ] ] env:&:environment <- new-programming-environment resources, screen, [foo] + render-all screen, env, render assume-console [ press F4 ] @@ -450,6 +458,7 @@ scenario run-shows-non-literal-get-argument-errors [ ] ] env:&:environment <- new-programming-environment resources, screen, [foo] + render-all screen, env, render assume-console [ press F4 ] @@ -481,6 +490,7 @@ scenario run-shows-errors-everytime [ ] ] env:&:environment <- new-programming-environment resources, screen, [foo] + render-all screen, env, render assume-console [ press F4 ] @@ -520,6 +530,7 @@ scenario run-instruction-and-print-errors [ ] # editor contains an illegal instruction env:&:environment <- new-programming-environment resources, screen, [get 1:&:point, 1:offset] + render-all screen, env, render assume-console [ press F4 ] @@ -559,6 +570,7 @@ scenario run-instruction-and-print-errors-only-once [ ] # editor contains an illegal instruction env:&:environment <- new-programming-environment resources, screen, [get 1234:num, foo:offset] + render-all screen, env, render # run the code in the editors multiple times assume-console [ press F4 @@ -593,6 +605,7 @@ scenario sandbox-can-handle-infinite-loop [ loop }] env:&:environment <- new-programming-environment resources, screen, test-sandbox + render-all screen, env, render # run the sandbox assume-console [ press F4 @@ -632,6 +645,7 @@ scenario sandbox-with-errors-shows-trace [ ] ] env:&:environment <- new-programming-environment resources, screen, [foo 4, 0] + render-all screen, env, render # run assume-console [ press F4 |