GarboMuffin
b1313e1ce2
Add type option to saveProjectSb3
2023-01-05 16:33:03 -06:00
GarboMuffin
f917741104
js: Mark sin, cos, tan, and random as NaN-able
2022-12-07 19:39:50 -06:00
GarboMuffin
ef871f794c
Fix compiled color pickers returning number instead of hex code
...
Hacked blocks and custom extensions expect colour_picker to return
a hex color code (#123abc) instead of the parsed number (1194684).
2022-11-22 21:22:12 -06:00
GarboMuffin
688b257f7c
Add tests for addAddonBlock
2022-11-11 23:33:43 -06:00
GarboMuffin
dcc0d961d7
Automatically load custom extensions saved in project
...
Requires disabled-by-default security manager configuration
2022-10-22 22:02:30 -05:00
GarboMuffin
46f6d89b8d
Import another test from https://github.com/forkphorus/forkphorus/pull/515
2022-08-28 12:58:33 -05:00
GarboMuffin
d8984c80a2
Ignore error in performance.measure() if browser garbage collects a mark
2022-08-27 22:20:42 -05:00
GarboMuffin
4943602646
Import some tests from https://github.com/forkphorus/forkphorus/pull/515
2022-08-27 17:53:30 -05:00
GarboMuffin
135fa04259
Fix tangent of perfect multiplies of 90
...
Previously they would return very large or very small numbers when they should instead be returning Infinity or -Infinity
2022-08-27 17:49:42 -05:00
GarboMuffin
7ea25cbbe8
Fix turbo mode stored in project not appearing in GUI state
2022-07-18 16:34:35 -05:00
Thomas Weber
09df19b60b
Add test for edge activated hat returning promise
...
Adds test for bug fixed in
3062334108
2022-07-09 16:32:28 -05:00
Thomas Weber
7cbfab1273
Don't use ScratchX block in unknown-opcode-as-reporter-block test
...
We now support ScratchX blocks, so the test now fails as it assumes we don't.
The test was modified to use a different invalid opcode that isn't a ScratchX block.
2022-07-08 22:35:58 -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
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 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
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