scratch-vm/test/fixtures/execute
Christopher Willis-Ford 281a3e256a test: fix flaky test execute/order-changes-backwards-2-broadcast-and-wait-repeat-message.sb2
Before: sprite 3 uses the `wait` block to wait for the other two sprites
to finish. After the `wait` blocks, sprite 3 sends "end" to the test. If
the sprites take too long to finish, they might not be done before the
"end" message.

After: sprite 3 sets a variable called `finished` to zero on startup,
and increments it every time it hears a new message. Each sprite sends
that new message once it's done. When sprite 3 notices that `finished >=
2`, it sends the "end" message.
2022-07-06 13:18:45 -07:00
..
broadcast-wait-arg-change.sb2 update test 2020-08-12 13:21:19 -04:00
control-if-false-then-else.sb2 Move execute integration fixtures into test/fixtures 2018-05-02 15:54:54 -04:00
control-if-false-then.sb2 Move execute integration fixtures into test/fixtures 2018-05-02 15:54:54 -04:00
control-if-true-then-else.sb2 Move execute integration fixtures into test/fixtures 2018-05-02 15:54:54 -04:00
control-if-true-then.sb2 Move execute integration fixtures into test/fixtures 2018-05-02 15:54:54 -04:00
control-stop-all-leaks.sb2 test that stop all stops current threads next tick 2019-04-11 14:29:42 -04:00
data-operators-global.sb2 add execute integration masked variable and list test 2018-09-27 11:57:24 -04:00
data-operators-local.sb2 add execute integration masked variable and list test 2018-09-27 11:57:24 -04:00
data-reporter-contents-global.sb2 add execute integration masked variable and list test 2018-09-27 11:57:24 -04:00
data-reporter-contents-local.sb2 add execute integration masked variable and list test 2018-09-27 11:57:24 -04:00
event-broadcast-and-wait-can-continue-same-tick.sb2 test that broadcast_and_wait can yield and continue in the same tick 2018-10-19 16:37:33 -04:00
event-when-green-flag.sb2 Move execute integration fixtures into test/fixtures 2018-05-02 15:54:54 -04:00
events-broadcast-and-wait-yields-a-tick.sb2 add broadcast and wait integration that ensures it yields a tick 2018-10-05 16:33:56 -04:00
hat-thread-execution.sb2 Make Scratch 3 project timer more compatible with Scratch 2 currentMSecs usage 2019-03-29 11:43:37 -04:00
monitors-stage-name.sb2 add monitors-stage-name test 2018-09-11 15:10:14 -04:00
operators-not-blank.sb2 Move execute integration fixtures into test/fixtures 2018-05-02 15:54:54 -04:00
order-changes-back-2-broadcast-wait.sb2 add execution order execute integration tests 2018-10-05 13:26:05 -04:00
order-changes-backwards-2-broadcast-and-wait-repeat-message.sb2 test: fix flaky test execute/order-changes-backwards-2-broadcast-and-wait-repeat-message.sb2 2022-07-06 13:18:45 -07:00
order-changes-backwards-2-broadcast-and-wait.sb2 Only one say end after broadcaste and waits 2018-11-29 14:00:57 -05:00
order-changes-backwards-2-broadcast-no-wait.sb2 add execution order execute integration tests 2018-10-05 13:26:05 -04:00
order-changes-backwards-2-broadcast-wait.sb2 add execution order execute integration tests 2018-10-05 13:26:05 -04:00
order-changes-backwards-2-continuous.sb2 add execution order execute integration tests 2018-10-05 13:26:05 -04:00
order-changes-backwards-2-threads-broadcast-wait.sb2 add execution order execute integration tests 2018-10-05 13:26:05 -04:00
order-changes-forewards-2-broadcast-wait.sb2 add execution order execute integration tests 2018-10-05 13:26:05 -04:00
order-changes-front-2-broadcast-wait.sb2 add execution order execute integration tests 2018-10-05 13:26:05 -04:00
order-clones-backwards-2-broadcast-wait.sb2 add execution order execute integration tests 2018-10-05 13:26:05 -04:00
order-clones-backwards-broadcast-wait.sb2 add execution order execute integration tests 2018-10-05 13:26:05 -04:00
order-clones-static-2.sb2 add execution order execute integration tests 2018-10-05 13:26:05 -04:00
order-immobile-stage.sb2 add execution order execute integration tests 2018-10-05 13:26:05 -04:00
order-library-reverse.sb2 add execution order execute integration tests 2018-10-03 10:35:24 -04:00
order-library-reverse.sb3 add execution order execute integration tests 2018-10-03 10:35:24 -04:00
order-library.sb2 add execution order execute integration tests 2018-10-03 10:35:24 -04:00
order-library.sb3 add execution order execute integration tests 2018-10-03 10:35:24 -04:00
procedures-boolean-reporter-bug.sb2 add execute integration procedures-boolean-reporter-bug test 2018-09-07 19:06:18 -04:00
procedures-nested-missing-boolean-param.sb2 add get param blocks in wrong procedure integrations 2018-10-23 15:14:30 -04:00
procedures-nested-missing-no-param.sb2 fix: initialize stack frame params for all procedures 2018-12-13 10:51:44 -05:00
procedures-nested-missing-number-param.sb2 add get param blocks in wrong procedure integrations 2018-10-23 15:14:30 -04:00
procedures-nested-missing-string-param.sb2 add get param blocks in wrong procedure integrations 2018-10-23 15:14:30 -04:00
procedures-number-number-boolean.sb2 Move execute integration fixtures into test/fixtures 2018-05-02 15:54:54 -04:00
procedures-param-outside-boolean.sb2 add procedure parameter used outside of proc integrations 2018-10-23 15:14:31 -04:00
procedures-param-outside-number.sb2 add procedure parameter used outside of proc integrations 2018-10-23 15:14:31 -04:00
procedures-param-outside-string.sb2 add procedure parameter used outside of proc integrations 2018-10-23 15:14:31 -04:00
procedures-recursive-default-boolean.sb2 add recursive procedure default parameter execute integrations 2018-10-16 16:31:45 -04:00
procedures-recursive-default-number.sb2 add recursive procedure default parameter execute integrations 2018-10-16 16:31:45 -04:00
procedures-recursive-default-string.sb2 add recursive procedure default parameter execute integrations 2018-10-16 16:31:45 -04:00
README.md Move execute integration fixtures into test/fixtures 2018-05-02 15:54:54 -04:00
sensing-get-attribute-of-stage-alt-name.sb2 add sensing getAttributeOf with Stage alternate name integration 2018-10-09 11:29:20 -04:00
sprite-number-name.sb2 Cast sprite name to string before getSpriteTargetByName 2019-03-07 16:09:46 -05:00

Tests in this folder are run in scratch by integration/execute.js. The tests can SAY test messages that map to tap methods. Read integration/execute.js for more.