Thomas Weber
f8ec0084ad
Add Runtime#getNumberOfCloudVariables
2022-06-27 22:57:18 -05:00
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
339cdd4453
Move TW runtime tests to separate file, revert unnecessary changes
2022-05-28 19:13:16 -05:00
Thomas Weber
d18af5ab18
Move TW VM tests to separate file
2022-05-28 19:05:27 -05:00
Thomas Weber
3e7b17fa86
Move TW mouse tests to separate file
2022-05-28 19:05:09 -05:00
Thomas Weber
c8502b7928
Move TW keyboard tests to separate file
2022-05-28 19:05:02 -05:00
Thomas Weber
21374cebc7
Rename sound tests
2022-05-28 19:04:50 -05:00
Thomas Weber
1207e5ec2b
Rename pen tests
2022-05-28 19:04:44 -05:00
Thomas Weber
e97a277ab1
Revert unnecessary change to Infinity/NaN encoding test
2022-05-28 18:56:01 -05:00
Thomas Weber
27699bb755
Re-enable another disabled cloud variable limit test
...
This should have been re-enabled a while ago when the limit was made configurable
2022-05-28 18:54:38 -05:00
Thomas Weber
7a4fb5db1d
Update some TW: comments in some tests
2022-05-28 18:51:29 -05:00
Thomas Weber
6e755d08ed
Update test/README.md
...
Remove unnecessary change to upstream
2022-05-28 18:46:34 -05:00
Thomas Weber
27291b1c1f
Make sure custom stage size is a round number and at least 1
2022-05-28 18:17:59 -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
9a3f131477
Fix tests broken by merge
2022-05-23 19:13:19 -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
Thomas Weber
02bbfba1e9
Convert more unsafe values to string when serializing variables and lists
2022-05-22 19:50:53 -05: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
Thomas Weber
eccbd33826
Convert null to "null" when serializing variables and lists
2022-05-21 18:19:56 -05: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
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 Chadha and Christopher 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
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
9c34c7097f
Fix sound effect clamping test
2022-05-12 17:35:36 -05:00
Thomas Weber
e7cbcccbed
Add more tests related to comparisons
2022-04-18 20:33:53 -05:00
Thomas Weber
e9399bc48f
Reduce unnecessary noise in jsexecute tests
2022-04-18 19:15:52 -05:00
Thomas Weber
5417a96daa
Add more jsexecute test cases
2022-04-18 19:03:02 -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
25e91e735c
Preserve monitor position relative to center of stage when resizing stage
2022-03-12 20:36:37 -06: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
b677ae297a
Disable mouse coordinate rounding when misc limits are disabled
2022-02-18 21:01:39 -06:00
Thomas Weber
e9cddbcd59
Do not allow compressed IDs to conflict with existing variable, list, or broadcast IDs
2022-01-29 13:02:22 -06:00
Thomas Weber
e2344cd467
Rename sb3 optimization to sb3 compression
2022-01-29 11:51:59 -06:00
Thomas Weber
bbdb4422f8
Fix negative clone counter when deleting non-clone target
2022-01-17 14:40:29 -06:00
Thomas Weber
f7a6413c4c
Fix sb3 optimization breaking on type INPUT_DIFF_BLOCK_SHADOW (3) compressed inputs
2022-01-09 17:43:40 -06: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
921524eb67
js: Do not allow stage to change layer
2021-12-30 11:40:05 -06:00