Closed Bug 1478947 Opened 4 years ago Closed 4 years ago

[wpt-sync] Sync PR 12201 - HTML: tests for new event handler spec

Categories

(Core :: DOM: Core & HTML, enhancement, P4)

enhancement

Tracking

()

RESOLVED FIXED
mozilla63
Tracking Status
firefox63 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 12201 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/12201
Details from upstream follow.

Timothy Gu <timothygu99@gmail.com> wrote:
>  HTML: tests for new event handler spec
>  
>  - Add tests for event handler removal when the IDL attribute is set to null or content attribute is removed
>  - Add tests for event handler re-registration even if content attribute   is set to the same value
>  - Add tests for event handlers on the body element that are not shadowed  to its `Window`
>  - Use IDL parser for list of event handlers
>  - Use .window.js instead of .html for some files
>  
>  See: https://github.com/whatwg/html/pull/3850
Component: web-platform-tests → DOM
Product: Testing → Core
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Ran 8 tests and 532 subtests
OK     : 8
PASS   : 490
FAIL   : 42

New tests that have failures or other problems:
/html/webappapis/scripting/events/event-handler-attributes-body-window.html
    not shadowed cancel (document.body): FAIL
    not shadowed cancel (document.createElement("body")): FAIL
    not shadowed copy (document.body): FAIL
    not shadowed copy (document.createElement("body")): FAIL
    not shadowed cuechange (document.body): FAIL
    not shadowed cuechange (document.createElement("body")): FAIL
    not shadowed cut (document.body): FAIL
    not shadowed cut (document.createElement("body")): FAIL
    not shadowed paste (document.body): FAIL
    not shadowed paste (document.createElement("body")): FAIL
    not shadowed securitypolicyviolation (document.body): FAIL
    not shadowed securitypolicyviolation (document.createElement("body")): FAIL
    shadowed rejectionhandled (document.body): FAIL
    shadowed rejectionhandled (document.createElement("body")): FAIL
    shadowed rejectionhandled removal (document.body): FAIL
    shadowed rejectionhandled removal (document.createElement("body")): FAIL
    shadowed unhandledrejection (document.body): FAIL
    shadowed unhandledrejection (document.createElement("body")): FAIL
    shadowed unhandledrejection removal (document.body): FAIL
    shadowed unhandledrejection removal (document.createElement("body")): FAIL
/html/webappapis/scripting/events/event-handler-attributes-window-body.html
    not shadowed cancel: FAIL
    not shadowed cuechange: FAIL
    not shadowed securitypolicyviolation: FAIL
    shadowed rejectionhandled: FAIL
    shadowed rejectionhandled removal: FAIL
    shadowed unhandledrejection: FAIL
    shadowed unhandledrejection removal: FAIL
/html/webappapis/scripting/events/event-handler-attributes-windowless-body.html
    Ignore setting of rejectionhandled window event handlers on windowless body: FAIL
    Ignore setting of rejectionhandled window event handlers on windowless frameset: FAIL
    Ignore setting of unhandledrejection window event handlers on windowless body: FAIL
    Ignore setting of unhandledrejection window event handlers on windowless frameset: FAIL
    Return null when getting the rejectionhandled event handler of a windowless body: FAIL
    Return null when getting the rejectionhandled event handler of a windowless frameset: FAIL
    Return null when getting the unhandledrejection event handler of a windowless body: FAIL
    Return null when getting the unhandledrejection event handler of a windowless frameset: FAIL
    cancel is unaffected on a windowless body: FAIL
    cancel is unaffected on a windowless frameset: FAIL
    cuechange is unaffected on a windowless body: FAIL
    cuechange is unaffected on a windowless frameset: FAIL
    securitypolicyviolation is unaffected on a windowless body: FAIL
    securitypolicyviolation is unaffected on a windowless frameset: FAIL
/html/webappapis/scripting/events/event-handler-removal.window.html
    Event handler set through content attribute should be re-activated even if content is the same.: FAIL
Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/240261e9447c
[wpt PR 12201] - HTML: tests for new event handler spec, a=testonly
https://hg.mozilla.org/integration/mozilla-inbound/rev/ff2e9cf740dd
[wpt PR 12201] - Update wpt metadata, a=testonly
https://hg.mozilla.org/mozilla-central/rev/240261e9447c
https://hg.mozilla.org/mozilla-central/rev/ff2e9cf740dd
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.