OLD | NEW |
| (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> | |
OLD | NEW |