Changeset 176602 in webkit
- Timestamp:
- Dec 1, 2014 1:15:42 PM (9 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 2 added
- 1 deleted
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r176600 r176602 1 2014-12-01 Alexey Proskuryakov <ap@apple.com> 2 3 http tests should not use shared temporary files, part 3 4 https://bugs.webkit.org/show_bug.cgi?id=139135 5 6 Reviewed by Tim Horton. 7 8 Fix ping tests, using the same techniques as before. 9 10 * http/tests/navigation/image-load-in-unload-handler.html: 11 * http/tests/navigation/ping-cross-origin-from-https.html: 12 * http/tests/navigation/resources/check-ping.php: 13 * http/tests/navigation/resources/delete-ping.php: 14 * http/tests/navigation/resources/image-load-in-unload-handler-2.html: Copied from LayoutTests/http/tests/navigation/resources/ping-redirect.html. 15 * http/tests/navigation/resources/ping-file-path.php: Copied from LayoutTests/http/tests/security/contentSecurityPolicy/resources/report-file-path.php. 16 * http/tests/navigation/resources/ping-redirect.html: Removed. 17 * http/tests/navigation/resources/save-Ping.php: 18 1 19 2014-12-01 Alexey Proskuryakov <ap@apple.com> 2 20 -
trunk/LayoutTests/http/tests/navigation/image-load-in-unload-handler.html
r124692 r176602 20 20 // to make sure that the onunload handler has run before we get to 21 21 // check-ping.php. 22 location.assign("resources/ ping-redirect.html");22 location.assign("resources/image-load-in-unload-handler-2.html"); 23 23 } 24 24 -
trunk/LayoutTests/http/tests/navigation/ping-cross-origin-from-https.html
r124692 r176602 9 9 10 10 if (location.protocol != "https:") 11 location = "https://127.0.0.1:8443/navigation/ping-cross-origin.html" 11 location = "https://127.0.0.1:8443/navigation/ping-cross-origin-from-https.html" 12 13 var testCalled = false; 14 15 function test() { 16 if (!testCalled) { 17 if (window.testRunner) { 18 testRunner.dumpAsText(); 19 testRunner.overridePreference("WebKitHyperlinkAuditingEnabled", 1); 20 testRunner.waitUntilDone(); 21 } 22 testCalled = true; 23 return; 24 } 25 26 if (window.eventSender) { 27 var a = document.getElementById("a"); 28 eventSender.mouseMoveTo(a.offsetLeft + 2, a.offsetTop + 2); 29 eventSender.mouseDown(); 30 eventSender.mouseUp(); 31 } 32 } 33 12 34 </script> 13 </head></html> 35 </head> 36 </script> 37 </head> 38 <body onload="test();"> 39 <img src="resources/delete-ping.php" onload="test();" onerror="test();"></img> 40 <a id="a" href="resources/check-ping.php" ping="http://localhost:8000/navigation/resources/save-Ping.php?test=/navigation/ping-cross-origin-from-https.html">Navigate and send ping</a> 41 </body></html> -
trunk/LayoutTests/http/tests/navigation/resources/check-ping.php
r124691 r176602 1 1 <?php 2 while (!file_exists("ping.txt")) { 2 require_once 'ping-file-path.php'; 3 4 while (!file_exists($pingFilePath)) { 3 5 usleep(10000); 4 6 // file_exists() caches results, we want to invalidate the cache. … … 8 10 echo "<html><body>\n"; 9 11 echo "Ping sent successfully"; 10 $pingFile = fopen( "ping.txt", 'r');12 $pingFile = fopen($pingFilePath, 'r'); 11 13 while ($line = fgets($pingFile)) { 12 14 echo "<br>"; … … 14 16 } 15 17 fclose($pingFile); 16 unlink( "ping.txt");18 unlink($pingFilePath); 17 19 echo "<script>"; 18 20 echo "if (window.testRunner)"; -
trunk/LayoutTests/http/tests/navigation/resources/delete-ping.php
r65910 r176602 1 1 <?php 2 unlink("ping.txt"); 2 require_once 'ping-file-path.php'; 3 4 unlink($pingFilePath); 3 5 ?> -
trunk/LayoutTests/http/tests/navigation/resources/save-Ping.php
r107450 r176602 1 1 <?php 2 $pingFile = fopen("ping.txt.tmp", 'w'); 2 require_once 'ping-file-path.php'; 3 4 $pingFile = fopen($pingFilePath . ".tmp", 'w'); 3 5 $httpHeaders = $_SERVER; 4 6 ksort($httpHeaders, SORT_STRING); … … 8 10 } 9 11 fclose($pingFile); 10 rename( "ping.txt.tmp", "ping.txt");12 rename($pingFilePath . ".tmp", $pingFilePath); 11 13 foreach ($_COOKIE as $name => $value) 12 14 setcookie($name, "deleted", time() - 60, "/");
Note: See TracChangeset
for help on using the changeset viewer.