| OLD | NEW |
| 1 <html><head> | 1 <html><head> |
| 2 <title>Ping</title> | 2 <title>Ping</title> |
| 3 <script> | 3 <script> |
| 4 | 4 |
| 5 var testCalled = false; | 5 var testCalled = false; |
| 6 | 6 |
| 7 function test() { | 7 function test() { |
| 8 if (!testCalled) { | 8 if (!testCalled) { |
| 9 if (window.testRunner) { | 9 if (window.testRunner) { |
| 10 testRunner.dumpAsText(); | 10 testRunner.dumpAsText(); |
| 11 testRunner.overridePreference("WebKitHyperlinkAuditingEnabled", 1); | 11 testRunner.overridePreference("WebKitHyperlinkAuditingEnabled", 1); |
| 12 testRunner.waitUntilDone(); | 12 testRunner.waitUntilDone(); |
| 13 testRunner.dumpPingLoaderCallbacks(); |
| 13 } | 14 } |
| 14 testCalled = true; | 15 testCalled = true; |
| 15 return; | 16 return; |
| 16 } | 17 } |
| 17 try { | 18 try { |
| 18 var xhr = new XMLHttpRequest(); | 19 var xhr = new XMLHttpRequest(); |
| 19 xhr.open("GET", "../cookies/resources/setCookies.cgi", false); | 20 xhr.open("GET", "../cookies/resources/setCookies.cgi", false); |
| 20 xhr.setRequestHeader("SET-COOKIE", "hello=world;path=/"); | 21 xhr.setRequestHeader("SET-COOKIE", "hello=world;path=/"); |
| 21 xhr.send(null); | 22 xhr.send(null); |
| 22 if (xhr.status != 200) { | 23 if (xhr.status != 200) { |
| (...skipping 14 matching lines...) Expand all Loading... |
| 37 eventSender.mouseUp(); | 38 eventSender.mouseUp(); |
| 38 } | 39 } |
| 39 } | 40 } |
| 40 | 41 |
| 41 </script> | 42 </script> |
| 42 </head> | 43 </head> |
| 43 <body onload="test();"> | 44 <body onload="test();"> |
| 44 <img src="resources/delete-ping.php" onload="test();" onerror="test();"></img> | 45 <img src="resources/delete-ping.php" onload="test();" onerror="test();"></img> |
| 45 <a id="a" href="resources/check-ping.php" ping="resources/save-Ping.php">Navigat
e and send ping</a> | 46 <a id="a" href="resources/check-ping.php" ping="resources/save-Ping.php">Navigat
e and send ping</a> |
| 46 </body></html> | 47 </body></html> |
| OLD | NEW |