Commit Graph
157 Commits
Author SHA1 Message Date
Thomas Weber 7a4fb5db1d Update some TW: comments in some tests 2022-05-28 18:51:29 -05:00
Thomas Weber 895321d2f3 Increase test timeout for some tests 2022-05-26 15:48:43 -05:00
Thomas Weber 5f30a80a8c Fix more test timeout errors 2022-05-26 15:34:43 -05:00
Thomas Weber 16b146ec08 Fix broken tests due to timeouts 2022-05-26 15:21:41 -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 11f938f8a9 Update to latest version of storage which fixes issue where an HTML 404 page was being returned for missing asset data. Update VM to handle null assets properly. 2022-05-18 16:55:46 -04:00
Karishma Chadha 8b9ce99762 Add tests that serializing a costume does not save any data for assets that were missing when the project was first loaded 2022-05-16 17:33:21 -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 238de64bd8 Re-enable cloud_variables_sb2.js tests
These were supposed to have been re-enabeld a while ago
2022-05-13 17:06:49 -05:00
Thomas Weber 5907ab0103 Reset cloud variable limit to 10 for compatibility reasons
We don't want people to make a project in TW with 20 cloud variables and then have issues importing it to Scratch.
The packager, which has no limit, will convert any variable that starts with ☁ to a cloud variable, so this can be worked around.
2021-12-30 16:26:16 -06:00
Thomas Weber d28fb098d4 Fix tests 2021-12-13 17:01:27 -06:00
Thomas Weber e969ae55c5 Merge branch 'develop' of github.com:LLK/scratch-vm into develop 2021-10-30 15:43:29 -05:00
Thomas Weber 75a23e54c8 Disable intentionally broken tests 2021-08-03 16:26:22 -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 66f8fc19a3 Remove tw from CORE_EXTENSIONS, let GUI load it 2021-01-29 18:03:54 -06:00
Thomas Weber 1e4d02ab71 Fix tests that broke because we have an always-loaded extension now 2020-12-24 18:43:33 -06:00
Thomas Weber 60afe75aa8 Cleanup how execute test catches compiler errors 2020-11-18 16:29:00 -06:00
Thomas Weber 00b5b2cfce Fix some eslint errors 2020-10-28 19:46:37 -05:00
Thomas Weber fe73344ea7 Fail tests if threads could not be compiled for an unexpected reason 2020-10-16 18:56:40 -05:00
Thomas Weber 565386d03d Test .sb3 files 2020-10-16 18:50:43 -05:00
Thomas Weber cae6f712c3 Fix test failures 2020-09-19 14:05:56 -05:00
Thomas Weber 97956235c0 Test compiled and non-compiled versions of projects 2020-09-17 14:58:43 -05:00
adroitwhiz 53429f0917 Add test for renamed local lists 2020-03-12 17:00:58 -04:00
adroitwhiz af860711be Add test for loading renamed list monitors 2020-02-17 01:51:19 -05:00
Karishma Chadha ebb3f29734 Add unit test for inline image in extension block. Update internal-extension integration test. 2019-09-20 21:49:49 -07:00
Karishma Chadha 9af2e4c086 Merge pull request #2161 from LLK/e16n
Supporting VM changes for extensionification
2019-06-18 18:53:20 -04:00
Christopher Willis-Ford 3b395a10d1 add test for extension methods receiving blockInfo 2019-04-19 14:35:35 -07:00
Michael "Z" Goddard 6ed3263ca9 test that scripts block cache is reset 2019-04-19 13:22:25 -04:00
Karishma Chadha 23136ad9c3 Revert "Cache hat block information for the runtime" 2019-04-17 16:05:24 -04:00
Karishma Chadha a984d1ae9d Merge pull request #1930 from mzgoddard/runtime-script-cache
Cache hat block information for the runtime
2019-04-17 15:55:47 -04:00
Christopher Willis-Ford a1abcf3226 Add a comment clarifying the items in _blockInfo[0].blocks 2019-04-03 11:36:38 -07:00
Christopher Willis-Ford 87a88e2caf Add a button to the CoreEx extension 2019-04-02 23:13:01 -07: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
Karishma Chadha 30c9b7fd84 Add tests and update core example to handle stage being undefined. 2019-03-22 12:20:07 -04:00
Michael "Z" Goddard 1862e5bb27 test that scripts block cache is reset 2019-03-12 17:09:59 -04:00
Paul Kaplan 3b203a2a9b Merge pull request #1995 from paulkaplan/is-discrete
Support isDiscrete flag on monitors
2019-02-13 11:19:51 -05:00
chrisgarrity 7f37934eae rewrite readProjectFile to automatically handle nested project jsons 2019-02-12 11:24:26 +01:00
Paul Kaplan 6754fa9334 Add isDiscrete to monitor record, update sb2,3 and conversion tests 2019-02-11 11:09:01 -05:00
Paul Kaplan 8c92d195f7 Update monitors sb2 integration test for editing locally.
I cannot open the sb2 file without modifying the width/height of the lists, and editing+rezipping does not seem to work for me, so I need to change this width/height before I can make real changes to the tests.
2019-02-11 10:59:07 -05:00
chrisgarrity 7e9297145d Add test for nested sb2 2019-02-11 10:24:34 +01:00
picklesrus b904f19c1d Fix loading broadcast messages with special characters for projects that were converted from 2.0. 2019-02-06 16:58:46 -05:00
picklesrus aead1ba8f4 Fix a typo in the variable test. 2019-02-06 16:53:25 -05:00