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

Side by Side Diff: LayoutTests/svg/animations/svg-animation-policy-none.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 PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
fs 2014/12/18 16:45:17 You can drop <html> and <head></head> (the <script
je_julie(Not used) 2014/12/22 15:05:17 Done.
4 <script src="../../resources/js-test.js"></script>
5 <script src="resources/SVGTestCase.js"></script>
6 <script src="resources/SVGAnimationTestCase.js"></script>
7 </head>
8 <body onload="runSMILTest()">
9 <h1>SVG with animation policy, none</h1>
10 <p id="description"></p>
11 <div id="console"></div>
12 <script>
13 if (window.internals)
14 internals.settings.setImageAnimationPolicy("none");
15
16 description("This tests svg animation with animation policy none");
17 // Setup animation test
18 function sample1() {
19 shouldBeCloseEnough("rect.y.animVal.value", "0");
fs 2014/12/18 16:45:17 Shouldn't it be exactly '0'?
je_julie(Not used) 2014/12/22 15:05:17 You're right. I changed it.
20 shouldBe("rect.y.baseVal.value", "0");
21 }
22
23 function sample2() {
24 sample1();
25 }
26
27 function sample3() {
28 sample1();
29 }
30
31 function sample4() {
32 sample1();
33 }
34
35 function sample5() {
36 sample1();
37 }
38
39 function sample6() {
40 sample1();
41 }
42 </script>
43 <script src="script-tests/svg-animation-policy.js"></script>
44 </body>
45 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698