Commit Graph
789 Commits
Author SHA1 Message Date
GarboMuffin 3d75f4759a Fix incorrect mouse position when clientX or clientY is 0
https://github.com/TurboWarp/packager/issues/494
2022-10-21 22:10:22 -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 eb600cfcf8 Replace local extended JSON parser with @turbowarp/json 2022-08-14 19:45:30 -05:00
GarboMuffin dc9b3f6055 Fix error in uint8ArrayToBase64 when input is too large 2022-08-13 14:45:33 -05:00
GarboMuffin b2e042fde6 Add tests to util_base64.js 2022-08-13 14:40:21 -05:00
GarboMuffin 6db9599f2e Do not use md5 to generate asset IDs in packaged runtime mode
md5 unnecessary in this mode and slows project load by ~10%.
2022-08-05 00:18:09 -05:00
GarboMuffin 1bfc83e666 Use storage.createAsset instead of new storage.Asset in tests 2022-08-05 00:17:53 -05:00
GarboMuffin 9815a27470 Remove references to original asset in packaged runtime mode 2022-08-05 00:17:53 -05:00
GarboMuffin b78dc53c8e Set runtime.isPackaged=true when convertToPackagedRuntime is called 2022-08-05 00:17:47 -05:00
GarboMuffin 3cf6320e9b Revert "Fix tests now that we always emit field default value"
This reverts commit 4325486bef.
2022-08-02 13:05:15 -05:00
GarboMuffin 73c0261480 Test that the center given to the renderer is what's stored in the SVG 2022-08-02 00:06:43 -05:00
GarboMuffin 458b9b7aad Allow rotation center preservation in exported SVGs
Requires additional changes in scratch-gui
2022-08-01 23:50:50 -05:00
GarboMuffin 20258b5a7d Limit number of concurrent createImageBitmap calls
Browsers, especially Chrome, crumble when we try to create too many
image bitmaps at once. So we'll queue them up when too many are
happening. Projects will load slightly slower but this is still much
faster than <img> with data: URIs
2022-07-31 14:06:51 -05:00
GarboMuffin 4325486bef Fix tests now that we always emit field default value 2022-07-27 17:01:36 -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 24bdd21bdd Disable test that relies on currentStepTime defaulting to null 2022-07-09 16:41:22 -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 c4fa4a84a8 Set Runtime.currentStepTime to a number by default instead of null 2022-07-09 16:28: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 25e81a4f67 Allow importing simple ScratchX (.sbx) project files
Extends .sb2 importer to convert extension blocks from ScratchX project files
(.sbx) to the format we require.
This doesn't automatically load extensions; they still must be loaded manually.
2022-07-08 22:24:33 -05:00
Thomas Weber 95f57eaf96 scratchx: Extract some functions to separate module 2022-07-08 20:03:03 -05:00
Thomas Weber b182b0afd0 scratchx: Add test for block type ' ' being equivalent to '' 2022-07-08 02:24:55 -05:00
Thomas Weber 651b72f677 scratchx: Add displayName support 2022-07-08 02:22:56 -05:00
Thomas Weber 274cf02d47 scratchx: Fix default value of default argument values 2022-07-07 17:47:55 -05:00
Thomas Weber 3a7e75930a scratchx: Use shorter prefix for generated extension IDs
No projects use this yet so it's safe to change.
2022-07-07 17:47:55 -05:00
Thomas Weber 6bbedd479b scratchx: Add support for menu arguments using : as a separator 2022-07-07 02:30:37 -05:00
Thomas Weber 9115616f47 scratchx: Add support for more types of separators 2022-07-07 02:21:09 -05:00
Thomas Weber ef0e7cffe2 scratchx: Implement separators 2022-07-07 02:02:34 -05:00
Thomas Weber 2c693860a2 scratchx: Implement async blocks 2022-07-07 01:50:51 -05:00
Thomas Weber d991629a49 scratchX: Set Scratch 3 docsURI to ScratchX url 2022-07-07 01:38:23 -05:00
Thomas Weber f424b2e03e scratchx: Add menu support 2022-07-07 01:37:00 -05:00
Thomas Weber 65e58845fc scratchx: Add primitive support for ScratchX extensions 2022-07-07 01:25:19 -05:00
Thomas Weber 7f0291a1ae Fix addSound error when target does not exist
Promise.reject() is not a constructor.
Additionally, rejecting with an Error instead of a string means
developer tools can show proper stack information.
Related to #82
2022-07-01 16:32:08 -05:00
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