[wpt-sync] Sync PR 25033 - Issue #5552 - Verify a defined class is resolved `whenDefined`
Categories
(Core :: DOM: Core & HTML, task, P4)
Tracking
()
People
(Reporter: mozilla.org, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 25033 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/25033
Details from upstream follow.
Andrea Giammarchi <andrea.giammarchi@gmail.com> wrote:
Issue #5552 - Verify a defined class is resolved
whenDefined
As mentioned in this comment, this PR provides a basic asynchronous test to verify the defined class is resolved.
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 1•4 years ago
|
||
Assignee | ||
Comment 2•4 years ago
|
||
CI Results
Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 1 tests and 46 subtests
Status Summary
Firefox
OK : 1
PASS: 35
FAIL: 11
Chrome
OK : 1
PASS: 41
FAIL: 5
Safari
OK : 1
PASS: 31
FAIL: 15
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
Firefox-only Failures
/custom-elements/CustomElementRegistry.html
customElements.define must get callbacks of the constructor prototype: FAIL
customElements.define must rethrow an exception thrown while getting callbacks on the constructor prototype: FAIL
customElements.define must rethrow an exception thrown while converting a callback value to Function callback type: FAIL
New Tests That Don't Pass
/custom-elements/CustomElementRegistry.html
customElements.define must get callbacks of the constructor prototype: FAIL (Chrome: PASS, Safari: PASS)
customElements.define must rethrow an exception thrown while getting callbacks on the constructor prototype: FAIL (Chrome: PASS, Safari: PASS)
customElements.define must rethrow an exception thrown while converting a callback value to Function callback type: FAIL (Chrome: PASS, Safari: PASS)
customElements.define must get "observedAttributes" property on the constructor prototype when "attributeChangedCallback" is present: FAIL (Chrome: PASS, Safari: FAIL)
customElements.define must get four additional callbacks on the prototype if formAssociated is converted to true: FAIL (Chrome: PASS, Safari: FAIL)
customElements.define must rethrow an exception thrown while getting additional formAssociated callbacks on the constructor prototype: FAIL (Chrome: PASS, Safari: FAIL)
customElements.whenDefined must return a resolved promise when the registry contains the entry with the given name: FAIL (Chrome: FAIL, Safari: FAIL)
customElements.whenDefined must return a new resolved promise each time invoked when the registry contains the entry with the given name: FAIL (Chrome: FAIL, Safari: FAIL)
A promise returned by customElements.whenDefined must be resolved by "define": FAIL (Chrome: FAIL, Safari: FAIL)
A promise returned by customElements.whenDefined must be resolved with the defined class: FAIL (Chrome: FAIL, Safari: FAIL)
A promise returned by customElements.whenDefined must be resolved with the defined class once such class is defined: FAIL (Chrome: FAIL, Safari: FAIL)
Updated•4 years ago
|
Description
•