Index: LayoutTests/svg/animations/svg-animation-policy-once.html |
diff --git a/LayoutTests/svg/animations/svg-animation-policy-once.html b/LayoutTests/svg/animations/svg-animation-policy-once.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..39158966995e56aa558e8b706d9b8a640d7599dc |
--- /dev/null |
+++ b/LayoutTests/svg/animations/svg-animation-policy-once.html |
@@ -0,0 +1,48 @@ |
+<!DOCTYPE html> |
+<html> |
+<head> |
fs
2014/12/18 16:45:18
You can drop <html> and <head></head>.
je_julie(Not used)
2014/12/22 15:05:17
Done.
|
+</head> |
+<script src="../../resources/js-test.js"></script> |
+<script src="resources/SVGTestCase.js"></script> |
+<script src="resources/SVGAnimationTestCase.js"></script> |
+<body onload="runSMILTest()"> |
+<h1>SVG with animation policy, once</h1> |
+<p id="description"></p> |
+<div id="console"></div> |
+<script> |
+if (window.internals) |
+ internals.settings.setImageAnimationPolicy("once"); |
+ |
+description("This tests svg animation with animation policy once"); |
+// Setup animation test |
+function sample1() { |
+ shouldBeCloseEnough("rect.y.animVal.value", "0"); |
+ shouldBe("rect.y.baseVal.value", "0"); |
+} |
+ |
+function sample2() { |
+ shouldBeCloseEnough("rect.y.animVal.value", "50"); |
+ shouldBe("rect.y.baseVal.value", "0"); |
+} |
+ |
+function sample3() { |
+ shouldBeCloseEnough("rect.y.animVal.value", "100"); |
+ shouldBe("rect.y.baseVal.value", "0"); |
+} |
+ |
+function sample4() { |
+ sample1(); |
+} |
+ |
+function sample5() { |
+ sample2(); |
+} |
+ |
+function sample6() { |
+ sample2(); |
+} |
+</script> |
+<script src="script-tests/svg-animation-policy.js"></script> |
+</body> |
+</body> |
fs
2014/12/18 16:45:17
One </body> is usually enough ;-)
je_julie(Not used)
2014/12/22 15:05:17
Woops. Sorry.
|
+</html> |