Closed Bug 1483768 Opened Last year Closed Last year

[wpt-sync] Sync PR 12511 - Modify expected state for test of window.event

Categories

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

enhancement

Tracking

()

RESOLVED FIXED
mozilla63
Tracking Status
firefox63 --- fixed

People

(Reporter: wptsync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Yuki Yamada <yukiy@google.com> wrote:
>  Modify expected state for test of window.event
>  
>  Current wpt test of window.event checks global event on invoking a
>  listener from a different global.
>  
>  The logic of the test is:
>  1. create a frame element and set it as a child of parent window
>  2. add listeners
>  3. load event is dispatched in the context of child frame and a listener
>     in the context of parent window is invoked
>  4. a event (named "hi") is dispatched inside the listener invoked in
>     step 3. and a listener in the context of child frame is called
>  5. then check the global event of each context
>  
>  The test says that the global event of the parent context on step 5.
>  should be undefined, but it should be load event that is dispatched
>  step 3. in the logic above because the global event of the context of
>  some listener is set to the passed event before invoking the listener.
>  (See: https://dom.spec.whatwg.org/#concept-event-listener-inner-invoke)
>  Therefore, this CL corrects that.
>  
>  Change-Id: I2116da87d06168b9fc113826311089e1e516e488
>  Reviewed-on: https://chromium-review.googlesource.com/1177216
>  WPT-Export-Revision: 214a90935587b536a1de748abd36e0dbb18caaa1
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]
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Ran 1 tests and 6 subtests
OK     : 1
PASS   : 4
FAIL   : 2
Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/5c5b81495024
[wpt PR 12511] - Modify expected state for test of window.event with listener from a different global, a=testonly
https://hg.mozilla.org/mozilla-central/rev/5c5b81495024
Status: NEW → RESOLVED
Closed: Last year
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.