[wpt-sync] Sync PR 49719 - Fix a bug in test_driver.bless()
Categories
(Core :: DOM: Core & HTML, task, P4)
Tracking
()
Tracking | Status | |
---|---|---|
firefox135 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 49719 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/49719
Details from upstream follow.
Mason Freed <masonf@chromium.org> wrote:
Fix a bug in test_driver.bless()
This code was previously doing this:
let wait_click = new Promise(resolve => {
button.addEventListener("click", resolve));
};
return test_driver.click(button)
.then(wait_click)
.then(...but the argument to
.then(wait_click)
isn't a function, it's the
promise to return. Therefore .then() creates an already-resolved
promise containingwait_click
as its resolved value. Which the next
.then()
block ignores. So this wasn't actually waiting for the click
to occur.This triggered a number of test bugs (caused by erroneous assumptions
accidentally baked into the tests. I fixed a few, and filed a few
bugs for the rest (after failing to figure out how to fix them).Note that the WPT version of testdriver.js is rolled into Chromium,
so that change is being made here:
https://github.com/web-platform-tests/wpt/pull/49691Bug: 384009734,384050894
Change-Id: Ibdb8a97d23998ad89c5a48c23a7e780dc605283b
Reviewed-on: https://chromium-review.googlesource.com/6094526
WPT-Export-Revision: 0a4ef03f19d769b65b13fedcbac56c235bd5bbd7
Assignee | ||
Comment 1•2 months ago
|
||
Assignee | ||
Updated•2 months ago
|
Assignee | ||
Comment 2•2 months ago
|
||
Assignee | ||
Comment 3•2 months ago
|
||
CI Results
Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 2 tests and 63 subtests
Status Summary
Firefox
OK
: 1
PASS
: 63
Chrome
OK
: 1
PASS
: 64
Safari
OK
: 1
PASS
: 22
FAIL
: 41
TIMEOUT
: 1
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /fullscreen/rendering/backdrop-object.html [wpt.fyi]:
SKIP
(Chrome:PASS
, Safari:TIMEOUT
)
Tests Disabled in Gecko Infrastructure
- /fullscreen/rendering/backdrop-object.html [wpt.fyi]:
SKIP
(Chrome:PASS
, Safari:TIMEOUT
)
Comment 5•2 months ago
|
||
bugherder |
Description
•