Make Scratch 3 project timer more compatible with Scratch 2 currentMSecs usage

These compatibility changes:
 - Use runtime.currentMSecs for the Clock timer "now" value
 - Start executing hats before other threads change values
 - Update test and fixtures to work with earlier hat execution
 - Add test for hat execution block order
This commit is contained in:
Katie Broida 2019-01-22 15:53:13 -05:00
parent c5abcf5888
commit 2a60391fb4
9 changed files with 31 additions and 17 deletions
src/engine

View file

@ -138,7 +138,6 @@ class Sequencer {
activeThread.status === Thread.STATUS_DONE) {
// Finished with this thread.
stoppedThread = true;
this.runtime.updateCurrentMSecs();
}
}
// We successfully ticked once. Prevents running STATUS_YIELD_TICK