Closed Bug 1839178 Opened 3 years ago Closed 3 years ago

Make offset assertion easier to read in test_parseDeclarations.js

Categories

(DevTools :: Inspector: Rules, task, P3)

task

Tracking

(firefox116 fixed)

RESOLVED FIXED
116 Branch
Tracking Status
firefox116 --- fixed

People

(Reporter: nchevobbe, Assigned: nchevobbe)

References

Details

Attachments

(1 external file)

No description provided.

Seeing those offsets integer in the test case is a bit hard to assert that they
do actually refer to the expected part of the input.
This adds a declarationText property on the expected object that can be used
to properly asserts produced offsets.

Attachment #9339845 - Attachment description: Bug 1838011 - [devtools] Assert parseDeclaration offsets easier. r=#devtools-reviewers. → Bug 1839178 - [devtools] Assert parseDeclaration offsets easier. r=#devtools-reviewers.
Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/46492ffbcaf8 [devtools] Assert parseDeclaration offsets easier. r=devtools-reviewers,ochameau.
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 116 Branch
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: