Index: LayoutTests/fast/svg/animation-events.html |
diff --git a/LayoutTests/fast/svg/animation-events.html b/LayoutTests/fast/svg/animation-events.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..56d1e227ffded09c43a3c563a0d14b1e250cb1bc |
--- /dev/null |
+++ b/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> |