diff options
Diffstat (limited to 'third_party/WebKit/LayoutTests/fast/svg/animation-events.html')
-rw-r--r-- | third_party/WebKit/LayoutTests/fast/svg/animation-events.html | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/third_party/WebKit/LayoutTests/fast/svg/animation-events.html b/third_party/WebKit/LayoutTests/fast/svg/animation-events.html new file mode 100644 index 0000000..56d1e22 --- /dev/null +++ b/third_party/WebKit/LayoutTests/fast/svg/animation-events.html @@ -0,0 +1,28 @@ +<!DOCTYPE html> +<title>EventHandlers on SVGAnimationElement test</title> +<script src="../../resources/testharness.js"></script> +<script src="../../resources/testharnessreport.js"></script> +<script src="script-tests/animation-events.js"></script> +<script> +var attributeToEventMap = { + "onbegin" : "beginEvent", + "onend" : "endEvent", + "onrepeat" : "repeatEvent" +}; + +for (var attribute in attributeToEventMap) { + [ + "SVGAnimateElement", + "SVGAnimateMotionElement", + "SVGAnimateTransformElement", + "SVGSetElement" + ].forEach(function(interface) { + testSet(interface, attribute); + testEnumerate(interface, attribute); + testReflect(interface, attribute); + }); + + testEventHandlerMapping(attribute, attributeToEventMap[attribute]); +}; +</script> +<div id="log"></div> |