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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/misc/timer-vs-loading.html

Issue 2694903007: Add a warning for the deprecation of content-initiated data URL navigations (Closed)
Patch Set: creis comments Created 3 years, 9 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 <html><head> 1 <html><head>
2 <script language="javascript" type="text/javascript"><!-- 2 <script language="javascript" type="text/javascript"><!--
3 3
4 if (window.testRunner) { 4 if (window.testRunner) {
5 testRunner.dumpAsText(); 5 testRunner.dumpAsText();
6 testRunner.waitUntilDone(); 6 testRunner.waitUntilDone();
7 } 7 }
8 8
9 function updateClock() 9 function updateClock()
10 { 10 {
11 window.setTimeout("success()", 100); 11 window.setTimeout("success()", 100);
12 } 12 }
13 13
14 function success() 14 function success()
15 { 15 {
16 document.getElementById("RESULT").innerHTML = "SUCCESS"; 16 document.getElementById("RESULT").innerHTML = "SUCCESS";
17 if (window.testRunner) 17 if (window.testRunner)
18 window.location = "data:text/html,SUCCESS<script>testRunner.notifyDo ne()</scr" + "ipt>"; 18 window.location = "resources/notify-success.html";
19 } 19 }
20 20
21 --></script> 21 --></script>
22 22
23 </head><body> 23 </head><body>
24 <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=9001">bug 9001< a>: 24 <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=9001">bug 9001< a>:
25 Javascript stops running before replacement page data arrives.</p> 25 Javascript stops running before replacement page data arrives.</p>
26 26
27 <span id="RESULT">WAIT</span><p> 27 <span id="RESULT">WAIT</span><p>
28 28
29 <script> 29 <script>
30 window.setTimeout("updateClock()", 100); 30 window.setTimeout("updateClock()", 100);
31 setTimeout('window.location = "resources/hang-connection.php"', 0); 31 setTimeout('window.location = "resources/hang-connection.php"', 0);
32 </script> 32 </script>
33 33
34 </body></html> 34 </body></html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698