Christopher Willis-Ford
058685f41e
fix: use web-worker to replace tiny-worker and worker-loader
...
for webpack 5 compatibility
2024-03-04 11:10:29 -08:00
Christopher Willis-Ford
7d5a780638
style: fix the other lint complaints
2023-12-15 17:40:25 -08:00
Christopher Willis-Ford
8dbcc1fc8f
style: fix hasOwnProperty lint complaints
2023-12-15 17:40:05 -08:00
Christopher Willis-Ford
802d211f95
fix: update GitHub links with /scratchfoundation/
2023-09-28 09:16:47 -07:00
Andy O'Neill
2581446907
feat: ability to clear flyout blocks when language changes
2022-12-14 11:03:12 -05:00
Christopher Willis-Ford
e2f96762de
test(clone-cleanup): go back to using an SB2
...
Part of the motivation for this test is to verify compatibility with
Scratch 2.0 / SB2 behavior, so we shouldn't change the project to an SB3
file without very good reason.
2022-06-10 10:14:17 -07:00
Christopher Willis-Ford
52252bd1cb
test(wait): make the wait block test reliable under CPU load
...
Sometimes load causes the VM to run more slowly, especially with
parallel tests. This change allows the wait block a little extra wiggle
room to account for that. Ending early is still tested with a fairly
strict threshold.
2022-06-07 11:44:06 -07:00
Christopher Willis-Ford
840ffb5df0
test: don't use process.exit to end tests
...
Newer versions of `tap` run more asynchronously, so sometimes using `process.nextTick(process.exit)`
to end a test would prevent the test from completing correctly. Removing all instances of
`process.nextTick(process.exit)` put tests into three categories:
* the test still worked correctly -- no fixup needed.
* the test would hang because the VM's `_steppingInterval` was keeping
Node alive. These tests call a new `quit()` method which ends the
stepping interval.
* the `load-extensions` test needed special attention because the "Video
Sensing" extension starts its own loop using `setTimeout`. I added a
`_stopLoop()` method on the extension and directly call that from the
test. I'm not completely happy with this solution but anything more
general would likely require a change to the extension spec, so I'm
leaving that as a followup task.
2022-06-07 11:44:06 -07:00
Christopher Willis-Ford
605b1c2386
test(clone-cleanup): improve clone-cleanup test reliability
...
Previously the test relied on the project's `wait` blocks running at roughly real time. Now, the
project drives the timing using `say` blocks.
2022-06-07 11:44:06 -07:00
Christopher Willis-Ford
05f8692300
test: upgrade tap, configure coverage thresholds
...
As part of simplifying the CI setup I plan to not explicitly specify
`--jobs=4` to `tap` going forward. Upgrading to a newer version of `tap`
means that it will automatically parallelize jobs according to available
CPU count, which should be better anyway. Only one of our tests was
incompatible with newer versions of `tap`, so this commit includes a
compatibility fix there.
Also, by default newer versions of `tap` calculate coverage and consider
the test run to fail if below the configured thresholds. The default is
100% coverage and we're not there, so I adjusted the thresholds to match
where we're at for now. We can ratchet those up over time.
2022-06-07 11:44:06 -07:00
Eric Rosenbaum
7a2393bd56
test not serializing origin if it is not present
2021-05-04 20:29:31 -04:00
Eric Rosenbaum
fb09f9cbb9
test serializing origin
2021-05-04 15:36:03 -04:00
Eric Rosenbaum
8483c1a467
add test of deserializing origin
2021-05-04 15:29:36 -04:00
DD Liu
7c652246df
Merge pull request #2356 from adroitwhiz/cast-to-black
...
Cast malformed color hex strings to RGBA 0,0,0,255 instead of null
2020-09-03 15:52:52 -04:00
apple502j
9bed114e48
Use new updateCPURenderAttributes in video sensing
2020-08-01 00:09:53 +09:00
Chris Willis-Ford
a9f473feb6
Merge pull request #2476 from cwillisf/fix-extension-url
...
sanitize extension ID in getExtensionIdForOpcode
2020-07-14 11:47:02 -07:00
Eric Rosenbaum
45c95f3370
Move test
2020-06-23 17:13:11 -04:00
Eric Rosenbaum
60aeebf668
Test that clock is reset on runtime dispose
2020-06-22 11:56:10 -04:00
Eric Rosenbaum
540d9c676c
Merge pull request #2341 from apple502j/patch-9
...
Clear some stats when disposing runtime
2020-06-22 10:25:41 -04:00
Christopher Willis-Ford
90b9da45f4
sanitize extension ID in getExtensionIdForOpcode
2020-06-15 17:59:15 -07:00
adroitwhiz
fe6b07acca
Consistently format text bubbles
2020-06-09 13:28:58 -04:00
apple502j
03db30d400
Update sensing_of fields if variable gets renamed
...
Thanks @adroitwhiz and @fsih for some advice!
2020-05-22 19:00:43 +09:00
Chris Willis-Ford
7af161f1a2
Merge pull request #2011 from joker314/fix/random-costume
...
Give all backdrops a more equal chance of being randomly picked
2020-05-19 13:11:38 -07:00
adroitwhiz
05dcbc176f
Remove RenderedTarget.setSay + its test
2020-05-18 01:35:32 -04:00
Joke Book
15d97ccaa7
End randIntWithout test case with t.end()
2020-05-07 16:38:45 +01:00
Joke Book
8700a70262
Fix randIntWithout test case
2020-05-07 16:37:01 +01:00
Joke Book
e5cc0e302d
Use correct denominator in randIntWithout test
2020-05-07 16:28:50 +01:00
jokebookservice1
57445a4d49
Merge branch 'develop' into fix/random-costume
2020-05-07 16:11:08 +01:00
adroitwhiz
cbe912e1be
Add malformed hex RGB color *list* test
2020-05-01 15:06:52 -04:00
adroitwhiz
277a355ce4
Add unit test for malformed hex color string cast
2020-05-01 14:50:39 -04:00
apple502j
dd82bf6dc8
Added test
2020-03-25 18:26:02 +09:00
DD Liu
2a42285abe
Revert "Consistently format text bubbles"
...
This reverts commit bc61e547b5
.
2020-03-19 12:40:55 -04:00
adroitwhiz
bc61e547b5
Consistently format text bubbles
2020-02-05 00:21:38 -05:00
Karishma Chadha
8faad67439
Merge pull request #2302 from ErikMejerHansen/develop
...
Fix custom field types
2019-12-27 11:44:00 -05:00
Eric Rosenbaum
24116e5514
Merge pull request #2289 from ericrosenbaum/bugfix/localize-tts-languages
...
Localize the Text to Speech extension "set language" menu
2019-11-18 16:22:15 -05:00
Erik Mejer Hansen
5a3e66469f
fix test
2019-11-14 21:23:42 +01:00
Erik Mejer Hansen
d5a8d10f01
Fix linting errors
2019-11-14 21:05:45 +01:00
Erik Mejer Hansen
6fca83c8ca
Added simple test of custom field types
2019-11-14 20:53:05 +01:00
Eric Rosenbaum
64eace3b90
Add test for localized spoken language name
2019-10-31 14:58:45 -04:00
Eric Rosenbaum
94e2478a10
Add test for dropped language name
2019-10-31 14:56:28 -04:00
Karishma Chadha
0a5673d5d3
Merge pull request #2280 from kchadha/inline-images-in-extensions
...
Inline Images in Extensions
2019-10-18 10:20:16 -04:00
Paul Kaplan
69f30a4fb5
Add updateMatrix to fake drawable test
2019-10-15 12:25:15 -04:00
Eric Rosenbaum
246e40a68c
update test
2019-10-04 14:14:37 -04:00
Karishma Chadha
5c16df1157
Update unit tests to reflect removal of 'alt' property from inline image spec.
2019-09-27 12:00:23 -05:00
Karishma Chadha
b1392572ca
Update tests and fix bug causing type error.
2019-09-27 11:39:15 -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
5be322c1d5
Merge pull request #2192 from apple502j/list-cast-safely
...
Fix Cast.LIST_ALL casting case
2019-09-17 17:53:00 -07:00
Karishma Chadha
c499106f85
Revert "Raise params to the next frame when pushing"
2019-07-22 12:59:48 -04:00
Karishma Chadha
9ba9732e8a
Merge pull request #2145 from mzgoddard/raise-params
...
Raise params to the next frame when pushing
2019-07-17 16:12:37 -04:00
Michael "Z" Goddard
8d91e3cbd7
test stopThisScript in procedures
...
- Test that stopThisScript in a procedure stays in the procedure and
moves it to the end where Sequencer can pop it normally
2019-06-25 14:38:46 -04:00