Commit Graph
208 Commits
Author SHA1 Message Date
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 20de0556d2 Merge branch 'develop' of https://github.com/llk/scratch-vm into develop 2022-05-26 14:53:37 -05:00
Thomas Weber fe6bea498d Merge branch 'develop' of https://github.com/llk/scratch-vm into develop 2022-05-23 19:01:17 -05:00
Karishma Chadha 2ff83ce667 Add tests for missing and corrupt pngs in sb3 and sprite3 files 2022-05-23 19:54:45 -04:00
Karishma Chadha 3e193565ee Hook up error handling to bitmap loading flow and add tests for loading missing and corrupt bitmpas from sb2 and sprite2 files 2022-05-23 19:54:45 -04:00
Karishma Chadha 59f3c8afe9 Add sb2 and sprite2 tests for a corrupted vector costume 2022-05-21 19:51:29 -04:00
Karishma Chadha 28c6daaaf7 Mock bitmap loading and add sb2 and sprite2 tests for a missing svg costume 2022-05-21 19:51:29 -04:00
Karishma Chadha 8ab21dd701 Handle error from sound failing to load (e.g. corrupted sound) 2022-05-19 17:45:27 -04:00
Karishma Chadha 4679d06ac0 Update storage and update 'loadSound' to handle null asset from storage. Track additional metadata for broken costumes: 'bitmapResolution' and 'dataFormat'. 2022-05-18 21:26:36 -04:00
Karishma Chadha 8cf390d2b5 Fix typo 2022-05-16 17:11:55 -04:00
Karishma Chadha 1dfaa02c97 More code cleanup from PR review 2022-05-16 16:23:41 -04:00
Karishma ChadhaandChristopher Willis-Ford fd31a777e2 Code clean up from code review
Co-authored-by: Christopher Willis-Ford <7019101+cwillisf@users.noreply.github.com>
2022-05-16 16:07:08 -04:00
Karishma Chadha 70a78cf7db Add tests for load costume error handling. Fix issue where asset data was not getting saved out properly. 2022-05-13 19:07:34 -04: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 5dd6fc6167 Update tw_stored_settings tests 2022-02-18 21:42:56 -06:00
Thomas Weber f87154e8ae Rename tw-self-configuraiton to tw-stored-settings in tests 2022-02-18 21:19:10 -06: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 e969ae55c5 Merge branch 'develop' of github.com:LLK/scratch-vm into develop 2021-10-30 15:43:29 -05:00
Karishma Chadha 2d6cce5f7f Merge pull request #2936 from adroitwhiz/remove-new-buffer
Replace `new Buffer()` with `Buffer.from()`
2021-10-27 13:59:05 -04: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 416281f99b Merge branch 'develop' of github.com:LLK/scratch-vm into develop 2021-05-21 18:34:18 -05:00
Thomas Weber 0e8ec4d9dc Use ExtendedJSON to fix storing infinite clones 2021-05-15 00:59:48 -05:00
Thomas Weber 8c365062bf Project self-configuration (#55) 2021-05-15 00:29:01 -05:00
Eric Rosenbaum 8483c1a467 add test of deserializing origin 2021-05-04 15:29:36 -04:00
Thomas Weber 1e7a1a5f9a Support control_all_at_once in compiler 2021-03-21 18:30:50 -05:00
adroitwhiz 3c9f7557f5 Replace new Buffer() with Buffer.from()
This removes the deprecation warnings logged when tests are run.
2021-03-07 16:21:06 -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