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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <title>EventHandlers on SVGAnimationElement test</title>
3 <script src="../../resources/testharness.js"></script>
4 <script src="../../resources/testharnessreport.js"></script>
5 <script src="script-tests/animation-events.js"></script>
6 <script>
7 var attributeToEventMap = {
8 "onbegin" : "beginEvent",
9 "onend" : "endEvent",
10 "onrepeat" : "repeatEvent"
11 };
12
13 for (var attribute in attributeToEventMap) {
14 [
15 "SVGAnimateElement",
16 "SVGAnimateMotionElement",
17 "SVGAnimateTransformElement",
18 "SVGSetElement"
19 ].forEach(function(interface) {
20 testSet(interface, attribute);
21 testEnumerate(interface, attribute);
22 testReflect(interface, attribute);
23 });
24
25 testEventHandlerMapping(attribute, attributeToEventMap[attribute]);
26 };
27 </script>
28 <div id="log"></div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698