Rewrite the devtool tests which use SVGPathSeg APIs
Categories
(DevTools :: Inspector: Animations, task, P2)
Tracking
(firefox136 fixed)
| Tracking | Status | |
|---|---|---|
| firefox136 | --- | fixed |
People
(Reporter: boris, Assigned: longsonr)
References
Details
Attachments
(1 file, 1 obsolete file)
Bug 1388931 removes SVGPathSeg APIs, but we are still using SVGPathSeg APIs in some devtool tests in this folder:
https://searchfox.org/mozilla-central/source/devtools/client/inspector/animation/test
I would like to do some minor updates and skip some tests Bug 1388931. A preferable way is to use getComputedStyle(path).d to retrieve the path string, and check the path string, just like what we do in web-platform-test. I guess we need to rewrite the js code to check the path string to makes sure we pass some vertices.
| Reporter | ||
Updated•4 years ago
|
Updated•4 years ago
|
| Reporter | ||
Comment 1•4 years ago
|
||
There is a polyfill we may use for testing: https://github.com/progers/pathseg
| Assignee | ||
Comment 2•1 year ago
|
||
Updated•1 year ago
|
| Assignee | ||
Comment 3•1 year ago
|
||
| Assignee | ||
Comment 4•1 year ago
|
||
Updated•1 year ago
|
| Assignee | ||
Comment 5•1 year ago
|
||
Is comment 3 executing the devtools tests? If not can you tell me what I need to run please?
I've never run these tests before. I'm not even sure the tests are supposed to pass. Many/most/all of them are marked fail-if = ["a11y_checks"] e.g. https://searchfox.org/mozilla-central/source/devtools/client/inspector/animation/test/browser.toml#107
Comment 6•1 year ago
|
||
(In reply to Robert Longson [:longsonr] from comment #5)
Is comment 3 executing the devtools tests? If not can you tell me what I need to run please?
I've never run these tests before. I'm not even sure the tests are supposed to pass. Many/most/all of them are marked fail-if = ["a11y_checks"] e.g. https://searchfox.org/mozilla-central/source/devtools/client/inspector/animation/test/browser.toml#107
This try run isn't running the devtools mochitests. The tests don't look disabled. I can see at least one which should be failing that isn't disabled.
https://searchfox.org/mozilla-central/source/devtools/client/inspector/animation/test/browser_animation_infinity-duration_summary-graph.js#126
There is a preset handy for running all devtools tests ./mach try fuzzy --preset devtools-linux
If you are using try fuzzy you can use ./mach try fuzzy devtools/client/inspector/animation/test/ and mochitest-devtools-chrome as search string to execute only the animation folder tests.
Comment 7•1 year ago
|
||
You can also run them locally via ./mach test devtools/client/inspector/animation/test/
| Assignee | ||
Comment 8•1 year ago
|
||
Comment 10•1 year ago
|
||
| bugherder | ||
Description
•