Closed
Bug 1605368
Opened 6 years ago
Closed 6 years ago
Use is() instead of ok() when comparing values in browser_application_panel_manifest-display.js
Categories
(DevTools :: Application Panel, task, P3)
DevTools
Application Panel
Tracking
(firefox74 fixed)
RESOLVED
FIXED
Firefox 74
Tracking | Status | |
---|---|---|
firefox74 | --- | fixed |
People
(Reporter: jdescottes, Assigned: jdescottes)
Details
Attachments
(1 file)
Two spots are using ok
to compare test values:
ok(
imgEl && imgEl.src === URL_ROOT + "resources/manifest/icon.svg",
"An image is being displayed with the icon url as source"
);
// ...
ok(
itemEl.querySelector(".js-manifest-item-content").textContent ===
expectedValue,
`Manifest member ${member} is being displayed with value ${expectedValue}`
);
While this works fine, in case you get a failure, the logs will not include the expected & test value automatically. Using the is
helper takes care of this.
Assignee | ||
Comment 1•6 years ago
|
||
Updated•6 years ago
|
Assignee: nobody → jdescottes
Status: NEW → ASSIGNED
Pushed by jdescottes@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/11720a001804
Use is() instead of ok() in some asserts of browser_application_panel_manifest-display.js r=ladybenko
Comment 3•6 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
status-firefox74:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 74
You need to log in
before you can comment on or make changes to this bug.
Description
•