Christopher Willis-Ford
45e0a503a8
test: fix tests for new ScratchStorage API
2024-12-20 10:29:22 -08:00
adroitwhiz
cacb115696
Add unit tests for setting then getting skin size
2021-07-27 20:45:32 -04:00
adroitwhiz
801b0dab1f
Move SVG renderer logic back into SVGSkin
...
This will allow for fancier stuff to be done with the SVG viewbox in the
future to avoid subpixel jitter.
2021-03-04 11:50:07 -05:00
adroitwhiz
a930503793
Update colors-almost-equal threshold
2021-02-25 20:58:12 -05:00
adroitwhiz
e075e5f5eb
Add unit tests for color conversion functions
2021-02-11 18:41:20 -05:00
seotts
aa704383b4
Remove built-in global variables in comments
2020-11-09 17:05:56 -05:00
DD Liu
931990bfca
Revert "Revert "Put back in "Merge pull request #489 from adroitwhiz/touching-white-fixes"""
2020-08-27 16:58:01 -04:00
DD Liu
0ae9cdd85c
Revert "Put back in "Merge pull request #489 from adroitwhiz/touching-white-fixes""
2020-08-27 15:17:40 -04:00
DD Liu
4a168693dd
Merge branch 'develop' into pull676
2020-08-20 15:38:54 -04:00
Chris Willis-Ford
7356a5c0c7
Merge pull request #654 from adroitwhiz/no-touching-bubbles
...
Don't include text bubbles in touching queries
2020-08-20 12:22:40 -07:00
Chris Willis-Ford
60a2ea8b45
Merge pull request #574 from adroitwhiz/fixelate
...
Fix pixelate effect on CPU path
2020-08-17 12:39:12 -07:00
DD Liu
90040dfa55
Revert "Revert "Revert "Revert "Merge pull request #489 from adroitwhiz/touching-white-fixes""""
2020-08-11 16:12:52 -04:00
DD Liu
70fae9665a
Revert "Revert "Revert "Merge pull request #489 from adroitwhiz/touching-white-fixes"""
2020-08-05 19:20:10 -04:00
DD Liu
b2346252f1
Revert "Revert "Merge pull request #489 from adroitwhiz/touching-white-fixes""
2020-08-04 16:31:10 -04:00
adroitwhiz
116d147faf
Revert "Merge pull request #489 from adroitwhiz/touching-white-fixes"
...
This reverts commit a1ca2eb924
, reversing
changes made to fcdcffeec8
.
2020-07-16 15:07:16 -04:00
adroitwhiz
a1ca2eb924
Merge pull request #489 from adroitwhiz/touching-white-fixes
...
Fix "touching color" for background color
2020-07-14 16:22:18 -04:00
adroitwhiz
c0b339f9dc
Make text bubble test robust against future errors
...
Now, the test will check that text bubbles are not being touched both
immediately after appearing and 0.1 seconds after appearing.
2020-07-08 16:09:43 -04:00
adroitwhiz
ac935423af
Don't include text bubbles in touching queries
2020-07-06 16:13:48 -04:00
adroitwhiz
d9c854f1fc
Remove setRotationCenter API
2020-06-23 02:29:14 -04:00
adroitwhiz
a7d636827c
add touching color test for common clear colors
2020-06-10 16:36:18 -04:00
adroitwhiz
e7b1504117
Move matrix + silhouette updates into method
2020-05-19 16:02:12 -04:00
Christopher Willis-Ford
298200f2ee
Make touching-color test more robust against GPU imprecision
...
Previously, the `color-touching-tests.sb2` test "touches a color that
doesn't actually exist right now" would use a sprite with ghost 50,
blended against another sprite, to create the color that "doesn't
actually exist" when the query sprite is skipped. Unfortunately the
blend result was near a bit-boundary and, depending on the specific
hardware used, that test could fail on the GPU. When the renderer uses
the CPU path this test works fine, though, so the existing problem went
unnoticed.
To fix the problem I changed the project to use ghost 30 instead, which
results in a color that is less near a bit boundary and is therefore
less likely to fail on specific hardware.
As an example of what was happening: the `touching color` block was
checking for `RGB(127,101,216)` with a mask of `RGB(0xF8,0xF8,0xF0)`. On
the CPU it would find `RGB(120,99,215)`, which is in range, but on some
GPUs the closest color it could find was `RGB(119,98,215)` which
mismatches on all four of the least significant bits -- one of which is
enabled in the mask.
2020-05-12 15:52:51 -04:00
adroitwhiz
b9411bf51e
Skip "doesn't touch say bubble" test
...
There are some compatibility concerns to be worked out before the
corresponding bug can be fixed.
2020-05-12 15:52:51 -04:00
adroitwhiz
3513cd77ae
Adapt f9428ee
to Playwright
2020-05-12 15:52:51 -04:00
adroitwhiz
a7bec3a958
Merge pull request #604 from adroitwhiz/playwright
...
Playwright: the re-wright
2020-05-11 15:50:57 -04:00
adroitwhiz
0ce50b6cd6
log error.message
2020-05-11 15:38:11 -04:00
adroitwhiz
9c01f364d4
Catch promise errors and exit with code 1
2020-05-11 14:43:54 -04:00
adroitwhiz
a41bcafac7
Use Playwright instead of Puppeteer
2020-05-11 14:43:54 -04:00
adroitwhiz
5566a600ba
reference "wait for SVG skins to load" issue
2020-05-11 14:43:54 -04:00
adroitwhiz
34072d2f53
Fix file input in tests
2020-05-11 14:43:54 -04:00
adroitwhiz
fdd02a6bd6
download Chromium only when tests are run
2020-05-11 14:43:54 -04:00
adroitwhiz
ec141ff76d
Replace Chromeless with Puppeteer
2020-05-11 14:43:54 -04:00
adroitwhiz
813792359f
Revert "Switch from Chromeless to Playwright for tests"
2020-05-08 16:32:38 -04:00
adroitwhiz
7349c1967c
Merge pull request #597 from adroitwhiz/playwright
...
Switch from Chromeless to Playwright for tests
2020-05-08 15:47:48 -04:00
adroitwhiz
51c867fa6d
Use Playwright instead of Puppeteer
2020-05-07 16:21:37 -04:00
adroitwhiz
ddccd0fa79
reference "wait for SVG skins to load" issue
2020-05-07 16:08:28 -04:00
adroitwhiz
3612461f9c
Merge pull request #478 from adroitwhiz/fix-fence-bounds
...
Always use getAABB for fence bounds
2020-05-07 15:43:28 -04:00
adroitwhiz
e6dbc0a635
Add pixelate touching test
2020-03-20 21:25:09 -04:00
adroitwhiz
5081a71fe9
Fix file input in tests
2020-03-08 08:18:46 -04:00
adroitwhiz
0a214a989d
download Chromium only when tests are run
2020-03-08 08:18:46 -04:00
adroitwhiz
3d02a6c769
Replace Chromeless with Puppeteer
2020-03-08 08:18:28 -04:00
Karishma Chadha
11665299bc
Revert "Put Skin Alter Push Back In"
2019-09-26 09:39:05 -05:00
Karishma Chadha
2a1d215e50
Revert "Revert "Revert "Revert "Skin alter push""""
2019-09-12 13:43:32 -04:00
Karishma Chadha
1cd9e54834
Revert "Revert "Revert "Skin alter push"""
2019-09-12 13:24:03 -04:00
Chris Willis-Ford
928cd60dd5
Merge pull request #496 from LLK/revert-493-revert-470-skin-alter-push
...
Revert "Revert "Skin alter push""
2019-09-04 18:14:41 -07:00
DD Liu
5c6997131b
Merge pull request #484 from adroitwhiz/fix-cpu-render-playground
...
Attach V2 adapters in CPU render playground
2019-08-30 14:58:59 -04:00
Chris Willis-Ford
b4c7dbf0ea
Merge pull request #441 from adroitwhiz/region-exit-fix
...
Clear _regionId when exiting draw region
2019-08-30 19:51:20 +01:00
Karishma Chadha
7c4393787b
Revert "Revert "Skin alter push""
2019-08-13 11:42:51 -04:00
Karishma Chadha
4a28cffcd4
Revert "Skin alter push"
2019-08-13 11:22:27 -04:00
adroitwhiz
471d4b91a4
Attach V2 adapters in CPU render playground
2019-07-15 23:44:18 -04:00