Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(617)

Unified Diff: LayoutTests/fast/svg/animation-events.html

Issue 201673003: [SVG2] Add onbegin, onend and onrepeat EventHandlers on SVGAnimationElement (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fs review Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698