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

Unified Diff: LayoutTests/svg/animations/svg-animation-policy-once.html

Issue 802143002: AnimationPolicy setting is applied to SVG animation. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Move code to SMILTimeContainer and add LayoutTests Created 6 years 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/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>

Powered by Google App Engine
This is Rietveld 408576698