summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/svg/animation-events.html
blob: 56d1e227ffded09c43a3c563a0d14b1e250cb1bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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>