Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
| 2 <html> | 2 <html> |
| 3 <!-- Test for WK93063: This test passes if no assert is hit and PASS is printed. --> | 3 <!-- Test for WK93063: This test passes if no assert is hit and PASS is printed. --> |
| 4 <svg id="root" xmlns="http://www.w3.org/2000/svg"> | 4 <svg id="root" xmlns="http://www.w3.org/2000/svg"> |
| 5 <rect id="rect"> | 5 <rect id="rect"> |
| 6 <animateTransform attributeName="transform" dur="2s"/> | 6 <animateTransform attributeName="transform" dur="2s"/> |
| 7 </rect> | 7 </rect> |
| 8 <script> | 8 <script> |
| 9 if (window.testRunner) { | 9 if (window.testRunner) { |
| 10 testRunner.dumpAsText(); | 10 testRunner.dumpAsText(); |
| 11 testRunner.waitUntilDone(); | 11 testRunner.waitUntilDone(); |
| 12 } | 12 } |
| 13 | 13 |
| 14 var rect = document.getElementById('rect'); | 14 var rect = document.getElementById('rect'); |
| 15 setTimeout("changeTransform()", 1); | 15 setTimeout("changeTransform()", 3); |
|
fs
2015/05/06 09:32:29
This looks like it "raises the bar" for flakyness,
| |
| 16 | 16 |
| 17 function changeTransform() { | 17 function changeTransform() { |
| 18 rect.setAttribute("transform", "scale(1)"); | 18 rect.setAttribute("transform", "scale(1)"); |
| 19 document.getElementById("root").setCurrentTime(1); | 19 document.getElementById("root").setCurrentTime(1); |
| 20 document.write("This test passes if no assert is hit and PASS is printed : PASS."); | 20 document.write("This test passes if no assert is hit and PASS is printed : PASS."); |
| 21 if (window.testRunner) | 21 if (window.testRunner) |
| 22 testRunner.notifyDone(); | 22 testRunner.notifyDone(); |
| 23 } | 23 } |
| 24 </script> | 24 </script> |
| 25 </svg> | 25 </svg> |
| 26 </html> | 26 </html> |
| OLD | NEW |