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

Side by Side Diff: LayoutTests/svg/animations/getCurrentTime-pause-unpause.html

Issue 58533003: Move fast/js/resources files to resources. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <!--This tests svg.getCurrentTime() when SVG animation is paused and unpaused. 2 <!--This tests svg.getCurrentTime() when SVG animation is paused and unpaused.
3 Sequence of steps are, 3 Sequence of steps are,
4 1. Pause the SVG animation at the beginning. 4 1. Pause the SVG animation at the beginning.
5 2. 10 msec delay 5 2. 10 msec delay
6 3. Test 1, measure the currentTime which should still be 0. 6 3. Test 1, measure the currentTime which should still be 0.
7 4. Unpause the SVG animation 7 4. Unpause the SVG animation
8 5. 50 msec delay 8 5. 50 msec delay
9 6. Test 2, measure the currentTime which should be .05 sec. 9 6. Test 2, measure the currentTime which should be .05 sec.
10 7. Pause the SVG animation 10 7. Pause the SVG animation
11 8. 50 msec delay 11 8. 50 msec delay
12 9. Test 3, measure the currentTime which should still be .05 sec. 12 9. Test 3, measure the currentTime which should still be .05 sec.
13 --> 13 -->
14 <html> 14 <html>
15 <script src="../../fast/js/resources/js-test-pre.js"></script> 15 <script src="../../resources/js-test.js"></script>
16 <script src="resources/SVGAnimationTestCase.js"></script> 16 <script src="resources/SVGAnimationTestCase.js"></script>
17 <script> 17 <script>
18 function load() { 18 function load() {
19 if (window.testRunner) { 19 if (window.testRunner) {
20 testRunner.dumpAsText(); 20 testRunner.dumpAsText();
21 testRunner.waitUntilDone(); 21 testRunner.waitUntilDone();
22 } 22 }
23 23
24 svg = document.getElementById("svg"); 24 svg = document.getElementById("svg");
25 rect = document.getElementById("rect"); 25 rect = document.getElementById("rect");
(...skipping 16 matching lines...) Expand all
42 </script> 42 </script>
43 <head><title>svg.getCurrentTime() when SVG animation is paused and unpaused</tit le></head> 43 <head><title>svg.getCurrentTime() when SVG animation is paused and unpaused</tit le></head>
44 <body onload="load()"> 44 <body onload="load()">
45 <svg id="svg" xmlns="http://www.w3.org/2000/svg"> 45 <svg id="svg" xmlns="http://www.w3.org/2000/svg">
46 <rect id="rect" fill="green" width="20" height="20"> 46 <rect id="rect" fill="green" width="20" height="20">
47 <animate attributeName="x" from="0" to="200" begin="0s" dur="3s"></animate > 47 <animate attributeName="x" from="0" to="200" begin="0s" dur="3s"></animate >
48 </rect> 48 </rect>
49 </svg> 49 </svg>
50 </body> 50 </body>
51 </html> 51 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698