Chromium Code Reviews| OLD | NEW |
|---|---|
| (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> | |
| OLD | NEW |