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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <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.
4 </head>
5 <script src="../../resources/js-test.js"></script>
6 <script src="resources/SVGTestCase.js"></script>
7 <script src="resources/SVGAnimationTestCase.js"></script>
8 <body onload="runSMILTest()">
9 <h1>SVG with animation policy, once</h1>
10 <p id="description"></p>
11 <div id="console"></div>
12 <script>
13 if (window.internals)
14 internals.settings.setImageAnimationPolicy("once");
15
16 description("This tests svg animation with animation policy once");
17 // Setup animation test
18 function sample1() {
19 shouldBeCloseEnough("rect.y.animVal.value", "0");
20 shouldBe("rect.y.baseVal.value", "0");
21 }
22
23 function sample2() {
24 shouldBeCloseEnough("rect.y.animVal.value", "50");
25 shouldBe("rect.y.baseVal.value", "0");
26 }
27
28 function sample3() {
29 shouldBeCloseEnough("rect.y.animVal.value", "100");
30 shouldBe("rect.y.baseVal.value", "0");
31 }
32
33 function sample4() {
34 sample1();
35 }
36
37 function sample5() {
38 sample2();
39 }
40
41 function sample6() {
42 sample2();
43 }
44 </script>
45 <script src="script-tests/svg-animation-policy.js"></script>
46 </body>
47 </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.
48 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698