Closed
Bug 2078821
Opened 1 month ago
Closed 22 days ago
WPT test failures have misleading failure messages
Categories
(WebExtensions :: General, enhancement, P3)
WebExtensions
General
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: kzar, Assigned: kzar)
References
(Blocks 1 open bug)
Details
(Whiteboard: [addons-jira])
The Web Platform Tests (WPT) for WebExtensions are displaying a misleading message on failure.
Some examples:
async function testName() {
browser.test.assertEq(1, 0, "description");
},
// => FAIL testName - assert_true: description - Expected: 1, Actual: 0 expected true got false
async function testName() {
foo;
},
// => FAIL testName - assert_true: Exception running testName: foo is not defined expected true got false
The message would actually pretty good, but it's wrapped with a misleading "assert_true: ... expected true got false" that makes it much harder to understand.
This is also made worse by the stack trace being lost, see bug 2077165.
Updated•1 month ago
|
| Assignee | ||
Comment 1•1 month ago
|
||
I have opened a PR in the wpt repository to fix this. @zombie any idea who is the best to Cc on that to get it reviewed?
Assignee: nobody → kzar
Status: NEW → ASSIGNED
Flags: needinfo?(tomica)
| Assignee | ||
Comment 3•22 days ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 22 days ago
Resolution: --- → FIXED
| Assignee | ||
Updated•16 days ago
|
Flags: needinfo?(tomica)
You need to log in
before you can comment on or make changes to this bug.
Description
•