| OLD | NEW | 
|   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> | 
| OLD | NEW |