Title: [190410] trunk/LayoutTests
Revision
190410
Author
dba...@webkit.org
Date
2015-10-01 09:43:34 -0700 (Thu, 01 Oct 2015)

Log Message

Move <a ping> tests from LayoutTests/http/tests/navigation to LayoutTests/http/tests/navigation/ping-attribute
https://bugs.webkit.org/show_bug.cgi?id=148828

Reviewed by Alexey Proskuryakov.

Towards adding <area ping> tests (bug #79438), we should move the existing <a ping> tests from
LayoutTests/http/tests/navigation to LayoutTests/http/tests/navigation/ping-attribute and rename
them so as to make it clear from their name that they test the ping attribute on a HTML a element.

* http/tests/navigation/ping-attribute/anchor-cookie-expected.txt: Renamed from LayoutTests/http/tests/navigation/ping-cookie-expected.txt.
* http/tests/navigation/ping-attribute/anchor-cookie.html: Renamed from LayoutTests/http/tests/navigation/ping-cookie.html.
* http/tests/navigation/ping-attribute/anchor-cross-origin-expected.txt: Added.
* http/tests/navigation/ping-attribute/anchor-cross-origin-from-https-expected.txt: Renamed from LayoutTests/http/tests/navigation/ping-cross-origin-from-https-expected.txt.
* http/tests/navigation/ping-attribute/anchor-cross-origin-from-https.html: Renamed from LayoutTests/http/tests/navigation/ping-cross-origin-from-https.html.
* http/tests/navigation/ping-attribute/anchor-cross-origin.html: Renamed from LayoutTests/http/tests/navigation/ping-cross-origin.html.
* http/tests/navigation/ping-attribute/anchor-same-origin-expected.txt: Renamed from LayoutTests/http/tests/navigation/ping-same-origin-expected.txt.
* http/tests/navigation/ping-attribute/anchor-same-origin.html: Renamed from LayoutTests/http/tests/navigation/ping-same-origin.html.
* http/tests/navigation/ping-attribute/resources/check-ping.php: Added.
* http/tests/navigation/ping-attribute/resources/delete-ping.php: Added.
* http/tests/navigation/ping-attribute/resources/ping-file-path.php: Added.
* http/tests/navigation/ping-attribute/resources/save-Ping.php: Added.
* http/tests/navigation/ping-cross-origin-expected.txt: Removed.
* platform/ios-simulator-wk2/TestExpectations: Updated as needed for the above file renames.
* platform/win/TestExpectations: Ditto.

Modified Paths

Added Paths

Removed Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (190409 => 190410)


--- trunk/LayoutTests/ChangeLog	2015-10-01 15:39:03 UTC (rev 190409)
+++ trunk/LayoutTests/ChangeLog	2015-10-01 16:43:34 UTC (rev 190410)
@@ -1,3 +1,30 @@
+2015-09-30  Daniel Bates  <daba...@apple.com>
+
+        Move <a ping> tests from LayoutTests/http/tests/navigation to LayoutTests/http/tests/navigation/ping-attribute
+        https://bugs.webkit.org/show_bug.cgi?id=148828
+
+        Reviewed by Alexey Proskuryakov.
+
+        Towards adding <area ping> tests (bug #79438), we should move the existing <a ping> tests from
+        LayoutTests/http/tests/navigation to LayoutTests/http/tests/navigation/ping-attribute and rename
+        them so as to make it clear from their name that they test the ping attribute on a HTML a element.
+
+        * http/tests/navigation/ping-attribute/anchor-cookie-expected.txt: Renamed from LayoutTests/http/tests/navigation/ping-cookie-expected.txt.
+        * http/tests/navigation/ping-attribute/anchor-cookie.html: Renamed from LayoutTests/http/tests/navigation/ping-cookie.html.
+        * http/tests/navigation/ping-attribute/anchor-cross-origin-expected.txt: Added.
+        * http/tests/navigation/ping-attribute/anchor-cross-origin-from-https-expected.txt: Renamed from LayoutTests/http/tests/navigation/ping-cross-origin-from-https-expected.txt.
+        * http/tests/navigation/ping-attribute/anchor-cross-origin-from-https.html: Renamed from LayoutTests/http/tests/navigation/ping-cross-origin-from-https.html.
+        * http/tests/navigation/ping-attribute/anchor-cross-origin.html: Renamed from LayoutTests/http/tests/navigation/ping-cross-origin.html.
+        * http/tests/navigation/ping-attribute/anchor-same-origin-expected.txt: Renamed from LayoutTests/http/tests/navigation/ping-same-origin-expected.txt.
+        * http/tests/navigation/ping-attribute/anchor-same-origin.html: Renamed from LayoutTests/http/tests/navigation/ping-same-origin.html.
+        * http/tests/navigation/ping-attribute/resources/check-ping.php: Added.
+        * http/tests/navigation/ping-attribute/resources/delete-ping.php: Added.
+        * http/tests/navigation/ping-attribute/resources/ping-file-path.php: Added.
+        * http/tests/navigation/ping-attribute/resources/save-Ping.php: Added.
+        * http/tests/navigation/ping-cross-origin-expected.txt: Removed.
+        * platform/ios-simulator-wk2/TestExpectations: Updated as needed for the above file renames.
+        * platform/win/TestExpectations: Ditto.
+
 2015-10-01  Wenson Hsieh  <wenson_hs...@apple.com>
 
         Implement keyboard event sending for iOS in WebKitTestRunner

Copied: trunk/LayoutTests/http/tests/navigation/ping-attribute/anchor-cookie-expected.txt (from rev 190409, trunk/LayoutTests/http/tests/navigation/ping-cookie-expected.txt) (0 => 190410)


--- trunk/LayoutTests/http/tests/navigation/ping-attribute/anchor-cookie-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/http/tests/navigation/ping-attribute/anchor-cookie-expected.txt	2015-10-01 16:43:34 UTC (rev 190410)
@@ -0,0 +1,6 @@
+Ping sent successfully
+CONTENT_TYPE: text/ping
+HTTP_COOKIE: hello=world
+HTTP_PING_FROM: http://127.0.0.1:8000/navigation/ping-attribute/anchor-cookie.html
+HTTP_PING_TO: http://127.0.0.1:8000/navigation/resources/check-ping.php
+REQUEST_METHOD: POST

Copied: trunk/LayoutTests/http/tests/navigation/ping-attribute/anchor-cookie.html (from rev 190409, trunk/LayoutTests/http/tests/navigation/ping-cookie.html) (0 => 190410)


--- trunk/LayoutTests/http/tests/navigation/ping-attribute/anchor-cookie.html	                        (rev 0)
+++ trunk/LayoutTests/http/tests/navigation/ping-attribute/anchor-cookie.html	2015-10-01 16:43:34 UTC (rev 190410)
@@ -0,0 +1,46 @@
+<html><head>
+<title>Ping</title>
+<script>
+
+var testCalled = false;
+
+function test() {
+    if (!testCalled) {
+        if (window.testRunner) {
+            testRunner.dumpAsText();
+            testRunner.overridePreference("WebKitHyperlinkAuditingEnabled", 1);
+            testRunner.waitUntilDone();
+        }
+        testCalled = true;
+        return;
+    }
+    try {
+        var xhr = new XMLHttpRequest();
+        xhr.open("GET", "../../cookies/resources/setCookies.cgi", false);
+        xhr.setRequestHeader("SET-COOKIE", "hello=world;path=/");
+        xhr.send(null);
+        if (xhr.status != 200) {
+            document.getElementsByTagName("body")[0].appendChild(document.createTextNode("FAILED: cookie not set"));
+            if (window.testRunner)
+                testRunner.notifyDone();
+        }
+    } catch (e) {
+        document.getElementsByTagName("body")[0].appendChild(document.createTextNode("FAILED: cookie not set"));
+        if (window.testRunner)
+            testRunner.notifyDone();
+    }
+
+    if (window.eventSender) {
+        var a = document.getElementById("a");
+        eventSender.mouseMoveTo(a.offsetLeft + 2, a.offsetTop + 2);
+        eventSender.mouseDown();
+        eventSender.mouseUp();
+    }
+}
+
+</script>
+</head>
+<body _onload_="test();">
+<img src="" _onload_="test();" _onerror_="test();"></img>
+<a id="a" href="" ping="../resources/save-Ping.php">Navigate and send ping</a>
+</body></html>

Added: trunk/LayoutTests/http/tests/navigation/ping-attribute/anchor-cross-origin-expected.txt (0 => 190410)


--- trunk/LayoutTests/http/tests/navigation/ping-attribute/anchor-cross-origin-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/http/tests/navigation/ping-attribute/anchor-cross-origin-expected.txt	2015-10-01 16:43:34 UTC (rev 190410)
@@ -0,0 +1,6 @@
+Ping sent successfully
+CONTENT_TYPE: text/ping
+HTTP_PING_FROM: http://127.0.0.1:8000/navigation/ping-attribute/anchor-cross-origin.html
+HTTP_PING_TO: http://127.0.0.1:8000/navigation/resources/check-ping.php
+HTTP_REFERER: http://127.0.0.1:8000/navigation/ping-attribute/anchor-cross-origin.html
+REQUEST_METHOD: POST

Copied: trunk/LayoutTests/http/tests/navigation/ping-attribute/anchor-cross-origin-from-https-expected.txt (from rev 190409, trunk/LayoutTests/http/tests/navigation/ping-cross-origin-from-https-expected.txt) (0 => 190410)


--- trunk/LayoutTests/http/tests/navigation/ping-attribute/anchor-cross-origin-from-https-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/http/tests/navigation/ping-attribute/anchor-cross-origin-from-https-expected.txt	2015-10-01 16:43:34 UTC (rev 190410)
@@ -0,0 +1,4 @@
+Ping sent successfully
+CONTENT_TYPE: text/ping
+HTTP_PING_TO: https://127.0.0.1:8443/navigation/resources/check-ping.php
+REQUEST_METHOD: POST

Copied: trunk/LayoutTests/http/tests/navigation/ping-attribute/anchor-cross-origin-from-https.html (from rev 190409, trunk/LayoutTests/http/tests/navigation/ping-cross-origin-from-https.html) (0 => 190410)


--- trunk/LayoutTests/http/tests/navigation/ping-attribute/anchor-cross-origin-from-https.html	                        (rev 0)
+++ trunk/LayoutTests/http/tests/navigation/ping-attribute/anchor-cross-origin-from-https.html	2015-10-01 16:43:34 UTC (rev 190410)
@@ -0,0 +1,41 @@
+<html><head>
+<title>Ping</title>
+<script>
+
+if (window.testRunner) {
+    testRunner.dumpAsText();
+    testRunner.waitUntilDone();
+}
+
+if (location.protocol != "https:")
+    location = "https://127.0.0.1:8443/navigation/ping-attribute/anchor-cross-origin-from-https.html"
+
+var testCalled = false;
+
+function test() {
+    if (!testCalled) {
+        if (window.testRunner) {
+            testRunner.dumpAsText();
+            testRunner.overridePreference("WebKitHyperlinkAuditingEnabled", 1);
+            testRunner.waitUntilDone();
+        }
+        testCalled = true;
+        return;
+    }
+
+    if (window.eventSender) {
+        var a = document.getElementById("a");
+        eventSender.mouseMoveTo(a.offsetLeft + 2, a.offsetTop + 2);
+        eventSender.mouseDown();
+        eventSender.mouseUp();
+    }
+}
+
+</script>
+</head>
+</script>
+</head>
+<body _onload_="test();">
+<img src="" _onload_="test();" _onerror_="test();"></img>
+<a id="a" href="" ping="http://localhost:8000/navigation/resources/save-Ping.php?test=/navigation/ping-attribute/anchor-cross-origin-from-https.html">Navigate and send ping</a>
+</body></html>

Copied: trunk/LayoutTests/http/tests/navigation/ping-attribute/anchor-cross-origin.html (from rev 190409, trunk/LayoutTests/http/tests/navigation/ping-cross-origin.html) (0 => 190410)


--- trunk/LayoutTests/http/tests/navigation/ping-attribute/anchor-cross-origin.html	                        (rev 0)
+++ trunk/LayoutTests/http/tests/navigation/ping-attribute/anchor-cross-origin.html	2015-10-01 16:43:34 UTC (rev 190410)
@@ -0,0 +1,31 @@
+<html><head>
+<title>Ping</title>
+<script>
+
+var testCalled = false;
+
+function test() {
+    if (!testCalled) {
+        if (window.testRunner) {
+            testRunner.dumpAsText();
+            testRunner.overridePreference("WebKitHyperlinkAuditingEnabled", 1);
+            testRunner.waitUntilDone();
+        }
+        testCalled = true;
+        return;
+    }
+
+    if (window.eventSender) {
+        var a = document.getElementById("a");
+        eventSender.mouseMoveTo(a.offsetLeft + 2, a.offsetTop + 2);
+        eventSender.mouseDown();
+        eventSender.mouseUp();
+    }
+}
+
+</script>
+</head>
+<body _onload_="test();">
+<img src="" _onload_="test();" _onerror_="test();"></img>
+<a id="a" href="" ping="http://localhost:8000/navigation/resources/save-Ping.php">Navigate and send ping</a>
+</body></html>

Copied: trunk/LayoutTests/http/tests/navigation/ping-attribute/anchor-same-origin-expected.txt (from rev 190409, trunk/LayoutTests/http/tests/navigation/ping-same-origin-expected.txt) (0 => 190410)


--- trunk/LayoutTests/http/tests/navigation/ping-attribute/anchor-same-origin-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/http/tests/navigation/ping-attribute/anchor-same-origin-expected.txt	2015-10-01 16:43:34 UTC (rev 190410)
@@ -0,0 +1,5 @@
+Ping sent successfully
+CONTENT_TYPE: text/ping
+HTTP_PING_FROM: http://127.0.0.1:8000/navigation/ping-attribute/anchor-same-origin.html
+HTTP_PING_TO: http://127.0.0.1:8000/navigation/resources/check-ping.php
+REQUEST_METHOD: POST

Copied: trunk/LayoutTests/http/tests/navigation/ping-attribute/anchor-same-origin.html (from rev 190409, trunk/LayoutTests/http/tests/navigation/ping-same-origin.html) (0 => 190410)


--- trunk/LayoutTests/http/tests/navigation/ping-attribute/anchor-same-origin.html	                        (rev 0)
+++ trunk/LayoutTests/http/tests/navigation/ping-attribute/anchor-same-origin.html	2015-10-01 16:43:34 UTC (rev 190410)
@@ -0,0 +1,31 @@
+<html><head>
+<title>Ping</title>
+<script>
+
+var testCalled = false;
+
+function test() {
+    if (!testCalled) {
+        if (window.testRunner) {
+            testRunner.dumpAsText();
+            testRunner.overridePreference("WebKitHyperlinkAuditingEnabled", 1);
+            testRunner.waitUntilDone();
+        }
+        testCalled = true;
+        return;
+    }
+
+    if (window.eventSender) {
+        var a = document.getElementById("a");
+        eventSender.mouseMoveTo(a.offsetLeft + 2, a.offsetTop + 2);
+        eventSender.mouseDown();
+        eventSender.mouseUp();
+    }
+}
+
+</script>
+</head>
+<body _onload_="test();">
+<img src="" _onload_="test();" _onerror_="test();"></img>
+<a id="a" href="" ping="../resources/save-Ping.php">Navigate and send ping</a>
+</body></html>

Added: trunk/LayoutTests/http/tests/navigation/ping-attribute/resources/check-ping.php (0 => 190410)


--- trunk/LayoutTests/http/tests/navigation/ping-attribute/resources/check-ping.php	                        (rev 0)
+++ trunk/LayoutTests/http/tests/navigation/ping-attribute/resources/check-ping.php	2015-10-01 16:43:34 UTC (rev 190410)
@@ -0,0 +1,24 @@
+<?php
+require_once 'ping-file-path.php';
+
+while (!file_exists($pingFilePath)) {
+    usleep(10000);
+    // file_exists() caches results, we want to invalidate the cache.
+    clearstatcache();
+}
+
+echo "<html><body>\n";
+echo "Ping sent successfully";
+$pingFile = fopen($pingFilePath, 'r');
+while ($line = fgets($pingFile)) {
+    echo "<br>";
+    echo trim($line);
+}
+fclose($pingFile);
+unlink($pingFilePath);
+echo "<script>";
+echo "if (window.testRunner)";
+echo "    testRunner.notifyDone();";
+echo "</script>";
+echo "</body></html>";
+?>

Added: trunk/LayoutTests/http/tests/navigation/ping-attribute/resources/delete-ping.php (0 => 190410)


--- trunk/LayoutTests/http/tests/navigation/ping-attribute/resources/delete-ping.php	                        (rev 0)
+++ trunk/LayoutTests/http/tests/navigation/ping-attribute/resources/delete-ping.php	2015-10-01 16:43:34 UTC (rev 190410)
@@ -0,0 +1,5 @@
+<?php
+require_once 'ping-file-path.php';
+
+unlink($pingFilePath);
+?>

Added: trunk/LayoutTests/http/tests/navigation/ping-attribute/resources/ping-file-path.php (0 => 190410)


--- trunk/LayoutTests/http/tests/navigation/ping-attribute/resources/ping-file-path.php	                        (rev 0)
+++ trunk/LayoutTests/http/tests/navigation/ping-attribute/resources/ping-file-path.php	2015-10-01 16:43:34 UTC (rev 190410)
@@ -0,0 +1,16 @@
+<?php
+require_once '../../../resources/portabilityLayer.php';
+
+if (isset($_GET['test'])) {
+    $pingFilePath = sys_get_temp_dir() . "/" . str_replace("/", "-", $_GET['test']) . ".ping.txt"; 
+} elseif (isset($_SERVER["HTTP_REFERER"]) and strpos($_SERVER["HTTP_REFERER"], '/resources/') === false) {
+    $pingFilePath = sys_get_temp_dir() . "/" . str_replace("/", "-", parse_url($_SERVER["HTTP_REFERER"], PHP_URL_PATH)) . ".ping.txt"; 
+} elseif (isset($_SERVER["HTTP_PING_FROM"]) and strpos($_SERVER["HTTP_PING_FROM"], '/resources/') === false) {
+    $pingFilePath = sys_get_temp_dir() . "/" . str_replace("/", "-", parse_url($_SERVER["HTTP_PING_FROM"], PHP_URL_PATH)) . ".ping.txt"; 
+} else {
+    header("HTTP/1.1 500 Internal Server Error");
+    echo "This script needs to know the name of the test to form a unique temporary file path. It can get one either from HTTP referrer, or from a 'test' parameter.\n";
+    exit();
+}
+
+?>

Added: trunk/LayoutTests/http/tests/navigation/ping-attribute/resources/save-Ping.php (0 => 190410)


--- trunk/LayoutTests/http/tests/navigation/ping-attribute/resources/save-Ping.php	                        (rev 0)
+++ trunk/LayoutTests/http/tests/navigation/ping-attribute/resources/save-Ping.php	2015-10-01 16:43:34 UTC (rev 190410)
@@ -0,0 +1,15 @@
+<?php
+require_once 'ping-file-path.php';
+
+$pingFile = fopen($pingFilePath . ".tmp", 'w');
+$httpHeaders = $_SERVER;
+ksort($httpHeaders, SORT_STRING);
+foreach ($httpHeaders as $name => $value) {
+    if ($name === "CONTENT_TYPE" || $name === "HTTP_REFERER" || $name === "HTTP_PING_TO" || $name === "HTTP_PING_FROM" || $name === "REQUEST_METHOD" || $name === "HTTP_COOKIE")
+        fwrite($pingFile, "$name: $value\n");
+}
+fclose($pingFile);
+rename($pingFilePath . ".tmp", $pingFilePath);
+foreach ($_COOKIE as $name => $value)
+    setcookie($name, "deleted", time() - 60, "/");
+?>

Deleted: trunk/LayoutTests/http/tests/navigation/ping-cookie-expected.txt (190409 => 190410)


--- trunk/LayoutTests/http/tests/navigation/ping-cookie-expected.txt	2015-10-01 15:39:03 UTC (rev 190409)
+++ trunk/LayoutTests/http/tests/navigation/ping-cookie-expected.txt	2015-10-01 16:43:34 UTC (rev 190410)
@@ -1,6 +0,0 @@
-Ping sent successfully
-CONTENT_TYPE: text/ping
-HTTP_COOKIE: hello=world
-HTTP_PING_FROM: http://127.0.0.1:8000/navigation/ping-cookie.html
-HTTP_PING_TO: http://127.0.0.1:8000/navigation/resources/check-ping.php
-REQUEST_METHOD: POST

Deleted: trunk/LayoutTests/http/tests/navigation/ping-cookie.html (190409 => 190410)


--- trunk/LayoutTests/http/tests/navigation/ping-cookie.html	2015-10-01 15:39:03 UTC (rev 190409)
+++ trunk/LayoutTests/http/tests/navigation/ping-cookie.html	2015-10-01 16:43:34 UTC (rev 190410)
@@ -1,46 +0,0 @@
-<html><head>
-<title>Ping</title>
-<script>
-
-var testCalled = false;
-
-function test() {
-    if (!testCalled) {
-        if (window.testRunner) {
-            testRunner.dumpAsText();
-            testRunner.overridePreference("WebKitHyperlinkAuditingEnabled", 1);
-            testRunner.waitUntilDone();
-        }
-        testCalled = true;
-        return;
-    }
-    try {
-        var xhr = new XMLHttpRequest();
-        xhr.open("GET", "../cookies/resources/setCookies.cgi", false);
-        xhr.setRequestHeader("SET-COOKIE", "hello=world;path=/");
-        xhr.send(null);
-        if (xhr.status != 200) {
-            document.getElementsByTagName("body")[0].appendChild(document.createTextNode("FAILED: cookie not set"));
-            if (window.testRunner)
-                testRunner.notifyDone();
-        }
-    } catch (e) {
-        document.getElementsByTagName("body")[0].appendChild(document.createTextNode("FAILED: cookie not set"));
-        if (window.testRunner)
-            testRunner.notifyDone();
-    }
-
-    if (window.eventSender) {
-        var a = document.getElementById("a");
-        eventSender.mouseMoveTo(a.offsetLeft + 2, a.offsetTop + 2);
-        eventSender.mouseDown();
-        eventSender.mouseUp();
-    }
-}
-
-</script>
-</head>
-<body _onload_="test();">
-<img src="" _onload_="test();" _onerror_="test();"></img>
-<a id="a" href="" ping="resources/save-Ping.php">Navigate and send ping</a>
-</body></html>

Deleted: trunk/LayoutTests/http/tests/navigation/ping-cross-origin-expected.txt (190409 => 190410)


--- trunk/LayoutTests/http/tests/navigation/ping-cross-origin-expected.txt	2015-10-01 15:39:03 UTC (rev 190409)
+++ trunk/LayoutTests/http/tests/navigation/ping-cross-origin-expected.txt	2015-10-01 16:43:34 UTC (rev 190410)
@@ -1,6 +0,0 @@
-Ping sent successfully
-CONTENT_TYPE: text/ping
-HTTP_PING_FROM: http://127.0.0.1:8000/navigation/ping-cross-origin.html
-HTTP_PING_TO: http://127.0.0.1:8000/navigation/resources/check-ping.php
-HTTP_REFERER: http://127.0.0.1:8000/navigation/ping-cross-origin.html
-REQUEST_METHOD: POST

Deleted: trunk/LayoutTests/http/tests/navigation/ping-cross-origin-from-https-expected.txt (190409 => 190410)


--- trunk/LayoutTests/http/tests/navigation/ping-cross-origin-from-https-expected.txt	2015-10-01 15:39:03 UTC (rev 190409)
+++ trunk/LayoutTests/http/tests/navigation/ping-cross-origin-from-https-expected.txt	2015-10-01 16:43:34 UTC (rev 190410)
@@ -1,4 +0,0 @@
-Ping sent successfully
-CONTENT_TYPE: text/ping
-HTTP_PING_TO: https://127.0.0.1:8443/navigation/resources/check-ping.php
-REQUEST_METHOD: POST

Deleted: trunk/LayoutTests/http/tests/navigation/ping-cross-origin-from-https.html (190409 => 190410)


--- trunk/LayoutTests/http/tests/navigation/ping-cross-origin-from-https.html	2015-10-01 15:39:03 UTC (rev 190409)
+++ trunk/LayoutTests/http/tests/navigation/ping-cross-origin-from-https.html	2015-10-01 16:43:34 UTC (rev 190410)
@@ -1,41 +0,0 @@
-<html><head>
-<title>Ping</title>
-<script>
-
-if (window.testRunner) {
-    testRunner.dumpAsText();
-    testRunner.waitUntilDone();
-}
-
-if (location.protocol != "https:")
-    location = "https://127.0.0.1:8443/navigation/ping-cross-origin-from-https.html"
-
-var testCalled = false;
-
-function test() {
-    if (!testCalled) {
-        if (window.testRunner) {
-            testRunner.dumpAsText();
-            testRunner.overridePreference("WebKitHyperlinkAuditingEnabled", 1);
-            testRunner.waitUntilDone();
-        }
-        testCalled = true;
-        return;
-    }
-
-    if (window.eventSender) {
-        var a = document.getElementById("a");
-        eventSender.mouseMoveTo(a.offsetLeft + 2, a.offsetTop + 2);
-        eventSender.mouseDown();
-        eventSender.mouseUp();
-    }
-}
-
-</script>
-</head>
-</script>
-</head>
-<body _onload_="test();">
-<img src="" _onload_="test();" _onerror_="test();"></img>
-<a id="a" href="" ping="http://localhost:8000/navigation/resources/save-Ping.php?test=/navigation/ping-cross-origin-from-https.html">Navigate and send ping</a>
-</body></html>

Deleted: trunk/LayoutTests/http/tests/navigation/ping-cross-origin.html (190409 => 190410)


--- trunk/LayoutTests/http/tests/navigation/ping-cross-origin.html	2015-10-01 15:39:03 UTC (rev 190409)
+++ trunk/LayoutTests/http/tests/navigation/ping-cross-origin.html	2015-10-01 16:43:34 UTC (rev 190410)
@@ -1,31 +0,0 @@
-<html><head>
-<title>Ping</title>
-<script>
-
-var testCalled = false;
-
-function test() {
-    if (!testCalled) {
-        if (window.testRunner) {
-            testRunner.dumpAsText();
-            testRunner.overridePreference("WebKitHyperlinkAuditingEnabled", 1);
-            testRunner.waitUntilDone();
-        }
-        testCalled = true;
-        return;
-    }
-
-    if (window.eventSender) {
-        var a = document.getElementById("a");
-        eventSender.mouseMoveTo(a.offsetLeft + 2, a.offsetTop + 2);
-        eventSender.mouseDown();
-        eventSender.mouseUp();
-    }
-}
-
-</script>
-</head>
-<body _onload_="test();">
-<img src="" _onload_="test();" _onerror_="test();"></img>
-<a id="a" href="" ping="http://localhost:8000/navigation/resources/save-Ping.php">Navigate and send ping</a>
-</body></html>

Deleted: trunk/LayoutTests/http/tests/navigation/ping-same-origin-expected.txt (190409 => 190410)


--- trunk/LayoutTests/http/tests/navigation/ping-same-origin-expected.txt	2015-10-01 15:39:03 UTC (rev 190409)
+++ trunk/LayoutTests/http/tests/navigation/ping-same-origin-expected.txt	2015-10-01 16:43:34 UTC (rev 190410)
@@ -1,5 +0,0 @@
-Ping sent successfully
-CONTENT_TYPE: text/ping
-HTTP_PING_FROM: http://127.0.0.1:8000/navigation/ping-same-origin.html
-HTTP_PING_TO: http://127.0.0.1:8000/navigation/resources/check-ping.php
-REQUEST_METHOD: POST

Deleted: trunk/LayoutTests/http/tests/navigation/ping-same-origin.html (190409 => 190410)


--- trunk/LayoutTests/http/tests/navigation/ping-same-origin.html	2015-10-01 15:39:03 UTC (rev 190409)
+++ trunk/LayoutTests/http/tests/navigation/ping-same-origin.html	2015-10-01 16:43:34 UTC (rev 190410)
@@ -1,31 +0,0 @@
-<html><head>
-<title>Ping</title>
-<script>
-
-var testCalled = false;
-
-function test() {
-    if (!testCalled) {
-        if (window.testRunner) {
-            testRunner.dumpAsText();
-            testRunner.overridePreference("WebKitHyperlinkAuditingEnabled", 1);
-            testRunner.waitUntilDone();
-        }
-        testCalled = true;
-        return;
-    }
-
-    if (window.eventSender) {
-        var a = document.getElementById("a");
-        eventSender.mouseMoveTo(a.offsetLeft + 2, a.offsetTop + 2);
-        eventSender.mouseDown();
-        eventSender.mouseUp();
-    }
-}
-
-</script>
-</head>
-<body _onload_="test();">
-<img src="" _onload_="test();" _onerror_="test();"></img>
-<a id="a" href="" ping="resources/save-Ping.php">Navigate and send ping</a>
-</body></html>

Modified: trunk/LayoutTests/platform/ios-simulator-wk2/TestExpectations (190409 => 190410)


--- trunk/LayoutTests/platform/ios-simulator-wk2/TestExpectations	2015-10-01 15:39:03 UTC (rev 190409)
+++ trunk/LayoutTests/platform/ios-simulator-wk2/TestExpectations	2015-10-01 16:43:34 UTC (rev 190410)
@@ -560,9 +560,9 @@
 http/tests/navigation/no-referrer-same-window.html
 http/tests/navigation/no-referrer-subframe.html
 http/tests/navigation/no-referrer-target-blank.html
-http/tests/navigation/ping-cross-origin-from-https.html
-http/tests/navigation/ping-cross-origin.html
-http/tests/navigation/ping-same-origin.html
+http/tests/navigation/ping-attribute/anchor-cross-origin-from-https.html
+http/tests/navigation/ping-attribute/anchor-cross-origin.html
+http/tests/navigation/ping-attribute/anchor-same-origin.html
 http/tests/navigation/redirect-preserves-referrer.html
 http/tests/navigation/redirect-to-random-url-versus-memory-cache.html
 http/tests/security/aboutBlank/xss-DENIED-navigate-opener-document-write.html
@@ -2061,7 +2061,7 @@
 # Skip timeouts
 fast/dom/Geolocation/startUpdatingOnlyWhenPageVisible.html [ Skip ]
 fast/dom/Geolocation/stopUpdatingForHiddenPage.html [ Skip ]
-http/tests/navigation/ping-cookie.html [ Skip ]
+http/tests/navigation/ping-attribute/anchor-cookie.html [ Skip ]
 webkit.org/b/148709 fast/events/wheelevent-basic.html [ Skip ]
 webkit.org/b/148709 fast/events/wheelevent-mousewheel-interaction.html [ Skip ]
 

Modified: trunk/LayoutTests/platform/win/TestExpectations (190409 => 190410)


--- trunk/LayoutTests/platform/win/TestExpectations	2015-10-01 15:39:03 UTC (rev 190409)
+++ trunk/LayoutTests/platform/win/TestExpectations	2015-10-01 16:43:34 UTC (rev 190410)
@@ -2271,7 +2271,7 @@
 http/tests/media/clearkey/clear-key-hls-aes128.html	[ Skip ] # Timeout
 
 # SSL Configuration on Windows <rdar://problem/5345985>
-http/tests/navigation/ping-cross-origin-from-https.html [ Skip ] # Timeout
+http/tests/navigation/ping-attribute/anchor-cross-origin-from-https.html [ Skip ] # Timeout
 http/tests/security/cross-frame-access-protocol.html [ Skip ] # Timeout
 
 #<rdar://problem/5224271> Some LayoutTests fail when not run by themselves.
@@ -3243,6 +3243,6 @@
 # TestRunner::cellForColumnAndRow() not implemented
 webkit.org/b/148354 accessibility/aria-table-content.html [ Skip ]
 
-webkit.org/b/148886 http/tests/navigation/ping-same-origin.html [ Pass Failure ]
+webkit.org/b/148886 http/tests/navigation/ping-attribute/anchor-same-origin.html [ Pass Failure ]
 webkit.org/b/148887 http/tests/navigation/success200-reload.html [ Pass Failure ]
 webkit.org/b/148888 http/tests/navigation/slowmetaredirect-basic.html [ Pass Failure ]
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to