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

Side by Side Diff: third_party/WebKit/LayoutTests/svg/custom/animate-initial-pause-unpause.html

Issue 2009263002: Attempt to deflake svg/custom/animate-initial-pause-unpause.html (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/svg/custom/animate-initial-pause-unpause-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE HTML> 1 <!DOCTYPE HTML>
2 <html> 2 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script>
3 <!-- 4 <!--
4 Test for WK89943: pausing and unpausing an animation before it starts should have no effect. 5 Test for WK89943: pausing and unpausing an animation before it starts should have no effect.
5 --> 6 -->
6 <body> 7 <svg id="svg" width="400" height="400">
7 <svg id="svg" width="400" height="400"> 8 <rect x="0" y="0" width="100" height="100" fill="red"/>
8 <rect x="0" y="0" width="100" height="100" fill="red"/> 9 <rect id="rect" x="100" y="0" width="100" height="100" fill="green">
9 <rect id="rect" x="100" y="0" width="100" height="100" fill="green"> 10 <set attributeName="x" to="0" begin="0.01s" fill="freeze"/>
10 <set attributeName="x" to="0" begin="0.01s" fill="freeze"/> 11 </rect>
11 </rect> 12 </svg>
12 </svg> 13 <script>
13 <script> 14 async_test(function(t) {
14 if (window.testRunner) { 15 var svg = document.getElementById("svg");
15 testRunner.waitUntilDone();
16 testRunner.dumpAsText();
17 }
18 16
19 var svg = document.getElementById("svg"); 17 svg.pauseAnimations();
20 var rect = document.getElementById("rect"); 18 svg.unpauseAnimations();
21 19
22 svg.pauseAnimations(); 20 var endStep = t.step_func_done(function() {
23 svg.unpauseAnimations(); 21 var rect = document.getElementById("rect");
22 assert_equals(rect.x.animVal.value, 0, "<set> is applied");
23 });
24 24
25 setTimeout(function() { 25 window.onload = function() {
26 if (rect.x.animVal.value == 0) 26 requestAnimationFrame(function() {
27 document.body.innerHTML = "PASS"; 27 setTimeout(endStep, 50);
28 else 28 });
29 document.body.innerHTML = "FAIL : rect.x.animVal.value was " + r ect.x.animVal.value + " but we expected 0."; 29 };
30 30 }, "Pausing and unpausing an animation before it starts should have no effect");
31 if (window.testRunner) 31 </script>
32 testRunner.notifyDone();
33 }, 50);
34 </script>
35 </body>
36 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/svg/custom/animate-initial-pause-unpause-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698