| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 | 2 |
| 3 <script> | 3 <script> |
| 4 if (window.testRunner) | 4 if (window.testRunner) |
| 5 testRunner.dumpAsText(); | 5 testRunner.dumpAsText(); |
| 6 | 6 |
| 7 var log = []; | 7 var log = []; |
| 8 setTimeout(function() { | 8 requestAnimationFrame(function() { |
| 9 log.push(1); | 9 log.push(1); |
| 10 document.getElementById("sheet").remove(); | 10 document.getElementById("sheet").remove(); |
| 11 log.push(2); | 11 log.push(2); |
| 12 }); | 12 }); |
| 13 </script> | 13 </script> |
| 14 | 14 |
| 15 <link id="sheet" rel="stylesheet" href="http://127.0.0.1:8000/misc/resources/slo
w-stylesheet.cgi"> | 15 <link id="sheet" rel="stylesheet" href="http://127.0.0.1:8000/misc/resources/slo
w-stylesheet.cgi"> |
| 16 | 16 |
| 17 <p>Test that removing the last script blocking resoruce doesn't synchronously ru
n script.</p> | 17 <p>Test that removing the last script blocking resoruce doesn't synchronously ru
n script.</p> |
| 18 <p id="output"></p> | 18 <p id="output"></p> |
| 19 | 19 |
| 20 <script> | 20 <script> |
| 21 document.getElementById("output").textContent = (log.toString() == "1,2") ? "PAS
S" : "FAIL"; | 21 document.getElementById("output").textContent = (log.toString() == "1,2") ? "PAS
S" : "FAIL"; |
| 22 </script> | 22 </script> |
| OLD | NEW |