<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[190410] trunk/LayoutTests</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/190410">190410</a></dd>
<dt>Author</dt> <dd>dbates@webkit.org</dd>
<dt>Date</dt> <dd>2015-10-01 09:43:34 -0700 (Thu, 01 Oct 2015)</dd>
</dl>
<h3>Log Message</h3>
<pre>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.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsChangeLog">trunk/LayoutTests/ChangeLog</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatorwk2TestExpectations">trunk/LayoutTests/platform/ios-simulator-wk2/TestExpectations</a></li>
<li><a href="#trunkLayoutTestsplatformwinTestExpectations">trunk/LayoutTests/platform/win/TestExpectations</a></li>
</ul>
<h3>Added Paths</h3>
<ul>
<li>trunk/LayoutTests/http/tests/navigation/ping-attribute/</li>
<li><a href="#trunkLayoutTestshttptestsnavigationpingattributeanchorcookieexpectedtxt">trunk/LayoutTests/http/tests/navigation/ping-attribute/anchor-cookie-expected.txt</a></li>
<li><a href="#trunkLayoutTestshttptestsnavigationpingattributeanchorcookiehtml">trunk/LayoutTests/http/tests/navigation/ping-attribute/anchor-cookie.html</a></li>
<li><a href="#trunkLayoutTestshttptestsnavigationpingattributeanchorcrossoriginexpectedtxt">trunk/LayoutTests/http/tests/navigation/ping-attribute/anchor-cross-origin-expected.txt</a></li>
<li><a href="#trunkLayoutTestshttptestsnavigationpingattributeanchorcrossoriginfromhttpsexpectedtxt">trunk/LayoutTests/http/tests/navigation/ping-attribute/anchor-cross-origin-from-https-expected.txt</a></li>
<li><a href="#trunkLayoutTestshttptestsnavigationpingattributeanchorcrossoriginfromhttpshtml">trunk/LayoutTests/http/tests/navigation/ping-attribute/anchor-cross-origin-from-https.html</a></li>
<li><a href="#trunkLayoutTestshttptestsnavigationpingattributeanchorcrossoriginhtml">trunk/LayoutTests/http/tests/navigation/ping-attribute/anchor-cross-origin.html</a></li>
<li><a href="#trunkLayoutTestshttptestsnavigationpingattributeanchorsameoriginexpectedtxt">trunk/LayoutTests/http/tests/navigation/ping-attribute/anchor-same-origin-expected.txt</a></li>
<li><a href="#trunkLayoutTestshttptestsnavigationpingattributeanchorsameoriginhtml">trunk/LayoutTests/http/tests/navigation/ping-attribute/anchor-same-origin.html</a></li>
<li>trunk/LayoutTests/http/tests/navigation/ping-attribute/resources/</li>
<li><a href="#trunkLayoutTestshttptestsnavigationpingattributeresourcescheckpingphp">trunk/LayoutTests/http/tests/navigation/ping-attribute/resources/check-ping.php</a></li>
<li><a href="#trunkLayoutTestshttptestsnavigationpingattributeresourcesdeletepingphp">trunk/LayoutTests/http/tests/navigation/ping-attribute/resources/delete-ping.php</a></li>
<li><a href="#trunkLayoutTestshttptestsnavigationpingattributeresourcespingfilepathphp">trunk/LayoutTests/http/tests/navigation/ping-attribute/resources/ping-file-path.php</a></li>
<li><a href="#trunkLayoutTestshttptestsnavigationpingattributeresourcessavePingphp">trunk/LayoutTests/http/tests/navigation/ping-attribute/resources/save-Ping.php</a></li>
</ul>
<h3>Removed Paths</h3>
<ul>
<li><a href="#trunkLayoutTestshttptestsnavigationpingcookieexpectedtxt">trunk/LayoutTests/http/tests/navigation/ping-cookie-expected.txt</a></li>
<li><a href="#trunkLayoutTestshttptestsnavigationpingcookiehtml">trunk/LayoutTests/http/tests/navigation/ping-cookie.html</a></li>
<li><a href="#trunkLayoutTestshttptestsnavigationpingcrossoriginexpectedtxt">trunk/LayoutTests/http/tests/navigation/ping-cross-origin-expected.txt</a></li>
<li><a href="#trunkLayoutTestshttptestsnavigationpingcrossoriginfromhttpsexpectedtxt">trunk/LayoutTests/http/tests/navigation/ping-cross-origin-from-https-expected.txt</a></li>
<li><a href="#trunkLayoutTestshttptestsnavigationpingcrossoriginfromhttpshtml">trunk/LayoutTests/http/tests/navigation/ping-cross-origin-from-https.html</a></li>
<li><a href="#trunkLayoutTestshttptestsnavigationpingcrossoriginhtml">trunk/LayoutTests/http/tests/navigation/ping-cross-origin.html</a></li>
<li><a href="#trunkLayoutTestshttptestsnavigationpingsameoriginexpectedtxt">trunk/LayoutTests/http/tests/navigation/ping-same-origin-expected.txt</a></li>
<li><a href="#trunkLayoutTestshttptestsnavigationpingsameoriginhtml">trunk/LayoutTests/http/tests/navigation/ping-same-origin.html</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/ChangeLog (190409 => 190410)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/ChangeLog        2015-10-01 15:39:03 UTC (rev 190409)
+++ trunk/LayoutTests/ChangeLog        2015-10-01 16:43:34 UTC (rev 190410)
</span><span class="lines">@@ -1,3 +1,30 @@
</span><ins>+2015-09-30 Daniel Bates <dabates@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.
+
</ins><span class="cx"> 2015-10-01 Wenson Hsieh <wenson_hsieh@apple.com>
</span><span class="cx">
</span><span class="cx"> Implement keyboard event sending for iOS in WebKitTestRunner
</span></span></pre></div>
<a id="trunkLayoutTestshttptestsnavigationpingattributeanchorcookieexpectedtxtfromrev190409trunkLayoutTestshttptestsnavigationpingcookieexpectedtxt"></a>
<div class="copfile"><h4>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)</h4>
<pre class="diff"><span>
<span class="info">--- 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)
</span><span class="lines">@@ -0,0 +1,6 @@
</span><ins>+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
</ins></span></pre></div>
<a id="trunkLayoutTestshttptestsnavigationpingattributeanchorcookiehtmlfromrev190409trunkLayoutTestshttptestsnavigationpingcookiehtml"></a>
<div class="copfile"><h4>Copied: trunk/LayoutTests/http/tests/navigation/ping-attribute/anchor-cookie.html (from rev 190409, trunk/LayoutTests/http/tests/navigation/ping-cookie.html) (0 => 190410)</h4>
<pre class="diff"><span>
<span class="info">--- 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)
</span><span class="lines">@@ -0,0 +1,46 @@
</span><ins>+<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="../resources/delete-ping.php" onload="test();" onerror="test();"></img>
+<a id="a" href="../resources/check-ping.php" ping="../resources/save-Ping.php">Navigate and send ping</a>
+</body></html>
</ins></span></pre></div>
<a id="trunkLayoutTestshttptestsnavigationpingattributeanchorcrossoriginexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/http/tests/navigation/ping-attribute/anchor-cross-origin-expected.txt (0 => 190410)</h4>
<pre class="diff"><span>
<span class="info">--- 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)
</span><span class="lines">@@ -0,0 +1,6 @@
</span><ins>+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
</ins></span></pre></div>
<a id="trunkLayoutTestshttptestsnavigationpingattributeanchorcrossoriginfromhttpsexpectedtxtfromrev190409trunkLayoutTestshttptestsnavigationpingcrossoriginfromhttpsexpectedtxt"></a>
<div class="copfile"><h4>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)</h4>
<pre class="diff"><span>
<span class="info">--- 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)
</span><span class="lines">@@ -0,0 +1,4 @@
</span><ins>+Ping sent successfully
+CONTENT_TYPE: text/ping
+HTTP_PING_TO: https://127.0.0.1:8443/navigation/resources/check-ping.php
+REQUEST_METHOD: POST
</ins></span></pre></div>
<a id="trunkLayoutTestshttptestsnavigationpingattributeanchorcrossoriginfromhttpshtmlfromrev190409trunkLayoutTestshttptestsnavigationpingcrossoriginfromhttpshtml"></a>
<div class="copfile"><h4>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)</h4>
<pre class="diff"><span>
<span class="info">--- 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)
</span><span class="lines">@@ -0,0 +1,41 @@
</span><ins>+<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="../resources/delete-ping.php" onload="test();" onerror="test();"></img>
+<a id="a" href="../resources/check-ping.php" 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>
</ins></span></pre></div>
<a id="trunkLayoutTestshttptestsnavigationpingattributeanchorcrossoriginhtmlfromrev190409trunkLayoutTestshttptestsnavigationpingcrossoriginhtml"></a>
<div class="copfile"><h4>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)</h4>
<pre class="diff"><span>
<span class="info">--- 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)
</span><span class="lines">@@ -0,0 +1,31 @@
</span><ins>+<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="../resources/delete-ping.php" onload="test();" onerror="test();"></img>
+<a id="a" href="../resources/check-ping.php" ping="http://localhost:8000/navigation/resources/save-Ping.php">Navigate and send ping</a>
+</body></html>
</ins></span></pre></div>
<a id="trunkLayoutTestshttptestsnavigationpingattributeanchorsameoriginexpectedtxtfromrev190409trunkLayoutTestshttptestsnavigationpingsameoriginexpectedtxt"></a>
<div class="copfile"><h4>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)</h4>
<pre class="diff"><span>
<span class="info">--- 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)
</span><span class="lines">@@ -0,0 +1,5 @@
</span><ins>+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
</ins></span></pre></div>
<a id="trunkLayoutTestshttptestsnavigationpingattributeanchorsameoriginhtmlfromrev190409trunkLayoutTestshttptestsnavigationpingsameoriginhtml"></a>
<div class="copfile"><h4>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)</h4>
<pre class="diff"><span>
<span class="info">--- 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)
</span><span class="lines">@@ -0,0 +1,31 @@
</span><ins>+<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="../resources/delete-ping.php" onload="test();" onerror="test();"></img>
+<a id="a" href="../resources/check-ping.php" ping="../resources/save-Ping.php">Navigate and send ping</a>
+</body></html>
</ins></span></pre></div>
<a id="trunkLayoutTestshttptestsnavigationpingattributeresourcescheckpingphp"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/http/tests/navigation/ping-attribute/resources/check-ping.php (0 => 190410)</h4>
<pre class="diff"><span>
<span class="info">--- 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)
</span><span class="lines">@@ -0,0 +1,24 @@
</span><ins>+<?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>";
+?>
</ins></span></pre></div>
<a id="trunkLayoutTestshttptestsnavigationpingattributeresourcesdeletepingphp"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/http/tests/navigation/ping-attribute/resources/delete-ping.php (0 => 190410)</h4>
<pre class="diff"><span>
<span class="info">--- 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)
</span><span class="lines">@@ -0,0 +1,5 @@
</span><ins>+<?php
+require_once 'ping-file-path.php';
+
+unlink($pingFilePath);
+?>
</ins></span></pre></div>
<a id="trunkLayoutTestshttptestsnavigationpingattributeresourcespingfilepathphp"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/http/tests/navigation/ping-attribute/resources/ping-file-path.php (0 => 190410)</h4>
<pre class="diff"><span>
<span class="info">--- 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)
</span><span class="lines">@@ -0,0 +1,16 @@
</span><ins>+<?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();
+}
+
+?>
</ins></span></pre></div>
<a id="trunkLayoutTestshttptestsnavigationpingattributeresourcessavePingphp"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/http/tests/navigation/ping-attribute/resources/save-Ping.php (0 => 190410)</h4>
<pre class="diff"><span>
<span class="info">--- 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)
</span><span class="lines">@@ -0,0 +1,15 @@
</span><ins>+<?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, "/");
+?>
</ins></span></pre></div>
<a id="trunkLayoutTestshttptestsnavigationpingcookieexpectedtxt"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/http/tests/navigation/ping-cookie-expected.txt (190409 => 190410)</h4>
<pre class="diff"><span>
<span class="info">--- 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)
</span><span class="lines">@@ -1,6 +0,0 @@
</span><del>-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
</del></span></pre></div>
<a id="trunkLayoutTestshttptestsnavigationpingcookiehtml"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/http/tests/navigation/ping-cookie.html (190409 => 190410)</h4>
<pre class="diff"><span>
<span class="info">--- 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)
</span><span class="lines">@@ -1,46 +0,0 @@
</span><del>-<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="resources/delete-ping.php" onload="test();" onerror="test();"></img>
-<a id="a" href="resources/check-ping.php" ping="resources/save-Ping.php">Navigate and send ping</a>
-</body></html>
</del></span></pre></div>
<a id="trunkLayoutTestshttptestsnavigationpingcrossoriginexpectedtxt"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/http/tests/navigation/ping-cross-origin-expected.txt (190409 => 190410)</h4>
<pre class="diff"><span>
<span class="info">--- 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)
</span><span class="lines">@@ -1,6 +0,0 @@
</span><del>-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
</del></span></pre></div>
<a id="trunkLayoutTestshttptestsnavigationpingcrossoriginfromhttpsexpectedtxt"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/http/tests/navigation/ping-cross-origin-from-https-expected.txt (190409 => 190410)</h4>
<pre class="diff"><span>
<span class="info">--- 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)
</span><span class="lines">@@ -1,4 +0,0 @@
</span><del>-Ping sent successfully
-CONTENT_TYPE: text/ping
-HTTP_PING_TO: https://127.0.0.1:8443/navigation/resources/check-ping.php
-REQUEST_METHOD: POST
</del></span></pre></div>
<a id="trunkLayoutTestshttptestsnavigationpingcrossoriginfromhttpshtml"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/http/tests/navigation/ping-cross-origin-from-https.html (190409 => 190410)</h4>
<pre class="diff"><span>
<span class="info">--- 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)
</span><span class="lines">@@ -1,41 +0,0 @@
</span><del>-<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="resources/delete-ping.php" onload="test();" onerror="test();"></img>
-<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>
-</body></html>
</del></span></pre></div>
<a id="trunkLayoutTestshttptestsnavigationpingcrossoriginhtml"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/http/tests/navigation/ping-cross-origin.html (190409 => 190410)</h4>
<pre class="diff"><span>
<span class="info">--- 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)
</span><span class="lines">@@ -1,31 +0,0 @@
</span><del>-<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="resources/delete-ping.php" onload="test();" onerror="test();"></img>
-<a id="a" href="resources/check-ping.php" ping="http://localhost:8000/navigation/resources/save-Ping.php">Navigate and send ping</a>
-</body></html>
</del></span></pre></div>
<a id="trunkLayoutTestshttptestsnavigationpingsameoriginexpectedtxt"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/http/tests/navigation/ping-same-origin-expected.txt (190409 => 190410)</h4>
<pre class="diff"><span>
<span class="info">--- 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)
</span><span class="lines">@@ -1,5 +0,0 @@
</span><del>-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
</del></span></pre></div>
<a id="trunkLayoutTestshttptestsnavigationpingsameoriginhtml"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/http/tests/navigation/ping-same-origin.html (190409 => 190410)</h4>
<pre class="diff"><span>
<span class="info">--- 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)
</span><span class="lines">@@ -1,31 +0,0 @@
</span><del>-<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="resources/delete-ping.php" onload="test();" onerror="test();"></img>
-<a id="a" href="resources/check-ping.php" ping="resources/save-Ping.php">Navigate and send ping</a>
-</body></html>
</del></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatorwk2TestExpectations"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/ios-simulator-wk2/TestExpectations (190409 => 190410)</h4>
<pre class="diff"><span>
<span class="info">--- 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)
</span><span class="lines">@@ -560,9 +560,9 @@
</span><span class="cx"> http/tests/navigation/no-referrer-same-window.html
</span><span class="cx"> http/tests/navigation/no-referrer-subframe.html
</span><span class="cx"> http/tests/navigation/no-referrer-target-blank.html
</span><del>-http/tests/navigation/ping-cross-origin-from-https.html
-http/tests/navigation/ping-cross-origin.html
-http/tests/navigation/ping-same-origin.html
</del><ins>+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
</ins><span class="cx"> http/tests/navigation/redirect-preserves-referrer.html
</span><span class="cx"> http/tests/navigation/redirect-to-random-url-versus-memory-cache.html
</span><span class="cx"> http/tests/security/aboutBlank/xss-DENIED-navigate-opener-document-write.html
</span><span class="lines">@@ -2061,7 +2061,7 @@
</span><span class="cx"> # Skip timeouts
</span><span class="cx"> fast/dom/Geolocation/startUpdatingOnlyWhenPageVisible.html [ Skip ]
</span><span class="cx"> fast/dom/Geolocation/stopUpdatingForHiddenPage.html [ Skip ]
</span><del>-http/tests/navigation/ping-cookie.html [ Skip ]
</del><ins>+http/tests/navigation/ping-attribute/anchor-cookie.html [ Skip ]
</ins><span class="cx"> webkit.org/b/148709 fast/events/wheelevent-basic.html [ Skip ]
</span><span class="cx"> webkit.org/b/148709 fast/events/wheelevent-mousewheel-interaction.html [ Skip ]
</span><span class="cx">
</span></span></pre></div>
<a id="trunkLayoutTestsplatformwinTestExpectations"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/win/TestExpectations (190409 => 190410)</h4>
<pre class="diff"><span>
<span class="info">--- 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)
</span><span class="lines">@@ -2271,7 +2271,7 @@
</span><span class="cx"> http/tests/media/clearkey/clear-key-hls-aes128.html        [ Skip ] # Timeout
</span><span class="cx">
</span><span class="cx"> # SSL Configuration on Windows <rdar://problem/5345985>
</span><del>-http/tests/navigation/ping-cross-origin-from-https.html [ Skip ] # Timeout
</del><ins>+http/tests/navigation/ping-attribute/anchor-cross-origin-from-https.html [ Skip ] # Timeout
</ins><span class="cx"> http/tests/security/cross-frame-access-protocol.html [ Skip ] # Timeout
</span><span class="cx">
</span><span class="cx"> #<rdar://problem/5224271> Some LayoutTests fail when not run by themselves.
</span><span class="lines">@@ -3243,6 +3243,6 @@
</span><span class="cx"> # TestRunner::cellForColumnAndRow() not implemented
</span><span class="cx"> webkit.org/b/148354 accessibility/aria-table-content.html [ Skip ]
</span><span class="cx">
</span><del>-webkit.org/b/148886 http/tests/navigation/ping-same-origin.html [ Pass Failure ]
</del><ins>+webkit.org/b/148886 http/tests/navigation/ping-attribute/anchor-same-origin.html [ Pass Failure ]
</ins><span class="cx"> webkit.org/b/148887 http/tests/navigation/success200-reload.html [ Pass Failure ]
</span><span class="cx"> webkit.org/b/148888 http/tests/navigation/slowmetaredirect-basic.html [ Pass Failure ]
</span></span></pre>
</div>
</div>
</body>
</html>