Thomas Weber
0312e28ecb
Dirty hack to enable warp timer for loops that use timer in their condition
2022-06-13 21:12:33 -05:00
Thomas Weber
6e755d08ed
Update test/README.md
...
Remove unnecessary change to upstream
2022-05-28 18:46:34 -05:00
Thomas Weber
e7cbcccbed
Add more tests related to comparisons
2022-04-18 20:33:53 -05:00
Thomas Weber
a6ed92cdfe
jsexecute: Fix "any" list index
2022-04-13 20:37:21 -05:00
Thomas Weber
8cf257e0c1
ir: Fix error when procedures_prototype exists but not procedures_definition
...
Fixes compile error in https://scratch.mit.edu/projects/549160843
This commit was force-pushed from 4801d15c917d81826b33abbc3450e88d37d6f26c
to remove a large copyrighted sound file in the test project.
2022-04-06 21:43:08 -05:00
Thomas Weber
921524eb67
js: Do not allow stage to change layer
2021-12-30 11:40:05 -06:00
Thomas Weber
6aeccdbbc9
Limit x & y precision in compiler, same as interpreter
2021-12-28 18:20:59 -06:00
Thomas Weber
ad95234755
Add test for op.add NaN handling
2021-12-25 22:13:48 -06:00
Thomas Weber
9b24099c9f
Add integration test for obsolete blocks
2021-12-25 21:08:30 -06:00
Thomas Weber
e27421c288
Update integration tests README
2021-12-25 19:38:21 -06:00
Thomas Weber
5bee953432
js: mark op.subtract as NaN-able
2021-12-25 19:10:28 -06:00
Thomas Weber
5c8db76257
js: Fix error when target with constant name doesn't exist
2021-12-24 10:51:42 -06:00
Thomas Weber
47c1e02af7
Extend sensing_of tests
2021-12-23 18:18:14 -06:00
Thomas Weber
1d99176a57
Add tests for sensing_of
2021-12-23 18:06:10 -06:00
Thomas Weber
fcebc30740
ir: Fix broadcast name and ID desync edge case
2021-12-21 18:00:31 -06:00
Thomas Weber
27c7496679
js: Don't convert -0 to 0
2021-12-20 20:25:34 -06:00
Thomas Weber
72a48e9ed7
Fix tw-restart-broadcast-threads.sb3 test
2021-06-09 22:41:00 -05:00
Thomas Weber
bbe7bc035b
Make startHats not O(n^2), attempt 2
2021-06-09 22:23:51 -05:00
Thomas Weber
1e7a1a5f9a
Support control_all_at_once in compiler
2021-03-21 18:30:50 -05:00
Thomas Weber
4b21fb6fae
Add more unsafe equality test checks
2021-02-28 09:35:04 -06:00
Thomas Weber
1c9846003b
js: Fix "next backdrop" not starting "when backdrop switches to" hats
2021-01-29 18:15:01 -06:00
Thomas Weber
2c383f279f
js: Fix loops double-yielding when last command returns promise
2021-01-29 17:59:27 -06:00
Thomas Weber
8dee0fdac8
Add a test for preciseProjectTimer drift
2020-11-26 10:58:35 -06:00
Thomas Weber
ad817fff6b
populateProcedureCache should not overwrite entries
...
Fixes https://scratch.mit.edu/projects/387608267/
2020-11-17 13:00:17 -06:00
Thomas Weber
86cd92d1ee
js: procedure.call should reset variable inputs
...
https://scratch.mit.edu/projects/430811055/
2020-11-04 19:07:16 -06:00
Thomas Weber
f62d47da1e
Clarify tw-* test licensing
2020-11-04 19:06:17 -06:00
Thomas Weber
900a0a4722
js: op.ln and op.log are NaN-able
2020-10-31 01:26:20 -05:00
Thomas Weber
66fd45fe21
js: op.mod is NaN-able
2020-10-31 01:15:23 -05:00
Thomas Weber
3f80c7b868
Change size should not round initial size
...
Test based on a project by https://scratch.mit.edu/users/_Fingerprint_/
2020-10-28 21:09:51 -05:00
Thomas Weber
1f7f1f500e
Add safe procedure argument casting test
...
Based on https://scratch.mit.edu/projects/441049810/
2020-10-26 21:22:01 -05:00
Thomas Weber
847cf62e2b
Add test for multiple procedure arguments with same name
2020-10-26 11:18:48 -05:00
Thomas Weber
1f8ad7e61b
Update unsafe equals test with more cases
2020-10-17 00:27:39 -05:00
Thomas Weber
ffeb3a9cca
Write some tests
...
tw-unsafe-equals.sb3 is based on a project by https://scratch.mit.edu/users/ContourLines/
tw-zombie-cube-escape-284516654 is based on https://scratch.mit.edu/projects/284516654/ by griffpatch
2020-10-16 19:22:09 -05:00
Eric Rosenbaum
f103094cff
update test
2020-08-12 13:21:19 -04:00
Eric Rosenbaum
04a2b50fee
add test
2020-08-12 11:22:01 -04:00
Karishma Chadha
c499106f85
Revert "Raise params to the next frame when pushing"
2019-07-22 12:59:48 -04:00
Michael "Z" Goddard
8d91e3cbd7
test stopThisScript in procedures
...
- Test that stopThisScript in a procedure stays in the procedure and
moves it to the end where Sequencer can pop it normally
2019-06-25 14:38:46 -04:00
Michael "Z" Goddard
a996864cd9
test that stop all stops current threads next tick
2019-04-11 14:29:42 -04:00
Katie Broida
445ee46984
Merge pull request #1943 from ktbee/clock-timer-compat-fix
...
Start executing hats before other threads change values
2019-03-29 13:01:28 -04:00
Katie Broida
2a60391fb4
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
2019-03-29 11:43:37 -04:00
Katie Broida
c37745e97e
Cast sprite name to string before getSpriteTargetByName
2019-03-07 16:09:46 -05:00
Michael "Z" Goddard
20ff75b776
fix: initialize stack frame params for all procedures
...
A previous change fixed compatibility with Scratch 2 removing 3's
unintentional scope leaking. This furthers that change so that
procedures with no parameters will also not accidentally use values in
other procedure stacks.
2018-12-13 10:51:44 -05:00
Karishma Chadha
d71b405300
Merge pull request #1740 from bocoup/fix-flacky-test
...
Fix flacky test: order-changes-backwards-2-broadcast-and-wait.sb2
2018-12-04 11:18:51 -05:00
Valerie R Young
ee40e411ab
Only one say end after broadcaste and waits
2018-11-29 14:00:57 -05:00
Valerie R Young
d8078c018d
Implement feedback, broadcast order
2018-11-16 17:24:28 -05:00
Karishma Chadha
8aa0fa11aa
Merge pull request #1649 from mzgoddard/get-attribute-stage-alt-name
...
Get attribute stage alt name
2018-11-07 17:47:44 -05:00
Karishma Chadha
4bb2d19584
Merge pull request #1683 from mzgoddard/sequencer-thread-cleanup
...
Sequencer thread cleanup
2018-11-07 17:15:11 -05:00
Valerie R Young
05a28e553e
Say 'end' only after 4th increment
2018-11-06 13:26:25 -05:00
Michael "Z" Goddard
afd2ed72c8
add procedure parameter used outside of proc integrations
2018-10-23 15:14:31 -04:00
Michael "Z" Goddard
58a7a6bb04
add get param blocks in wrong procedure integrations
2018-10-23 15:14:30 -04:00