Closed Bug 1745060 Opened 3 years ago Closed 15 days ago

Rewrite the devtool tests which use SVGPathSeg APIs

Categories

(DevTools :: Inspector: Animations, task, P2)

task

Tracking

(firefox136 fixed)

RESOLVED FIXED
136 Branch
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.

Summary: Rewrite the devtool tests which use pathSegList → Rewrite the devtool tests which use SVGPathSeg APIs
Priority: -- → P2

There is a polyfill we may use for testing: https://github.com/progers/pathseg

Assignee: nobody → longsonr
Status: NEW → ASSIGNED
Depends on: 1934525
Attachment #9443808 - Attachment is obsolete: true

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

(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.

You can also run them locally via ./mach test devtools/client/inspector/animation/test/

Pushed by ctuns@mozilla.com: https://hg.mozilla.org/mozilla-central/rev/c630adf0b0c1 Rewrite the devtool tests which use SVGPathSeg APIs r=boris,devtools-reviewers,ochameau
Status: ASSIGNED → RESOLVED
Closed: 15 days ago
Resolution: --- → FIXED
Target Milestone: --- → 136 Branch
Duplicate of this bug: 1903594
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: