[wpt-sync] Sync PR 63364 - Improve output when WebExtensions tests fail
Categories
(Testing :: web-platform-tests, task, P4)
Tracking
(firefox163 fixed)
| Tracking | Status | |
|---|---|---|
| firefox163 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 63364 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/63364
Details from upstream follow.
Dave Vandyke <kzar@kzar.co.uk> wrote:
Improve output when WebExtensions tests fail
Previously, when WebExtensions tests failed the message was wrapped with a
confusing message about a true vs false assertion. That made understanding the
failure harder than it needed to be. For example, on Firefox:async function testName() { browser.test.assertEq(1, 0, "description"); }, // => FAIL testName - assert_true: description - Expected: 1, Actual: 0 expected true got falseasync function testName() { foo; }, // => FAIL testName - assert_true: Exception running testName: foo is not defined expected true got falseFurthermore, I noticed that for Chrome part of the failure message was
duplicated too, for example:async function testName() { bar; }, // => FAIL testName - assert_true: Exception running testName: bar is not defined: ReferenceError: bar is not defined. Exception running testName: bar is not defined: ReferenceError: bar is not definedLet's fix both of those issues, so test failures like that are a bit easier to
understand!See also https://bugzilla.mozilla.org/show_bug.cgi?id=2078821
| Assignee | ||
Comment 1•12 days ago
|
||
| Assignee | ||
Comment 2•12 days ago
|
||
The PR was not expected to affect any tests, but the try push wasn't a success. Check the try results for infrastructure issues
| Assignee | ||
Comment 4•11 days ago
|
||
Test result changes from PR not available.
Comment 5•11 days ago
|
||
| bugherder | ||
Description
•