Commit bf2af3a0 authored by Stephen McGruer's avatar Stephen McGruer Committed by Commit Bot

Add ontransition{run, start, cancel} to GlobalEventHandlers

https://drafts.csswg.org/css-transitions/#interface-globaleventhandlers-idl

Intent to ship: https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/dxDGBFKvO3A

Bug: 868224
Change-Id: I68b33822badc36c3cebcdca7bf6f47d834160270
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1797226Reviewed-by: default avatarChris Harrelson <chrishtr@chromium.org>
Reviewed-by: default avatarXida Chen <xidachen@chromium.org>
Commit-Queue: Stephen McGruer <smcgruer@chromium.org>
Cr-Commit-Position: refs/heads/master@{#696699}
parent a3af8d62
...@@ -117,7 +117,10 @@ class GlobalEventHandlers { ...@@ -117,7 +117,10 @@ class GlobalEventHandlers {
DEFINE_STATIC_ATTRIBUTE_EVENT_LISTENER(stalled, kStalled) DEFINE_STATIC_ATTRIBUTE_EVENT_LISTENER(stalled, kStalled)
DEFINE_STATIC_ATTRIBUTE_EVENT_LISTENER(submit, kSubmit) DEFINE_STATIC_ATTRIBUTE_EVENT_LISTENER(submit, kSubmit)
DEFINE_STATIC_ATTRIBUTE_EVENT_LISTENER(suspend, kSuspend) DEFINE_STATIC_ATTRIBUTE_EVENT_LISTENER(suspend, kSuspend)
DEFINE_STATIC_ATTRIBUTE_EVENT_LISTENER(transitionrun, kTransitionrun)
DEFINE_STATIC_ATTRIBUTE_EVENT_LISTENER(transitionstart, kTransitionstart)
DEFINE_STATIC_ATTRIBUTE_EVENT_LISTENER(transitionend, kTransitionend) DEFINE_STATIC_ATTRIBUTE_EVENT_LISTENER(transitionend, kTransitionend)
DEFINE_STATIC_ATTRIBUTE_EVENT_LISTENER(transitioncancel, kTransitioncancel)
DEFINE_STATIC_ATTRIBUTE_EVENT_LISTENER(timeupdate, kTimeupdate) DEFINE_STATIC_ATTRIBUTE_EVENT_LISTENER(timeupdate, kTimeupdate)
DEFINE_STATIC_ATTRIBUTE_EVENT_LISTENER(toggle, kToggle) DEFINE_STATIC_ATTRIBUTE_EVENT_LISTENER(toggle, kToggle)
DEFINE_STATIC_ATTRIBUTE_EVENT_LISTENER(touchcancel, kTouchcancel) DEFINE_STATIC_ATTRIBUTE_EVENT_LISTENER(touchcancel, kTouchcancel)
......
...@@ -138,5 +138,8 @@ ...@@ -138,5 +138,8 @@
// CSS Transitions // CSS Transitions
// https://drafts.csswg.org/css-transitions/#interface-globaleventhandlers-idl // https://drafts.csswg.org/css-transitions/#interface-globaleventhandlers-idl
attribute EventHandler ontransitionrun;
attribute EventHandler ontransitionstart;
attribute EventHandler ontransitionend; attribute EventHandler ontransitionend;
attribute EventHandler ontransitioncancel;
}; };
This is a testharness.js-based test.
PASS idl_test setup
PASS Partial interface mixin GlobalEventHandlers: original interface mixin defined
PASS TransitionEvent interface: existence and properties of interface object
PASS TransitionEvent interface object length
PASS TransitionEvent interface object name
PASS TransitionEvent interface: existence and properties of interface prototype object
PASS TransitionEvent interface: existence and properties of interface prototype object's "constructor" property
PASS TransitionEvent interface: existence and properties of interface prototype object's @@unscopables property
PASS TransitionEvent interface: attribute propertyName
PASS TransitionEvent interface: attribute elapsedTime
PASS TransitionEvent interface: attribute pseudoElement
PASS TransitionEvent must be primary interface of new TransitionEvent("transitionend")
PASS Stringification of new TransitionEvent("transitionend")
PASS TransitionEvent interface: new TransitionEvent("transitionend") must inherit property "propertyName" with the proper type
PASS TransitionEvent interface: new TransitionEvent("transitionend") must inherit property "elapsedTime" with the proper type
PASS TransitionEvent interface: new TransitionEvent("transitionend") must inherit property "pseudoElement" with the proper type
FAIL HTMLElement interface: attribute ontransitionrun assert_true: The prototype object must have a property "ontransitionrun" expected true got false
FAIL HTMLElement interface: attribute ontransitionstart assert_true: The prototype object must have a property "ontransitionstart" expected true got false
PASS HTMLElement interface: attribute ontransitionend
FAIL HTMLElement interface: attribute ontransitioncancel assert_true: The prototype object must have a property "ontransitioncancel" expected true got false
FAIL HTMLElement interface: document must inherit property "ontransitionrun" with the proper type assert_inherits: property "ontransitionrun" not found in prototype chain
FAIL HTMLElement interface: document must inherit property "ontransitionstart" with the proper type assert_inherits: property "ontransitionstart" not found in prototype chain
PASS HTMLElement interface: document must inherit property "ontransitionend" with the proper type
FAIL HTMLElement interface: document must inherit property "ontransitioncancel" with the proper type assert_inherits: property "ontransitioncancel" not found in prototype chain
FAIL Window interface: attribute ontransitionrun assert_own_property: The global object must have a property "ontransitionrun" expected property "ontransitionrun" missing
FAIL Window interface: attribute ontransitionstart assert_own_property: The global object must have a property "ontransitionstart" expected property "ontransitionstart" missing
PASS Window interface: attribute ontransitionend
FAIL Window interface: attribute ontransitioncancel assert_own_property: The global object must have a property "ontransitioncancel" expected property "ontransitioncancel" missing
FAIL Window interface: window must inherit property "ontransitionrun" with the proper type assert_own_property: expected property "ontransitionrun" missing
FAIL Window interface: window must inherit property "ontransitionstart" with the proper type assert_own_property: expected property "ontransitionstart" missing
PASS Window interface: window must inherit property "ontransitionend" with the proper type
FAIL Window interface: window must inherit property "ontransitioncancel" with the proper type assert_own_property: expected property "ontransitioncancel" missing
FAIL Document interface: attribute ontransitionrun assert_true: The prototype object must have a property "ontransitionrun" expected true got false
FAIL Document interface: attribute ontransitionstart assert_true: The prototype object must have a property "ontransitionstart" expected true got false
PASS Document interface: attribute ontransitionend
FAIL Document interface: attribute ontransitioncancel assert_true: The prototype object must have a property "ontransitioncancel" expected true got false
FAIL Document interface: document must inherit property "ontransitionrun" with the proper type assert_inherits: property "ontransitionrun" not found in prototype chain
FAIL Document interface: document must inherit property "ontransitionstart" with the proper type assert_inherits: property "ontransitionstart" not found in prototype chain
PASS Document interface: document must inherit property "ontransitionend" with the proper type
FAIL Document interface: document must inherit property "ontransitioncancel" with the proper type assert_inherits: property "ontransitioncancel" not found in prototype chain
Harness: the test ran to completion.
...@@ -175,7 +175,10 @@ PASS oldChildWindow.ontouchcancel is newChildWindow.ontouchcancel ...@@ -175,7 +175,10 @@ PASS oldChildWindow.ontouchcancel is newChildWindow.ontouchcancel
PASS oldChildWindow.ontouchend is newChildWindow.ontouchend PASS oldChildWindow.ontouchend is newChildWindow.ontouchend
PASS oldChildWindow.ontouchmove is newChildWindow.ontouchmove PASS oldChildWindow.ontouchmove is newChildWindow.ontouchmove
PASS oldChildWindow.ontouchstart is newChildWindow.ontouchstart PASS oldChildWindow.ontouchstart is newChildWindow.ontouchstart
PASS oldChildWindow.ontransitioncancel is newChildWindow.ontransitioncancel
PASS oldChildWindow.ontransitionend is newChildWindow.ontransitionend PASS oldChildWindow.ontransitionend is newChildWindow.ontransitionend
PASS oldChildWindow.ontransitionrun is newChildWindow.ontransitionrun
PASS oldChildWindow.ontransitionstart is newChildWindow.ontransitionstart
PASS oldChildWindow.onunhandledrejection is newChildWindow.onunhandledrejection PASS oldChildWindow.onunhandledrejection is newChildWindow.onunhandledrejection
PASS oldChildWindow.onunload is newChildWindow.onunload PASS oldChildWindow.onunload is newChildWindow.onunload
PASS oldChildWindow.onvolumechange is newChildWindow.onvolumechange PASS oldChildWindow.onvolumechange is newChildWindow.onvolumechange
......
...@@ -137,7 +137,10 @@ PASS childWindow.ontouchcancel is null ...@@ -137,7 +137,10 @@ PASS childWindow.ontouchcancel is null
PASS childWindow.ontouchend is null PASS childWindow.ontouchend is null
PASS childWindow.ontouchmove is null PASS childWindow.ontouchmove is null
PASS childWindow.ontouchstart is null PASS childWindow.ontouchstart is null
PASS childWindow.ontransitioncancel is null
PASS childWindow.ontransitionend is null PASS childWindow.ontransitionend is null
PASS childWindow.ontransitionrun is null
PASS childWindow.ontransitionstart is null
PASS childWindow.onunhandledrejection is null PASS childWindow.onunhandledrejection is null
PASS childWindow.onunload is null PASS childWindow.onunload is null
PASS childWindow.onvolumechange is null PASS childWindow.onvolumechange is null
......
...@@ -137,7 +137,10 @@ PASS childWindow.ontouchcancel is null ...@@ -137,7 +137,10 @@ PASS childWindow.ontouchcancel is null
PASS childWindow.ontouchend is null PASS childWindow.ontouchend is null
PASS childWindow.ontouchmove is null PASS childWindow.ontouchmove is null
PASS childWindow.ontouchstart is null PASS childWindow.ontouchstart is null
PASS childWindow.ontransitioncancel is null
PASS childWindow.ontransitionend is null PASS childWindow.ontransitionend is null
PASS childWindow.ontransitionrun is null
PASS childWindow.ontransitionstart is null
PASS childWindow.onunhandledrejection is null PASS childWindow.onunhandledrejection is null
PASS childWindow.onunload is null PASS childWindow.onunload is null
PASS childWindow.onvolumechange is null PASS childWindow.onvolumechange is null
......
...@@ -202,7 +202,10 @@ namespace http://www.w3.org/1999/xhtml ...@@ -202,7 +202,10 @@ namespace http://www.w3.org/1999/xhtml
property ontouchend property ontouchend
property ontouchmove property ontouchmove
property ontouchstart property ontouchstart
property ontransitioncancel
property ontransitionend property ontransitionend
property ontransitionrun
property ontransitionstart
property onvolumechange property onvolumechange
property onwaiting property onwaiting
property onwebkitfullscreenchange property onwebkitfullscreenchange
...@@ -1304,7 +1307,10 @@ namespace http://www.w3.org/2000/svg ...@@ -1304,7 +1307,10 @@ namespace http://www.w3.org/2000/svg
property ontouchend property ontouchend
property ontouchmove property ontouchmove
property ontouchstart property ontouchstart
property ontransitioncancel
property ontransitionend property ontransitionend
property ontransitionrun
property ontransitionstart
property onvolumechange property onvolumechange
property onwaiting property onwaiting
property onwebkitfullscreenchange property onwebkitfullscreenchange
......
...@@ -1371,7 +1371,10 @@ interface Document : Node ...@@ -1371,7 +1371,10 @@ interface Document : Node
getter ontouchend getter ontouchend
getter ontouchmove getter ontouchmove
getter ontouchstart getter ontouchstart
getter ontransitioncancel
getter ontransitionend getter ontransitionend
getter ontransitionrun
getter ontransitionstart
getter onvisibilitychange getter onvisibilitychange
getter onvolumechange getter onvolumechange
getter onwaiting getter onwaiting
...@@ -1559,7 +1562,10 @@ interface Document : Node ...@@ -1559,7 +1562,10 @@ interface Document : Node
setter ontouchend setter ontouchend
setter ontouchmove setter ontouchmove
setter ontouchstart setter ontouchstart
setter ontransitioncancel
setter ontransitionend setter ontransitionend
setter ontransitionrun
setter ontransitionstart
setter onvisibilitychange setter onvisibilitychange
setter onvolumechange setter onvolumechange
setter onwaiting setter onwaiting
...@@ -2335,7 +2341,10 @@ interface HTMLElement : Element ...@@ -2335,7 +2341,10 @@ interface HTMLElement : Element
getter ontouchend getter ontouchend
getter ontouchmove getter ontouchmove
getter ontouchstart getter ontouchstart
getter ontransitioncancel
getter ontransitionend getter ontransitionend
getter ontransitionrun
getter ontransitionstart
getter onvolumechange getter onvolumechange
getter onwaiting getter onwaiting
getter onwheel getter onwheel
...@@ -2442,7 +2451,10 @@ interface HTMLElement : Element ...@@ -2442,7 +2451,10 @@ interface HTMLElement : Element
setter ontouchend setter ontouchend
setter ontouchmove setter ontouchmove
setter ontouchstart setter ontouchstart
setter ontransitioncancel
setter ontransitionend setter ontransitionend
setter ontransitionrun
setter ontransitionstart
setter onvolumechange setter onvolumechange
setter onwaiting setter onwaiting
setter onwheel setter onwheel
...@@ -5656,7 +5668,10 @@ interface SVGElement : Element ...@@ -5656,7 +5668,10 @@ interface SVGElement : Element
getter ontouchend getter ontouchend
getter ontouchmove getter ontouchmove
getter ontouchstart getter ontouchstart
getter ontransitioncancel
getter ontransitionend getter ontransitionend
getter ontransitionrun
getter ontransitionstart
getter onvolumechange getter onvolumechange
getter onwaiting getter onwaiting
getter onwheel getter onwheel
...@@ -5749,7 +5764,10 @@ interface SVGElement : Element ...@@ -5749,7 +5764,10 @@ interface SVGElement : Element
setter ontouchend setter ontouchend
setter ontouchmove setter ontouchmove
setter ontouchstart setter ontouchstart
setter ontransitioncancel
setter ontransitionend setter ontransitionend
setter ontransitionrun
setter ontransitionstart
setter onvolumechange setter onvolumechange
setter onwaiting setter onwaiting
setter onwheel setter onwheel
...@@ -9080,7 +9098,10 @@ interface webkitURL ...@@ -9080,7 +9098,10 @@ interface webkitURL
getter ontouchend getter ontouchend
getter ontouchmove getter ontouchmove
getter ontouchstart getter ontouchstart
getter ontransitioncancel
getter ontransitionend getter ontransitionend
getter ontransitionrun
getter ontransitionstart
getter onunhandledrejection getter onunhandledrejection
getter onunload getter onunload
getter onvolumechange getter onvolumechange
...@@ -9266,7 +9287,10 @@ interface webkitURL ...@@ -9266,7 +9287,10 @@ interface webkitURL
setter ontouchend setter ontouchend
setter ontouchmove setter ontouchmove
setter ontouchstart setter ontouchstart
setter ontransitioncancel
setter ontransitionend setter ontransitionend
setter ontransitionrun
setter ontransitionstart
setter onunhandledrejection setter onunhandledrejection
setter onunload setter onunload
setter onvolumechange setter onvolumechange
......
...@@ -265,7 +265,10 @@ namespace http://www.w3.org/1999/xhtml ...@@ -265,7 +265,10 @@ namespace http://www.w3.org/1999/xhtml
property ontouchend property ontouchend
property ontouchmove property ontouchmove
property ontouchstart property ontouchstart
property ontransitioncancel
property ontransitionend property ontransitionend
property ontransitionrun
property ontransitionstart
property onvolumechange property onvolumechange
property onwaiting property onwaiting
property onwebkitfullscreenchange property onwebkitfullscreenchange
...@@ -1452,7 +1455,10 @@ namespace http://www.w3.org/2000/svg ...@@ -1452,7 +1455,10 @@ namespace http://www.w3.org/2000/svg
property ontouchend property ontouchend
property ontouchmove property ontouchmove
property ontouchstart property ontouchstart
property ontransitioncancel
property ontransitionend property ontransitionend
property ontransitionrun
property ontransitionstart
property onvolumechange property onvolumechange
property onwaiting property onwaiting
property onwebkitfullscreenchange property onwebkitfullscreenchange
......
...@@ -1698,7 +1698,10 @@ interface Document : Node ...@@ -1698,7 +1698,10 @@ interface Document : Node
getter ontouchend getter ontouchend
getter ontouchmove getter ontouchmove
getter ontouchstart getter ontouchstart
getter ontransitioncancel
getter ontransitionend getter ontransitionend
getter ontransitionrun
getter ontransitionstart
getter onvisibilitychange getter onvisibilitychange
getter onvolumechange getter onvolumechange
getter onwaiting getter onwaiting
...@@ -1893,7 +1896,10 @@ interface Document : Node ...@@ -1893,7 +1896,10 @@ interface Document : Node
setter ontouchend setter ontouchend
setter ontouchmove setter ontouchmove
setter ontouchstart setter ontouchstart
setter ontransitioncancel
setter ontransitionend setter ontransitionend
setter ontransitionrun
setter ontransitionstart
setter onvisibilitychange setter onvisibilitychange
setter onvolumechange setter onvolumechange
setter onwaiting setter onwaiting
...@@ -3037,7 +3043,10 @@ interface HTMLElement : Element ...@@ -3037,7 +3043,10 @@ interface HTMLElement : Element
getter ontouchend getter ontouchend
getter ontouchmove getter ontouchmove
getter ontouchstart getter ontouchstart
getter ontransitioncancel
getter ontransitionend getter ontransitionend
getter ontransitionrun
getter ontransitionstart
getter onvolumechange getter onvolumechange
getter onwaiting getter onwaiting
getter onwheel getter onwheel
...@@ -3149,7 +3158,10 @@ interface HTMLElement : Element ...@@ -3149,7 +3158,10 @@ interface HTMLElement : Element
setter ontouchend setter ontouchend
setter ontouchmove setter ontouchmove
setter ontouchstart setter ontouchstart
setter ontransitioncancel
setter ontransitionend setter ontransitionend
setter ontransitionrun
setter ontransitionstart
setter onvolumechange setter onvolumechange
setter onwaiting setter onwaiting
setter onwheel setter onwheel
...@@ -6646,7 +6658,10 @@ interface SVGElement : Element ...@@ -6646,7 +6658,10 @@ interface SVGElement : Element
getter ontouchend getter ontouchend
getter ontouchmove getter ontouchmove
getter ontouchstart getter ontouchstart
getter ontransitioncancel
getter ontransitionend getter ontransitionend
getter ontransitionrun
getter ontransitionstart
getter onvolumechange getter onvolumechange
getter onwaiting getter onwaiting
getter onwheel getter onwheel
...@@ -6743,7 +6758,10 @@ interface SVGElement : Element ...@@ -6743,7 +6758,10 @@ interface SVGElement : Element
setter ontouchend setter ontouchend
setter ontouchmove setter ontouchmove
setter ontouchstart setter ontouchstart
setter ontransitioncancel
setter ontransitionend setter ontransitionend
setter ontransitionrun
setter ontransitionstart
setter onvolumechange setter onvolumechange
setter onwaiting setter onwaiting
setter onwheel setter onwheel
...@@ -11390,7 +11408,10 @@ interface webkitURL ...@@ -11390,7 +11408,10 @@ interface webkitURL
getter ontouchend getter ontouchend
getter ontouchmove getter ontouchmove
getter ontouchstart getter ontouchstart
getter ontransitioncancel
getter ontransitionend getter ontransitionend
getter ontransitionrun
getter ontransitionstart
getter onunhandledrejection getter onunhandledrejection
getter onunload getter onunload
getter onvolumechange getter onvolumechange
...@@ -11588,7 +11609,10 @@ interface webkitURL ...@@ -11588,7 +11609,10 @@ interface webkitURL
setter ontouchend setter ontouchend
setter ontouchmove setter ontouchmove
setter ontouchstart setter ontouchstart
setter ontransitioncancel
setter ontransitionend setter ontransitionend
setter ontransitionrun
setter ontransitionstart
setter onunhandledrejection setter onunhandledrejection
setter onunload setter onunload
setter onvolumechange setter onvolumechange
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment