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

Side by Side Diff: LayoutTests/http/tests/misc/script-after-slow-stylesheet-removed.html

Issue 615033002: Refactor of various layout tests to use RAF (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fix use-detatch.svg Created 6 years, 2 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
OLDNEW
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698