Skip to content

Commit

Permalink
Bug 1909293 [wpt PR 47237] - DOM: Rename EventTarget#on() to EventTar…
Browse files Browse the repository at this point in the history
…get#when(), a=testonly

Automatic update from web-platform-tests
DOM: Rename EventTarget#on() to EventTarget#when()

See the discussion in WICG/observable#39,
which led to this decision, and
WICG/observable#161 for the corresponding spec
rename.

R=jarhar

Bug: 40282760
Change-Id: I9cd744460a3545c74fb34a0418c6ffddc5e6d4e1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5730072
Reviewed-by: Joey Arhar <jarharchromium.org>
Commit-Queue: Dominic Farolino <domchromium.org>
Cr-Commit-Position: refs/heads/main{#1340875}

--

wpt-commits: c4e3d193ad0d0e708ad2f252a245c368df098c6e
wpt-pr: 47237

UltraBlame original commit: 635103775408664b51f70080db91b67ba60941b8
  • Loading branch information
marco-c committed Aug 23, 2024
1 parent cb2d12c commit 6453d14
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -875,7 +875,7 @@ source
=
event_target
.
on
when
(
'
customevent
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ assert_implements
(
target
.
on
when
"
The
EventTarget
interface
has
an
on
when
method
"
)
Expand All @@ -34,7 +34,7 @@ assert_equals
typeof
target
.
on
when
"
function
"
Expand All @@ -43,7 +43,7 @@ EventTarget
should
have
the
on
when
method
"
)
Expand All @@ -53,7 +53,7 @@ testEvents
=
target
.
on
when
(
"
test
Expand All @@ -68,7 +68,9 @@ Observable
"
EventTarget
.
on
when
(
)
returns
an
Observable
Expand Down Expand Up @@ -192,7 +194,7 @@ event
"
EventTarget
.
on
when
(
)
returns
Expand Down Expand Up @@ -221,7 +223,7 @@ testEvents
=
target
.
on
when
(
"
test
Expand Down Expand Up @@ -446,7 +448,7 @@ testEvents
=
target
.
on
when
(
"
test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ captureObservable
=
body
.
on
when
(
'
click
Expand All @@ -121,7 +121,7 @@ bubbleObservable
=
body
.
on
when
(
'
click
Expand Down Expand Up @@ -237,7 +237,7 @@ observable
=
target
.
on
when
(
'
event
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ observable
=
target
.
on
when
(
'
custom
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2769,7 +2769,7 @@ AbortController
;
self
.
on
when
(
'
error
Expand Down

0 comments on commit 6453d14

Please sign in to comment.