<!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>[224581] 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/224581">224581</a></dd>
<dt>Author</dt> <dd>Ms2ger@igalia.com</dd>
<dt>Date</dt> <dd>2017-11-08 08:00:18 -0800 (Wed, 08 Nov 2017)</dd>
</dl>

<h3>Log Message</h3>
<pre>Update XMLHttpRequest tests.
https://bugs.webkit.org/show_bug.cgi?id=179421

Reviewed by Sam Weinig.

LayoutTests/imported/w3c:

* resources/import-expectations.json: enabled some more tests
* web-platform-tests/XMLHttpRequest/abort-during-done.htm:
* web-platform-tests/XMLHttpRequest/abort-during-headers-received.htm:
* web-platform-tests/XMLHttpRequest/abort-during-loading.htm:
* web-platform-tests/XMLHttpRequest/open-after-abort.htm:
* web-platform-tests/XMLHttpRequest/open-url-multi-window-2-expected.txt:
* web-platform-tests/XMLHttpRequest/open-url-multi-window-2.htm:
* web-platform-tests/XMLHttpRequest/open-url-multi-window-3-expected.txt:
* web-platform-tests/XMLHttpRequest/open-url-multi-window-3.htm:
* web-platform-tests/XMLHttpRequest/open-url-multi-window-4.htm:
* web-platform-tests/XMLHttpRequest/open-url-multi-window-6.htm:
* web-platform-tests/XMLHttpRequest/open-url-redirected-worker-origin-expected.txt:
* web-platform-tests/XMLHttpRequest/open-url-redirected-worker-origin.htm:
* web-platform-tests/XMLHttpRequest/open-url-worker-origin-expected.txt: Added.
* web-platform-tests/XMLHttpRequest/open-url-worker-origin.htm: Added.
* web-platform-tests/XMLHttpRequest/overridemimetype-open-state-force-xml.htm:
* web-platform-tests/XMLHttpRequest/resources/workerxhr-origin-referrer.js:
* web-platform-tests/XMLHttpRequest/resources/workerxhr-simple.js:
* web-platform-tests/XMLHttpRequest/resources/xmlhttprequest-timeout-simple.js:
* web-platform-tests/XMLHttpRequest/resources/xmlhttprequest-timeout-synconmain.js:
* web-platform-tests/XMLHttpRequest/resources/xmlhttprequest-timeout-synconworker.js:
* web-platform-tests/XMLHttpRequest/resources/xmlhttprequest-timeout-twice.js:
* web-platform-tests/XMLHttpRequest/resources/xmlhttprequest-timeout.js:
* web-platform-tests/XMLHttpRequest/responsedocument-decoding.htm:
* web-platform-tests/XMLHttpRequest/send-authentication-basic-cors-expected.txt: Added.
* web-platform-tests/XMLHttpRequest/send-authentication-basic-cors.htm: Added.
* web-platform-tests/XMLHttpRequest/send-authentication-basic-repeat-no-args-expected.txt: Added.
* web-platform-tests/XMLHttpRequest/send-authentication-basic-repeat-no-args.htm: Added.
* web-platform-tests/XMLHttpRequest/send-authentication-basic-setrequestheader.htm: Added.
* web-platform-tests/XMLHttpRequest/send-authentication-basic.htm: Added.
* web-platform-tests/XMLHttpRequest/send-authentication-competing-names-passwords-expected.txt: Added.
* web-platform-tests/XMLHttpRequest/send-authentication-competing-names-passwords.htm: Added.
* web-platform-tests/XMLHttpRequest/send-entity-body-basic-expected.txt: Added.
* web-platform-tests/XMLHttpRequest/send-entity-body-basic.htm: Added.
* web-platform-tests/XMLHttpRequest/send-entity-body-document-expected.txt:
* web-platform-tests/XMLHttpRequest/send-entity-body-document.htm:
* web-platform-tests/XMLHttpRequest/send-entity-body-get-head-async.htm:
* web-platform-tests/XMLHttpRequest/send-entity-body-get-head.htm:
* web-platform-tests/XMLHttpRequest/send-network-error-async-events.sub-expected.txt: Added.
* web-platform-tests/XMLHttpRequest/send-network-error-async-events.sub.htm: Added.
* web-platform-tests/XMLHttpRequest/send-redirect-infinite.htm:
* web-platform-tests/XMLHttpRequest/send-redirect-no-location.htm:
* web-platform-tests/XMLHttpRequest/send-redirect-post-upload.htm:
* web-platform-tests/XMLHttpRequest/setrequestheader-after-send.htm:
* web-platform-tests/XMLHttpRequest/setrequestheader-before-open.htm:
* web-platform-tests/XMLHttpRequest/w3c-import.log:
* web-platform-tests/XMLHttpRequest/xmlhttprequest-timeout-reused.html:
* web-platform-tests/XMLHttpRequest/xmlhttprequest-unsent.htm:

LayoutTests:

* TestExpectations: removed flaky expectation: the test was fixed upstream.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsChangeLog">trunk/LayoutTests/ChangeLog</a></li>
<li><a href="#trunkLayoutTestsTestExpectations">trunk/LayoutTests/TestExpectations</a></li>
<li><a href="#trunkLayoutTestsimportedw3cChangeLog">trunk/LayoutTests/imported/w3c/ChangeLog</a></li>
<li><a href="#trunkLayoutTestsimportedw3cresourcesimportexpectationsjson">trunk/LayoutTests/imported/w3c/resources/import-expectations.json</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestabortduringdonehtm">trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/abort-during-done.htm</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestabortduringheadersreceivedhtm">trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/abort-during-headers-received.htm</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestabortduringloadinghtm">trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/abort-during-loading.htm</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestopenafteraborthtm">trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/open-after-abort.htm</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestopenurlmultiwindow2expectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/open-url-multi-window-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestopenurlmultiwindow2htm">trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/open-url-multi-window-2.htm</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestopenurlmultiwindow3expectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/open-url-multi-window-3-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestopenurlmultiwindow3htm">trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/open-url-multi-window-3.htm</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestopenurlmultiwindow4htm">trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/open-url-multi-window-4.htm</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestopenurlmultiwindow6htm">trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/open-url-multi-window-6.htm</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestopenurlredirectedworkeroriginexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/open-url-redirected-worker-origin-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestopenurlredirectedworkeroriginhtm">trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/open-url-redirected-worker-origin.htm</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestoverridemimetypeopenstateforcexmlhtm">trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/overridemimetype-open-state-force-xml.htm</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestresourcesworkerxhroriginreferrerjs">trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/resources/workerxhr-origin-referrer.js</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestresourcesworkerxhrsimplejs">trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/resources/workerxhr-simple.js</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestresourcesxmlhttprequesttimeoutsimplejs">trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/resources/xmlhttprequest-timeout-simple.js</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestresourcesxmlhttprequesttimeoutsynconmainjs">trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/resources/xmlhttprequest-timeout-synconmain.js</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestresourcesxmlhttprequesttimeoutsynconworkerjs">trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/resources/xmlhttprequest-timeout-synconworker.js</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestresourcesxmlhttprequesttimeouttwicejs">trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/resources/xmlhttprequest-timeout-twice.js</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestresourcesxmlhttprequesttimeoutjs">trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/resources/xmlhttprequest-timeout.js</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestresponsedocumentdecodinghtm">trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/responsedocument-decoding.htm</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestsendentitybodydocumentexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-entity-body-document-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestsendentitybodydocumenthtm">trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-entity-body-document.htm</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestsendentitybodygetheadasynchtm">trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-entity-body-get-head-async.htm</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestsendentitybodygetheadhtm">trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-entity-body-get-head.htm</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestsendredirectinfinitehtm">trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-redirect-infinite.htm</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestsendredirectnolocationhtm">trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-redirect-no-location.htm</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestsendredirectpostuploadhtm">trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-redirect-post-upload.htm</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestsetrequestheaderaftersendhtm">trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/setrequestheader-after-send.htm</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestsetrequestheaderbeforeopenhtm">trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/setrequestheader-before-open.htm</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestw3cimportlog">trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/w3c-import.log</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestxmlhttprequesttimeoutreusedhtml">trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/xmlhttprequest-timeout-reused.html</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestxmlhttprequestunsenthtm">trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/xmlhttprequest-unsent.htm</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestopenurlworkeroriginexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/open-url-worker-origin-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestopenurlworkeroriginhtm">trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/open-url-worker-origin.htm</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestsendauthenticationbasiccorsexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-authentication-basic-cors-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestsendauthenticationbasiccorshtm">trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-authentication-basic-cors.htm</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestsendauthenticationbasicrepeatnoargsexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-authentication-basic-repeat-no-args-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestsendauthenticationbasicrepeatnoargshtm">trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-authentication-basic-repeat-no-args.htm</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestsendauthenticationbasicsetrequestheaderhtm">trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-authentication-basic-setrequestheader.htm</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestsendauthenticationbasichtm">trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-authentication-basic.htm</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestsendauthenticationcompetingnamespasswordsexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-authentication-competing-names-passwords-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestsendauthenticationcompetingnamespasswordshtm">trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-authentication-competing-names-passwords.htm</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestsendentitybodybasicexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-entity-body-basic-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestsendentitybodybasichtm">trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-entity-body-basic.htm</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestsendnetworkerrorasynceventssubexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-network-error-async-events.sub-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestsendnetworkerrorasynceventssubhtm">trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-network-error-async-events.sub.htm</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/ChangeLog (224580 => 224581)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/ChangeLog      2017-11-08 15:53:41 UTC (rev 224580)
+++ trunk/LayoutTests/ChangeLog 2017-11-08 16:00:18 UTC (rev 224581)
</span><span class="lines">@@ -1,3 +1,12 @@
</span><ins>+2017-11-08  Ms2ger  <Ms2ger@igalia.com>
+
+        Update XMLHttpRequest tests.
+        https://bugs.webkit.org/show_bug.cgi?id=179421
+
+        Reviewed by Sam Weinig.
+
+        * TestExpectations: removed flaky expectation: the test was fixed upstream.
+
</ins><span class="cx"> 2017-11-07  Ryan Haddad  <ryanhaddad@apple.com>
</span><span class="cx"> 
</span><span class="cx">         Update TestExpectations for slow  WPT encoding LayoutTests.
</span></span></pre></div>
<a id="trunkLayoutTestsTestExpectations"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/TestExpectations (224580 => 224581)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/TestExpectations       2017-11-08 15:53:41 UTC (rev 224580)
+++ trunk/LayoutTests/TestExpectations  2017-11-08 16:00:18 UTC (rev 224581)
</span><span class="lines">@@ -1381,7 +1381,6 @@
</span><span class="cx"> webkit.org/b/168175 imported/w3c/web-platform-tests/html/browsers/offline/browser-state/navigator_online_online.html [ Pass Failure ]
</span><span class="cx"> webkit.org/b/169264 imported/w3c/web-platform-tests/html/browsers/browsing-the-web/history-traversal/persisted-user-state-restoration/scroll-restoration-navigation-samedoc.html [ Failure ]
</span><span class="cx"> 
</span><del>-imported/w3c/web-platform-tests/XMLHttpRequest/open-url-redirected-worker-origin.htm [ Failure Pass  ]
</del><span class="cx"> imported/w3c/web-platform-tests/cssom/MediaList.html [ Failure ]
</span><span class="cx"> imported/w3c/web-platform-tests/html/semantics/embedded-content/the-img-element/document-adopt-base-url.html [ ImageOnlyFailure ]
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/ChangeLog (224580 => 224581)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/ChangeLog 2017-11-08 15:53:41 UTC (rev 224580)
+++ trunk/LayoutTests/imported/w3c/ChangeLog    2017-11-08 16:00:18 UTC (rev 224581)
</span><span class="lines">@@ -1,3 +1,59 @@
</span><ins>+2017-11-08  Ms2ger  <Ms2ger@igalia.com>
+
+        Update XMLHttpRequest tests.
+        https://bugs.webkit.org/show_bug.cgi?id=179421
+
+        Reviewed by Sam Weinig.
+
+        * resources/import-expectations.json: enabled some more tests
+        * web-platform-tests/XMLHttpRequest/abort-during-done.htm:
+        * web-platform-tests/XMLHttpRequest/abort-during-headers-received.htm:
+        * web-platform-tests/XMLHttpRequest/abort-during-loading.htm:
+        * web-platform-tests/XMLHttpRequest/open-after-abort.htm:
+        * web-platform-tests/XMLHttpRequest/open-url-multi-window-2-expected.txt:
+        * web-platform-tests/XMLHttpRequest/open-url-multi-window-2.htm:
+        * web-platform-tests/XMLHttpRequest/open-url-multi-window-3-expected.txt:
+        * web-platform-tests/XMLHttpRequest/open-url-multi-window-3.htm:
+        * web-platform-tests/XMLHttpRequest/open-url-multi-window-4.htm:
+        * web-platform-tests/XMLHttpRequest/open-url-multi-window-6.htm:
+        * web-platform-tests/XMLHttpRequest/open-url-redirected-worker-origin-expected.txt:
+        * web-platform-tests/XMLHttpRequest/open-url-redirected-worker-origin.htm:
+        * web-platform-tests/XMLHttpRequest/open-url-worker-origin-expected.txt: Added.
+        * web-platform-tests/XMLHttpRequest/open-url-worker-origin.htm: Added.
+        * web-platform-tests/XMLHttpRequest/overridemimetype-open-state-force-xml.htm:
+        * web-platform-tests/XMLHttpRequest/resources/workerxhr-origin-referrer.js:
+        * web-platform-tests/XMLHttpRequest/resources/workerxhr-simple.js:
+        * web-platform-tests/XMLHttpRequest/resources/xmlhttprequest-timeout-simple.js:
+        * web-platform-tests/XMLHttpRequest/resources/xmlhttprequest-timeout-synconmain.js:
+        * web-platform-tests/XMLHttpRequest/resources/xmlhttprequest-timeout-synconworker.js:
+        * web-platform-tests/XMLHttpRequest/resources/xmlhttprequest-timeout-twice.js:
+        * web-platform-tests/XMLHttpRequest/resources/xmlhttprequest-timeout.js:
+        * web-platform-tests/XMLHttpRequest/responsedocument-decoding.htm:
+        * web-platform-tests/XMLHttpRequest/send-authentication-basic-cors-expected.txt: Added.
+        * web-platform-tests/XMLHttpRequest/send-authentication-basic-cors.htm: Added.
+        * web-platform-tests/XMLHttpRequest/send-authentication-basic-repeat-no-args-expected.txt: Added.
+        * web-platform-tests/XMLHttpRequest/send-authentication-basic-repeat-no-args.htm: Added.
+        * web-platform-tests/XMLHttpRequest/send-authentication-basic-setrequestheader.htm: Added.
+        * web-platform-tests/XMLHttpRequest/send-authentication-basic.htm: Added.
+        * web-platform-tests/XMLHttpRequest/send-authentication-competing-names-passwords-expected.txt: Added.
+        * web-platform-tests/XMLHttpRequest/send-authentication-competing-names-passwords.htm: Added.
+        * web-platform-tests/XMLHttpRequest/send-entity-body-basic-expected.txt: Added.
+        * web-platform-tests/XMLHttpRequest/send-entity-body-basic.htm: Added.
+        * web-platform-tests/XMLHttpRequest/send-entity-body-document-expected.txt:
+        * web-platform-tests/XMLHttpRequest/send-entity-body-document.htm:
+        * web-platform-tests/XMLHttpRequest/send-entity-body-get-head-async.htm:
+        * web-platform-tests/XMLHttpRequest/send-entity-body-get-head.htm:
+        * web-platform-tests/XMLHttpRequest/send-network-error-async-events.sub-expected.txt: Added.
+        * web-platform-tests/XMLHttpRequest/send-network-error-async-events.sub.htm: Added.
+        * web-platform-tests/XMLHttpRequest/send-redirect-infinite.htm:
+        * web-platform-tests/XMLHttpRequest/send-redirect-no-location.htm:
+        * web-platform-tests/XMLHttpRequest/send-redirect-post-upload.htm:
+        * web-platform-tests/XMLHttpRequest/setrequestheader-after-send.htm:
+        * web-platform-tests/XMLHttpRequest/setrequestheader-before-open.htm:
+        * web-platform-tests/XMLHttpRequest/w3c-import.log:
+        * web-platform-tests/XMLHttpRequest/xmlhttprequest-timeout-reused.html:
+        * web-platform-tests/XMLHttpRequest/xmlhttprequest-unsent.htm:
+
</ins><span class="cx"> 2017-11-07  Brady Eidson  <beidson@apple.com>
</span><span class="cx"> 
</span><span class="cx">         Implement "UpdateWorkerState" and use it
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cresourcesimportexpectationsjson"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/resources/import-expectations.json (224580 => 224581)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/resources/import-expectations.json        2017-11-08 15:53:41 UTC (rev 224580)
+++ trunk/LayoutTests/imported/w3c/resources/import-expectations.json   2017-11-08 16:00:18 UTC (rev 224581)
</span><span class="lines">@@ -15,21 +15,11 @@
</span><span class="cx">     "web-platform-tests/XMLHttpRequest": "import", 
</span><span class="cx">     "web-platform-tests/XMLHttpRequest/abort-after-stop.htm": "skip", 
</span><span class="cx">     "web-platform-tests/XMLHttpRequest/event-error-order.sub.html": "skip", 
</span><del>-    "web-platform-tests/XMLHttpRequest/event-error.html": "skip", 
</del><span class="cx">     "web-platform-tests/XMLHttpRequest/event-timeout-order.htm": "skip", 
</span><del>-    "web-platform-tests/XMLHttpRequest/event-upload-progress-crossorigin.sub.htm": "skip", 
-    "web-platform-tests/XMLHttpRequest/open-url-worker-origin.htm": "skip", 
</del><span class="cx">     "web-platform-tests/XMLHttpRequest/preserve-ua-header-on-redirect.htm": "skip", 
</span><span class="cx">     "web-platform-tests/XMLHttpRequest/send-after-setting-document-domain.htm": "skip", 
</span><span class="cx">     "web-platform-tests/XMLHttpRequest/send-authentication-basic-cors-not-enabled.htm": "skip", 
</span><del>-    "web-platform-tests/XMLHttpRequest/send-authentication-basic-cors.htm": "skip", 
-    "web-platform-tests/XMLHttpRequest/send-authentication-basic-repeat-no-args.htm": "skip", 
</del><span class="cx">     "web-platform-tests/XMLHttpRequest/send-authentication-basic-setrequestheader-existing-session.htm": "skip", 
</span><del>-    "web-platform-tests/XMLHttpRequest/send-authentication-basic-setrequestheader.htm": "skip", 
-    "web-platform-tests/XMLHttpRequest/send-authentication-basic.htm": "skip", 
-    "web-platform-tests/XMLHttpRequest/send-authentication-competing-names-passwords.htm": "skip", 
-    "web-platform-tests/XMLHttpRequest/send-entity-body-basic.htm": "skip", 
-    "web-platform-tests/XMLHttpRequest/send-network-error-async-events.sub.htm": "skip", 
</del><span class="cx">     "web-platform-tests/accelerometer": "skip", 
</span><span class="cx">     "web-platform-tests/ambient-light": "skip", 
</span><span class="cx">     "web-platform-tests/animation-timing": "skip", 
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestabortduringdonehtm"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/abort-during-done.htm (224580 => 224581)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/abort-during-done.htm   2017-11-08 15:53:41 UTC (rev 224580)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/abort-during-done.htm      2017-11-08 16:00:18 UTC (rev 224581)
</span><span class="lines">@@ -76,7 +76,7 @@
</span><span class="cx">             assert_equals(client.statusText, "")
</span><span class="cx">             assert_equals(client.responseXML, null)
</span><span class="cx">             assert_equals(client.getAllResponseHeaders(), "")
</span><del>-            setTimeout(function() {
</del><ins>+            test.step_timeout(function() {
</ins><span class="cx">               assert_array_equals(result, expected)
</span><span class="cx">               test.done();
</span><span class="cx">             }, 100); // wait a bit in case XHR timeout causes spurious event
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestabortduringheadersreceivedhtm"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/abort-during-headers-received.htm (224580 => 224581)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/abort-during-headers-received.htm       2017-11-08 15:53:41 UTC (rev 224580)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/abort-during-headers-received.htm  2017-11-08 16:00:18 UTC (rev 224581)
</span><span class="lines">@@ -40,7 +40,7 @@
</span><span class="cx">           assert_equals(client.statusText, "")
</span><span class="cx">           assert_equals(client.responseXML, null)
</span><span class="cx">           assert_equals(client.getAllResponseHeaders(), "")
</span><del>-          setTimeout(function() {
</del><ins>+          test.step_timeout(function() {
</ins><span class="cx">             assert_array_equals(result, expected)
</span><span class="cx">             test.done();
</span><span class="cx">           }, 100); // wait a bit in case XHR timeout causes spurious event
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestabortduringloadinghtm"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/abort-during-loading.htm (224580 => 224581)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/abort-during-loading.htm        2017-11-08 15:53:41 UTC (rev 224580)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/abort-during-loading.htm   2017-11-08 16:00:18 UTC (rev 224581)
</span><span class="lines">@@ -40,7 +40,7 @@
</span><span class="cx">           assert_equals(client.statusText, "")
</span><span class="cx">           assert_equals(client.responseXML, null)
</span><span class="cx">           assert_equals(client.getAllResponseHeaders(), "")
</span><del>-          setTimeout(function() {
</del><ins>+          test.step_timeout(function() {
</ins><span class="cx">             assert_array_equals(result, expected)
</span><span class="cx">             test.done();
</span><span class="cx">           }, 100); // wait a bit in case XHR timeout causes spurious event
</span><span class="lines">@@ -51,4 +51,3 @@
</span><span class="cx">     </script>
</span><span class="cx">   </body>
</span><span class="cx"> </html>
</span><del>-
</del></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestopenafteraborthtm"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/open-after-abort.htm (224580 => 224581)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/open-after-abort.htm    2017-11-08 15:53:41 UTC (rev 224580)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/open-after-abort.htm       2017-11-08 16:00:18 UTC (rev 224581)
</span><span class="lines">@@ -13,7 +13,7 @@
</span><span class="cx">       test.step(function() {
</span><span class="cx">         var client = new XMLHttpRequest(),
</span><span class="cx">             result = [],
</span><del>-            expected = [1,  4, 1] // open() -> 1, 
</del><ins>+            expected = [1,  4, 1] // open() -> 1,
</ins><span class="cx">                                     // abort() -> 4, open() -> 1
</span><span class="cx">         client.onreadystatechange = function() {
</span><span class="cx">           test.step(function() {
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestopenurlmultiwindow2expectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/open-url-multi-window-2-expected.txt (224580 => 224581)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/open-url-multi-window-2-expected.txt    2017-11-08 15:53:41 UTC (rev 224580)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/open-url-multi-window-2-expected.txt       2017-11-08 16:00:18 UTC (rev 224581)
</span><span class="lines">@@ -1,5 +1,5 @@
</span><span class="cx"> 
</span><del>-FAIL XMLHttpRequest: open() resolving URLs (multi-Window; 2; evil) assert_throws: open() when associated document's IFRAME is removed function "function () { 
-            client.open("GET", "folder.txt") 
</del><ins>+FAIL XMLHttpRequest: open() resolving URLs (multi-Window; 2; evil) assert_throws: open() when associated document's IFRAME is removed function "function () {
+            client.open("GET", "folder.txt")
</ins><span class="cx">           }" did not throw
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestopenurlmultiwindow2htm"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/open-url-multi-window-2.htm (224580 => 224581)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/open-url-multi-window-2.htm     2017-11-08 15:53:41 UTC (rev 224580)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/open-url-multi-window-2.htm        2017-11-08 16:00:18 UTC (rev 224581)
</span><span class="lines">@@ -13,8 +13,8 @@
</span><span class="cx">         test(function() {
</span><span class="cx">           var client = new self[0].XMLHttpRequest()
</span><span class="cx">           document.body.removeChild(document.getElementsByTagName("iframe")[0])
</span><del>-          assert_throws("InvalidStateError", function() { 
-            client.open("GET", "folder.txt") 
</del><ins>+          assert_throws("InvalidStateError", function() {
+            client.open("GET", "folder.txt")
</ins><span class="cx">           }, "open() when associated document's IFRAME is removed")
</span><span class="cx">           })
</span><span class="cx">       }
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestopenurlmultiwindow3expectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/open-url-multi-window-3-expected.txt (224580 => 224581)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/open-url-multi-window-3-expected.txt    2017-11-08 15:53:41 UTC (rev 224580)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/open-url-multi-window-3-expected.txt       2017-11-08 16:00:18 UTC (rev 224581)
</span><span class="lines">@@ -1,5 +1,5 @@
</span><span class="cx"> 
</span><del>-FAIL XMLHttpRequest: open() resolving URLs (multi-Window; 3; evil) assert_throws: send() when associated document's IFRAME is removed function "function () { 
</del><ins>+FAIL XMLHttpRequest: open() resolving URLs (multi-Window; 3; evil) assert_throws: send() when associated document's IFRAME is removed function "function () {
</ins><span class="cx">             client.send(null)
</span><span class="cx">           }" did not throw
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestopenurlmultiwindow3htm"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/open-url-multi-window-3.htm (224580 => 224581)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/open-url-multi-window-3.htm     2017-11-08 15:53:41 UTC (rev 224580)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/open-url-multi-window-3.htm        2017-11-08 16:00:18 UTC (rev 224581)
</span><span class="lines">@@ -13,7 +13,7 @@
</span><span class="cx">           var client = new self[0].XMLHttpRequest()
</span><span class="cx">           client.open("GET", "folder.txt")
</span><span class="cx">           document.body.removeChild(document.getElementsByTagName("iframe")[0])
</span><del>-          assert_throws("InvalidStateError", function() { 
</del><ins>+          assert_throws("InvalidStateError", function() {
</ins><span class="cx">             client.send(null)
</span><span class="cx">           }, "send() when associated document's IFRAME is removed")
</span><span class="cx">         })
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestopenurlmultiwindow4htm"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/open-url-multi-window-4.htm (224580 => 224581)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/open-url-multi-window-4.htm     2017-11-08 15:53:41 UTC (rev 224580)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/open-url-multi-window-4.htm        2017-11-08 16:00:18 UTC (rev 224581)
</span><span class="lines">@@ -11,7 +11,7 @@
</span><span class="cx">     /*
</span><span class="cx">     It's unclear what the pass condition should be for this test.
</span><span class="cx">     Implementations:
</span><del>-    Firefox, Opera (Presto): terminate request with no further events when IFRAME is removed. 
</del><ins>+    Firefox, Opera (Presto): terminate request with no further events when IFRAME is removed.
</ins><span class="cx">     Chrome: completes request to readyState=4 but responseText is "" so it's pretty much terminated with an extra event for "DONE" state
</span><span class="cx">     Pass condition is now according to my suggested spec text in https://github.com/whatwg/xhr/pull/3 , if that's not accepted we'll have to amend this test
</span><span class="cx">     */
</span><span class="lines">@@ -20,7 +20,7 @@
</span><span class="cx">         test.step(function() {
</span><span class="cx">           var hasErrorEvent = false
</span><span class="cx">           var client = new self[0].XMLHttpRequest()
</span><del>-          client.onreadystatechange = function() { 
</del><ins>+          client.onreadystatechange = function() {
</ins><span class="cx">             test.step(function() {
</span><span class="cx">               if(client.readyState == 4) {
</span><span class="cx">                 assert_equals(client.responseText, "", "responseText is empty on inactive document error condition")
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestopenurlmultiwindow6htm"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/open-url-multi-window-6.htm (224580 => 224581)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/open-url-multi-window-6.htm     2017-11-08 15:53:41 UTC (rev 224580)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/open-url-multi-window-6.htm        2017-11-08 16:00:18 UTC (rev 224581)
</span><span class="lines">@@ -22,7 +22,7 @@
</span><span class="cx">             ifr.onload = function() {
</span><span class="cx">               // Again, do things async so we're not doing loads from inside
</span><span class="cx">               // load events.
</span><del>-              setTimeout(function() {
</del><ins>+              test.step_timeout(function() {
</ins><span class="cx">                 client = new ifr.contentWindow.XMLHttpRequest();
</span><span class="cx">                 count++;
</span><span class="cx">                 // Important to do a normal navigation, not a reload.
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestopenurlredirectedworkeroriginexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/open-url-redirected-worker-origin-expected.txt (224580 => 224581)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/open-url-redirected-worker-origin-expected.txt  2017-11-08 15:53:41 UTC (rev 224580)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/open-url-redirected-worker-origin-expected.txt     2017-11-08 16:00:18 UTC (rev 224581)
</span><span class="lines">@@ -1,7 +1,6 @@
</span><span class="cx"> Blocked access to external URL http://www2.localhost:8800/XMLHttpRequest/resources/inspect-headers.py?filter_name=origin&cors
</span><span class="cx"> 
</span><del>-PASS XMLHttpRequest: redirected worker scripts, origin and referrer 
</del><ins>+FAIL Referer header assert_equals: expected "Referer: http://localhost:8800/XMLHttpRequest/resources/workerxhr-origin-referrer.js\n" but got "Referer: http://localhost:8800/XMLHttpRequest/resources/redirect.py?location=workerxhr-origin-referrer.js\n"
</ins><span class="cx"> FAIL Origin header assert_equals: expected "Origin: http://localhost:8800\n" but got ""
</span><del>-FAIL Referer header assert_equals: expected "Referer: http://localhost:8800/XMLHttpRequest/resources/workerxhr-origin-referrer.js\n" but got "Referer: http://localhost:8800/XMLHttpRequest/resources/redirect.py?location=workerxhr-origin-referrer.js\n"
</del><span class="cx"> PASS Request URL test 
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestopenurlredirectedworkeroriginhtm"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/open-url-redirected-worker-origin.htm (224580 => 224581)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/open-url-redirected-worker-origin.htm   2017-11-08 15:53:41 UTC (rev 224580)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/open-url-redirected-worker-origin.htm      2017-11-08 16:00:18 UTC (rev 224581)
</span><span class="lines">@@ -1,43 +1,11 @@
</span><del>- <!DOCTYPE html>
-<html>
-<head>
-    <meta charset="utf-8" />
-    <title>XMLHttpRequest: redirected worker scripts, origin and referrer</title>
-    <script src="/resources/testharness.js"></script>
-    <script src="/resources/testharnessreport.js"></script>
-</head>
-<body>
-    <div id="log"></div>
-    <script type="text/javascript">
-        var test = async_test() // This "test" does not actually do any assertations. It's just there to have multiple, separate, asyncronous sub-tests.
-        var expectations = {
-            'Referer header': 'Referer: '+(location.href.replace(/[^/]*$/, ''))+"resources/workerxhr-origin-referrer.js\n",
-            'Origin header': 'Origin: '+location.protocol+'//'+location.hostname+((location.port === "")?"":":"+location.port)+'\n',
-            'Request URL test' : (location.href.replace(/[^/]*$/, ''))+'resources/requri.py?full'
-        }
-        // now start the worker
-        var finalWorkerURL = "workerxhr-origin-referrer.js";
-        var url = "resources/redirect.py?location=" + encodeURIComponent(finalWorkerURL);
-        var worker = new Worker(url)
-        worker.onmessage = function (e) {
-            var subtest = async_test(e.data.test)
-            subtest.step(function(){
-                var thisExpectation = expectations[e.data.test]
-                delete expectations[e.data.test]
-                assert_equals(e.data.result, thisExpectation)
-                subtest.done()
-            })
-            var allDone = true
-            for(var prop in expectations){
-                  allDone = false
-            }
-            if(allDone){
-                test.step(function(){
-                    test.done()
-                })
-            }
-        }
-
-    </script>
-</body>
-</html>
</del><ins>+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>XMLHttpRequest: redirected worker scripts, origin and referrer</title>
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<div id="log"></div>
+<script>
+var finalWorkerURL = "workerxhr-origin-referrer.js";
+var url = "resources/redirect.py?location=" + encodeURIComponent(finalWorkerURL);
+fetch_tests_from_worker(new Worker(url));
+</script>
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestopenurlworkeroriginexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/open-url-worker-origin-expected.txt (0 => 224581)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/open-url-worker-origin-expected.txt                             (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/open-url-worker-origin-expected.txt        2017-11-08 16:00:18 UTC (rev 224581)
</span><span class="lines">@@ -0,0 +1,6 @@
</span><ins>+Blocked access to external URL http://www2.localhost:8800/XMLHttpRequest/resources/inspect-headers.py?filter_name=origin&cors
+
+PASS Referer header 
+FAIL Origin header assert_equals: expected "Origin: http://localhost:8800\n" but got ""
+PASS Request URL test 
+
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestopenurlworkeroriginhtm"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/open-url-worker-origin.htm (0 => 224581)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/open-url-worker-origin.htm                              (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/open-url-worker-origin.htm 2017-11-08 16:00:18 UTC (rev 224581)
</span><span class="lines">@@ -0,0 +1,9 @@
</span><ins>+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>XMLHttpRequest: worker scripts, origin and referrer</title>
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<div id="log"></div>
+<script>
+fetch_tests_from_worker(new Worker("resources/workerxhr-origin-referrer.js"));
+</script>
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestoverridemimetypeopenstateforcexmlhtm"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/overridemimetype-open-state-force-xml.htm (224580 => 224581)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/overridemimetype-open-state-force-xml.htm       2017-11-08 15:53:41 UTC (rev 224580)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/overridemimetype-open-state-force-xml.htm  2017-11-08 16:00:18 UTC (rev 224581)
</span><span class="lines">@@ -15,11 +15,11 @@
</span><span class="cx">         var client = new XMLHttpRequest();
</span><span class="cx">         client.onreadystatechange = function() {
</span><span class="cx">           if (client.readyState !== 4) return;
</span><del>-                                       try{
</del><ins>+          try{
</ins><span class="cx">             var str = client.responseXML.documentElement.tagName+client.responseXML.documentElement.firstChild.tagName+client.responseXML.documentElement.firstChild.textContent;
</span><del>-                                       }catch(e){
-                                               assert_unreached('Exception when reading responseXML');
-                                       }
</del><ins>+          }catch(e){
+            assert_unreached('Exception when reading responseXML');
+          }
</ins><span class="cx">           assert_equals( client.responseXML.documentElement.tagName,  'test' );
</span><span class="cx">           assert_equals( client.responseXML.documentElement.firstChild.tagName,  'message' );
</span><span class="cx">           assert_equals( client.responseXML.documentElement.firstChild.textContent,  'Hello World!' );
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestresourcesworkerxhroriginreferrerjs"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/resources/workerxhr-origin-referrer.js (224580 => 224581)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/resources/workerxhr-origin-referrer.js  2017-11-08 15:53:41 UTC (rev 224580)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/resources/workerxhr-origin-referrer.js     2017-11-08 16:00:18 UTC (rev 224581)
</span><span class="lines">@@ -1,34 +1,63 @@
</span><del>-// This simply posts a message to the owner page with the contents of the Referer header
-var xhr=new XMLHttpRequest()
-xhr.onreadystatechange = function(){
-        if(xhr.readyState == 4){
-                var obj = {test:'Referer header', result:xhr.responseText}
-                self.postMessage(obj)
</del><ins>+importScripts("/resources/testharness.js")
+
+async_test(function() {
+    var expected = 'Referer: ' +
+                   location.href.replace(/[^/]*$/, '') +
+                   "workerxhr-origin-referrer.js\n"
+
+    var xhr = new XMLHttpRequest()
+    xhr.onreadystatechange = this.step_func(function() {
+        if (xhr.readyState == 4) {
+            assert_equals(xhr.responseText, expected)
+            this.done()
</ins><span class="cx">         }
</span><del>-}
-xhr.open('GET', 'inspect-headers.py?filter_name=referer', true)
-xhr.send()
</del><ins>+    })
+    xhr.open('GET', 'inspect-headers.py?filter_name=referer', true)
+    xhr.send()
+}, 'Referer header')
</ins><span class="cx"> 
</span><del>-// This simply posts a message to the owner page with the contents of the Origin header
-var xhr2=new XMLHttpRequest()
-xhr2.onreadystatechange = function(){
-        if(xhr2.readyState == 4){
-                var obj = {test:'Origin header', result:xhr2.responseText}
-                self.postMessage(obj)
</del><ins>+async_test(function() {
+    var expected = 'Origin: ' +
+                   location.protocol +
+                   '//' +
+                   location.hostname +
+                   (location.port === "" ? "" : ":" + location.port) +
+                   '\n'
+
+    var xhr = new XMLHttpRequest()
+    xhr.onreadystatechange = this.step_func(function() {
+        if (xhr.readyState == 4) {
+            assert_equals(xhr.responseText, expected)
+            this.done()
</ins><span class="cx">         }
</span><del>-}
-xhr2.open('GET', location.protocol + '//www2.'+location.hostname+((location.port === "")?"":":"+location.port)+(location.pathname.replace(/[^/]*$/, ''))+'inspect-headers.py?filter_name=origin&cors', true)
-xhr2.send()
</del><ins>+    })
+    var url = location.protocol +
+              '//www2.' +
+              location.hostname +
+              (location.port === "" ? "" : ":" + location.port) +
+              location.pathname.replace(/[^/]*$/, '') +
+              'inspect-headers.py?filter_name=origin&cors'
+    xhr.open('GET', url, true)
+    xhr.send()
+}, 'Origin header')
</ins><span class="cx"> 
</span><del>-// If "origin" / base URL is the origin of this JS file, we can load files
-// from the server it originates from.. and requri.py will be able to tell us
-// what the requested URL was
-var xhr3=new XMLHttpRequest()
-xhr3.onreadystatechange = function(){
-        if(xhr3.readyState == 4){
-                var obj = {test:'Request URL test', result:xhr3.responseText}
-                self.postMessage(obj)
</del><ins>+async_test(function() {
+    // If "origin" / base URL is the origin of this JS file, we can load files
+    // from the server it originates from.. and requri.py will be able to tell us
+    // what the requested URL was
+
+    var expected = location.href.replace(/[^/]*$/, '') +
+                   'requri.py?full'
+
+    var xhr = new XMLHttpRequest()
+    xhr.onreadystatechange = this.step_func(function() {
+        if (xhr.readyState == 4) {
+            assert_equals(xhr.responseText, expected)
+            this.done()
</ins><span class="cx">         }
</span><del>-}
-xhr3.open('GET', 'requri.py?full', true)
-xhr3.send()
</del><ins>+    })
+    xhr.open('GET', 'requri.py?full', true)
+    xhr.send()
+}, 'Request URL test')
+
+done()
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestresourcesworkerxhrsimplejs"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/resources/workerxhr-simple.js (224580 => 224581)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/resources/workerxhr-simple.js   2017-11-08 15:53:41 UTC (rev 224580)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/resources/workerxhr-simple.js      2017-11-08 16:00:18 UTC (rev 224581)
</span><span class="lines">@@ -1,10 +1,9 @@
</span><del>-
</del><span class="cx"> var xhr=new XMLHttpRequest()
</span><span class="cx"> xhr.onreadystatechange = function(){
</span><del>-       if(xhr.readyState == 4){
-               var status = xhr.responseText === 'bottom\n' ? 'PASSED' : 'FAILED'
-               self.postMessage(status)
-       }
</del><ins>+  if(xhr.readyState == 4){
+    var status = xhr.responseText === 'bottom\n' ? 'PASSED' : 'FAILED'
+    self.postMessage(status)
+  }
</ins><span class="cx"> }
</span><span class="cx"> xhr.open('GET', 'folder.txt', true)
</span><span class="cx"> xhr.send()
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestresourcesxmlhttprequesttimeoutsimplejs"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/resources/xmlhttprequest-timeout-simple.js (224580 => 224581)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/resources/xmlhttprequest-timeout-simple.js      2017-11-08 15:53:41 UTC (rev 224580)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/resources/xmlhttprequest-timeout-simple.js 2017-11-08 16:00:18 UTC (rev 224581)
</span><span class="lines">@@ -2,5 +2,5 @@
</span><span class="cx">   importScripts("xmlhttprequest-timeout.js");
</span><span class="cx"> 
</span><span class="cx"> runTestRequests([ new RequestTracker(true, "no time out scheduled, load fires normally", 0),
</span><del>-                 new RequestTracker(true, "load fires normally", TIME_NORMAL_LOAD),
-                 new RequestTracker(true, "timeout hit before load", TIME_REGULAR_TIMEOUT) ]);
</del><ins>+                  new RequestTracker(true, "load fires normally", TIME_NORMAL_LOAD),
+                  new RequestTracker(true, "timeout hit before load", TIME_REGULAR_TIMEOUT) ]);
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestresourcesxmlhttprequesttimeoutsynconmainjs"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/resources/xmlhttprequest-timeout-synconmain.js (224580 => 224581)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/resources/xmlhttprequest-timeout-synconmain.js  2017-11-08 15:53:41 UTC (rev 224580)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/resources/xmlhttprequest-timeout-synconmain.js     2017-11-08 16:00:18 UTC (rev 224581)
</span><span class="lines">@@ -1,2 +1,2 @@
</span><span class="cx"> runTestRequests([ SyncRequestSettingTimeoutAfterOpen,
</span><del>-                 SyncRequestSettingTimeoutBeforeOpen ]);
</del><ins>+                  SyncRequestSettingTimeoutBeforeOpen ]);
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestresourcesxmlhttprequesttimeoutsynconworkerjs"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/resources/xmlhttprequest-timeout-synconworker.js (224580 => 224581)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/resources/xmlhttprequest-timeout-synconworker.js        2017-11-08 15:53:41 UTC (rev 224580)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/resources/xmlhttprequest-timeout-synconworker.js   2017-11-08 16:00:18 UTC (rev 224581)
</span><span class="lines">@@ -1,11 +1,11 @@
</span><span class="cx"> if (this.document === undefined){
</span><span class="cx">   importScripts("xmlhttprequest-timeout.js");
</span><span class="cx"> }else{
</span><del>-       throw "This test expects to be run as a Worker";
</del><ins>+  throw "This test expects to be run as a Worker";
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> /* NOT TESTED: setting timeout before calling open( ... , false) in a worker context. The test code always calls open() first. */
</span><span class="cx"> 
</span><span class="cx"> runTestRequests([ new RequestTracker(false, "no time out scheduled, load fires normally", 0),
</span><del>-                 new RequestTracker(false, "load fires normally", TIME_NORMAL_LOAD),
-                 new RequestTracker(false, "timeout hit before load", TIME_REGULAR_TIMEOUT) ]);
</del><ins>+                  new RequestTracker(false, "load fires normally", TIME_NORMAL_LOAD),
+                  new RequestTracker(false, "timeout hit before load", TIME_REGULAR_TIMEOUT) ]);
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestresourcesxmlhttprequesttimeouttwicejs"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/resources/xmlhttprequest-timeout-twice.js (224580 => 224581)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/resources/xmlhttprequest-timeout-twice.js       2017-11-08 15:53:41 UTC (rev 224580)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/resources/xmlhttprequest-timeout-twice.js  2017-11-08 16:00:18 UTC (rev 224581)
</span><span class="lines">@@ -2,5 +2,5 @@
</span><span class="cx">   importScripts("xmlhttprequest-timeout.js");
</span><span class="cx"> 
</span><span class="cx"> runTestRequests([ new RequestTracker(true, "load fires normally with no timeout set, twice", 0, TIME_REGULAR_TIMEOUT, 0),
</span><del>-                 new RequestTracker(true, "load fires normally with same timeout set twice", TIME_NORMAL_LOAD, TIME_REGULAR_TIMEOUT, TIME_NORMAL_LOAD),
-                 new RequestTracker(true, "timeout fires normally with same timeout set twice", TIME_REGULAR_TIMEOUT, TIME_DELAY, TIME_REGULAR_TIMEOUT) ]);
</del><ins>+                  new RequestTracker(true, "load fires normally with same timeout set twice", TIME_NORMAL_LOAD, TIME_REGULAR_TIMEOUT, TIME_NORMAL_LOAD),
+                  new RequestTracker(true, "timeout fires normally with same timeout set twice", TIME_REGULAR_TIMEOUT, TIME_DELAY, TIME_REGULAR_TIMEOUT) ]);
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestresourcesxmlhttprequesttimeoutjs"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/resources/xmlhttprequest-timeout.js (224580 => 224581)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/resources/xmlhttprequest-timeout.js     2017-11-08 15:53:41 UTC (rev 224580)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/resources/xmlhttprequest-timeout.js        2017-11-08 16:00:18 UTC (rev 224581)
</span><span class="lines">@@ -245,7 +245,7 @@
</span><span class="cx">   /**
</span><span class="cx">    * Check the event received, and if it's the right (and only) one we get.
</span><span class="cx">    *
</span><del>-   * WebKit fires abort events even for DONE and UNSENT states, which is 
</del><ins>+   * WebKit fires abort events even for DONE and UNSENT states, which is
</ins><span class="cx">    * discussed in http://webkit.org/b/98404
</span><span class="cx">    * That's why we chose to accept secondary "abort" events in this test.
</span><span class="cx">    *
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestresponsedocumentdecodinghtm"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/responsedocument-decoding.htm (224580 => 224581)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/responsedocument-decoding.htm   2017-11-08 15:53:41 UTC (rev 224580)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/responsedocument-decoding.htm      2017-11-08 16:00:18 UTC (rev 224581)
</span><span class="lines">@@ -21,7 +21,7 @@
</span><span class="cx">       }
</span><span class="cx"> 
</span><span class="cx">       const encoded_content = "%e6%a9%9f";
</span><del>-      const encoded_xml = 
</del><ins>+      const encoded_xml =
</ins><span class="cx">         encodeURIComponent("<?xml version='1.0' encoding='windows-1252'?><x>") + encoded_content + encodeURIComponent("<\/x>");
</span><span class="cx">       const encoded_html =
</span><span class="cx">         encodeURIComponent("<!doctype html><meta charset=windows-1252><x>") + encoded_content + encodeURIComponent("<\/x>");
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestsendauthenticationbasiccorsexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-authentication-basic-cors-expected.txt (0 => 224581)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-authentication-basic-cors-expected.txt                             (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-authentication-basic-cors-expected.txt        2017-11-08 16:00:18 UTC (rev 224581)
</span><span class="lines">@@ -0,0 +1,4 @@
</span><ins>+CONSOLE MESSAGE: XMLHttpRequest cannot load http://www1.localhost:8800/XMLHttpRequest/resources/auth1/corsenabled.py due to access control checks.
+
+PASS XMLHttpRequest: send() - "Basic" authenticated CORS requests with user name and password passed to open() (asserts failure) 
+
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestsendauthenticationbasiccorshtm"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-authentication-basic-cors.htm (0 => 224581)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-authentication-basic-cors.htm                              (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-authentication-basic-cors.htm 2017-11-08 16:00:18 UTC (rev 224581)
</span><span class="lines">@@ -0,0 +1,35 @@
</span><ins>+<!doctype html>
+<html>
+  <head>
+    <title>XMLHttpRequest: send() - "Basic" authenticated CORS requests with user name and password passed to open() (asserts failure)</title>
+    <script src="/resources/testharness.js"></script>
+    <script src="/resources/testharnessreport.js"></script>
+    <link rel="help" href="https://xhr.spec.whatwg.org/#the-open()-method" data-tested-assertations="following::ol[1]/li[9]/ol[1]/li[1] following::ol[1]/li[9]/ol[1]/li[2]" />
+    <link rel="help" href="https://xhr.spec.whatwg.org/#the-send()-method" data-tested-assertations="following::code[contains(@title,'http-authorization')]/.." />
+  </head>
+  <body>
+    <div id="log"></div>
+    <script>
+      var test = async_test()
+      test.step(function() {
+        var client = new XMLHttpRequest(),
+          urlstart = 'www1.'+location.host + location.pathname.replace(/\/[^\/]*$/, '/')
+        client.withCredentials = true
+        client.open("GET", location.protocol+'//'+urlstart + "resources/auth1/corsenabled.py", true, 'user', 'pass')
+        client.setRequestHeader("x-user", 'user')
+        client.setRequestHeader("x-pass", 'pass')
+        client.onreadystatechange = function(){
+          if (client.readyState === 4) {
+            test.step(function(){
+              assert_equals(client.responseText, '')
+              assert_equals(client.status, 0)
+              assert_equals(client.getResponseHeader('x-challenge'), null)
+              test.done()
+            })
+          }
+        }
+        client.send(null)
+      }, document.title)
+    </script>
+  </body>
+</html>
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestsendauthenticationbasicrepeatnoargsexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-authentication-basic-repeat-no-args-expected.txt (0 => 224581)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-authentication-basic-repeat-no-args-expected.txt                           (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-authentication-basic-repeat-no-args-expected.txt      2017-11-08 16:00:18 UTC (rev 224581)
</span><span class="lines">@@ -0,0 +1,3 @@
</span><ins>+
+PASS XMLHttpRequest: send() - "Basic" authenticated requests with user name and password passed to open() in first request, without in second 
+
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestsendauthenticationbasicrepeatnoargshtm"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-authentication-basic-repeat-no-args.htm (0 => 224581)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-authentication-basic-repeat-no-args.htm                            (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-authentication-basic-repeat-no-args.htm       2017-11-08 16:00:18 UTC (rev 224581)
</span><span class="lines">@@ -0,0 +1,33 @@
</span><ins>+<!doctype html>
+<html>
+  <head>
+    <title>XMLHttpRequest: send() - "Basic" authenticated requests with user name and password passed to open() in first request, without in second</title>
+    <script src="/resources/testharness.js"></script>
+    <script src="/resources/testharnessreport.js"></script>
+    <script src="/common/utils.js"></script>
+    <link rel="help" href="https://xhr.spec.whatwg.org/#the-open()-method" data-tested-assertations="following::ol[1]/li[9]/ol[1]/li[1] following::ol[1]/li[9]/ol[1]/li[2]" />
+    <link rel="help" href="https://xhr.spec.whatwg.org/#the-send()-method" data-tested-assertations="following::code[contains(@title,'http-authorization')]/.." />
+  </head>
+  <body>
+    <div id="log"></div>
+    <script>
+      test(function() {
+        var client = new XMLHttpRequest(),
+          urlstart = location.host + location.pathname.replace(/\/[^\/]*$/, '/'),
+          user = token()
+        client.open("GET", location.protocol+'//'+urlstart + "resources/auth1/auth.py", false, user, 'pass')
+        client.setRequestHeader("x-user", user)
+        client.send(null)
+        // Repeat request but *without* credentials in the open() call.
+        // Is the UA supposed to cache credentials from above request and use them? Yes.
+        client.open("GET", location.protocol+'//'+urlstart + "resources/auth1/auth.py", false)
+        client.setRequestHeader("x-user", user)
+        client.send(null)
+
+        assert_equals(client.responseText, user + "\n" + 'pass')
+        //assert_equals(client.getResponseHeader('x-challenge'), 'DID-NOT')
+
+      }, document.title)
+    </script>
+  </body>
+</html>
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestsendauthenticationbasicsetrequestheaderhtm"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-authentication-basic-setrequestheader.htm (0 => 224581)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-authentication-basic-setrequestheader.htm                          (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-authentication-basic-setrequestheader.htm     2017-11-08 16:00:18 UTC (rev 224581)
</span><span class="lines">@@ -0,0 +1,36 @@
</span><ins>+<!doctype html>
+<html>
+  <head>
+    <title>XMLHttpRequest: send() - "Basic" authenticated request using setRequestHeader()</title>
+    <script src="/resources/testharness.js"></script>
+    <script src="/resources/testharnessreport.js"></script>
+    <script src="/common/utils.js"></script>
+    <!-- These spec references do not make much sense simply because the spec doesn't say very much about this.. -->
+    <link rel="help" href="https://xhr.spec.whatwg.org/#the-setrequestheader()-method" data-tested-assertations="following::ol[1]/li[6]" />
+    <link rel="help" href="https://xhr.spec.whatwg.org/#the-send()-method" data-tested-assertations="following::code[contains(@title,'http-authorization')]/.." />
+  </head>
+  <body>
+    <div id="log"></div>
+    <script>
+      var test = async_test()
+      test.step(function() {
+        var client = new XMLHttpRequest(),
+          urlstart = location.host + location.pathname.replace(/\/[^\/]*$/, '/'),
+          user = token()
+        client.open("GET", location.protocol+'//'+urlstart + "resources/auth2/auth.py", false)
+        client.setRequestHeader("x-user", user)
+        client.setRequestHeader('Authorization', 'Basic ' + btoa(user + ":pass"))
+        client.onreadystatechange = function () {
+          if (client.readyState < 4) {return}
+          test.step( function () {
+            assert_equals(client.responseText, user + '\npass')
+            assert_equals(client.status, 200)
+            assert_equals(client.getResponseHeader('x-challenge'), 'DID-NOT')
+            test.done()
+          } )
+        }
+        client.send(null)
+      })
+    </script>
+  </body>
+</html>
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestsendauthenticationbasichtm"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-authentication-basic.htm (0 => 224581)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-authentication-basic.htm                           (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-authentication-basic.htm      2017-11-08 16:00:18 UTC (rev 224581)
</span><span class="lines">@@ -0,0 +1,27 @@
</span><ins>+<!doctype html>
+<html>
+  <head>
+    <title>XMLHttpRequest: send() - "Basic" authenticated requests with user name and password passed to open()</title>
+    <script src="/resources/testharness.js"></script>
+    <script src="/resources/testharnessreport.js"></script>
+    <script src="/common/utils.js"></script>
+    <link rel="help" href="https://xhr.spec.whatwg.org/#the-open()-method" data-tested-assertations="following::ol[1]/li[9]/ol[1]/li[1] following::ol[1]/li[9]/ol[1]/li[2]" />
+    <link rel="help" href="https://xhr.spec.whatwg.org/#the-send()-method" data-tested-assertations="following::code[contains(@title,'http-authorization')]/.." />
+  </head>
+  <body>
+    <div id="log"></div>
+    <script>
+      test(function() {
+        var client = new XMLHttpRequest(),
+          urlstart = location.host + location.pathname.replace(/\/[^\/]*$/, '/'),
+          user = token();
+        client.open("GET", location.protocol+'//'+urlstart + "resources/auth1/auth.py", false, user, 'pass')
+        client.setRequestHeader("x-user", user)
+        client.send(null)
+        assert_equals(client.responseText, user + "\n" + 'pass')
+        assert_equals(client.getResponseHeader('x-challenge'), 'DID')
+      }, document.title)
+    </script>
+    <p>Note: this test will only work as expected once per browsing session. Restart browser to re-test.</p>
+  </body>
+</html>
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestsendauthenticationcompetingnamespasswordsexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-authentication-competing-names-passwords-expected.txt (0 => 224581)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-authentication-competing-names-passwords-expected.txt                              (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-authentication-competing-names-passwords-expected.txt 2017-11-08 16:00:18 UTC (rev 224581)
</span><span class="lines">@@ -0,0 +1,8 @@
</span><ins>+
+PASS XMLHttpRequest: send() - "Basic" authenticated requests with competing user name/password options user/pass in open() call 
+PASS XMLHttpRequest: send() - "Basic" authenticated requests with competing user name/password options another user/pass in open() call - must override cached credentials from previous test 
+PASS XMLHttpRequest: send() - "Basic" authenticated requests with competing user name/password options user/pass both in URL userinfo AND open() call - expexted that open() wins 
+PASS XMLHttpRequest: send() - "Basic" authenticated requests with competing user name/password options user/pass *only* in URL userinfo 
+PASS XMLHttpRequest: send() - "Basic" authenticated requests with competing user name/password options user name in URL userinfo, password in open() call: user name wins and password is thrown away 
+FAIL XMLHttpRequest: send() - "Basic" authenticated requests with competing user name/password options user name and password in URL userinfo, only user name in open() call: user name in open() wins assert_true: responseText should contain the right user and password expected true got false
+
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestsendauthenticationcompetingnamespasswordshtm"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-authentication-competing-names-passwords.htm (0 => 224581)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-authentication-competing-names-passwords.htm                               (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-authentication-competing-names-passwords.htm  2017-11-08 16:00:18 UTC (rev 224581)
</span><span class="lines">@@ -0,0 +1,54 @@
</span><ins>+<!doctype html>
+<html>
+  <head>
+    <title>XMLHttpRequest: send() - "Basic" authenticated requests with competing user name/password options</title>
+    <script src="/resources/testharness.js"></script>
+    <script src="/resources/testharnessreport.js"></script>
+    <script src="/common/utils.js"></script>
+    <link rel="help" href="https://xhr.spec.whatwg.org/#the-open()-method" data-tested-assertations="following::ol[1]/li[9]/ol[1]/li[1] following::ol[1]/li[9]/ol[1]/li[2]" />
+    <link rel="help" href="https://xhr.spec.whatwg.org/#the-send()-method" data-tested-assertations="following::code[contains(@title,'http-authorization')]/.." />  </head>
+  <body>
+    <div id="log"></div>
+    <script>
+      function request(user1, pass1, user2, pass2, name) {
+        // user1, pass1 will if given become userinfo part of URL
+        // user2, pass2 will if given be passed to open() call
+        test(function() {
+          var client = new XMLHttpRequest(),
+              urlstart = "", userwin, passwin
+          // if user2 is set, winning user name and password is 2
+          if(user2)
+            userwin = user2, passwin = pass2
+          // if user1 is set, and user2 is not set, user1 and pass1 win
+          if(user1 && ! user2)
+            userwin = user1, passwin = pass1
+          // if neither user name is set, pass 2 wins (there will be no userinfo in URL)
+          if (!(user1 || user2))
+            passwin = pass2
+          if(user1) { // should add userinfo to URL (there is no way to create userinfo part of URL with only password in)
+            urlstart = "http://" + user1
+            if(pass1)
+              urlstart += ":" + pass1
+            urlstart += "@" + location.host + location.pathname.replace(/\/[^\/]*$/, '/')
+          }
+          client.open("GET", urlstart + "resources/authentication.py", false, user2, pass2)
+          client.setRequestHeader("x-user", userwin)
+          client.send(null)
+          assert_true(client.responseText == ((userwin||'') + "\n" + (passwin||'')), 'responseText should contain the right user and password')
+
+          // We want to send multiple requests to the same realm here, so we try to make the UA forget its (cached) credentials between each test..
+          // forcing a 401 response to (hopefully) "log out"
+          // NOTE: This is commented out because it causes authentication prompts while running the test
+          //client.open('GET', "resources/authentication.py?logout=1", false)
+          //client.send()
+        }, document.title+' '+name)
+      }
+      request(null, null, token(), token(), 'user/pass in open() call')
+      request(null, null, token(), token(), 'another user/pass in open() call - must override cached credentials from previous test')
+      request("userinfo-user", "userinfo-pass", token(), token(), 'user/pass both in URL userinfo AND open() call - expexted that open() wins')
+      request(token(), token(), null, null, 'user/pass *only* in URL userinfo')
+      request(token(), null, null, token(), 'user name in URL userinfo, password in open() call: user name wins and password is thrown away')
+      request("1", token(), token(), null, 'user name and password in URL userinfo, only user name in open() call: user name in open() wins')
+    </script>
+  </body>
+</html>
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestsendentitybodybasicexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-entity-body-basic-expected.txt (0 => 224581)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-entity-body-basic-expected.txt                             (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-entity-body-basic-expected.txt        2017-11-08 16:00:18 UTC (rev 224581)
</span><span class="lines">@@ -0,0 +1,8 @@
</span><ins>+
+PASS XMLHttpRequest: send() - data argument (1) 
+PASS XMLHttpRequest: send() - data argument (10000000) 
+PASS XMLHttpRequest: send() - data argument (2,2) 
+PASS XMLHttpRequest: send() - data argument (false) 
+PASS XMLHttpRequest: send() - data argument (A\0A) 
+PASS XMLHttpRequest: send() - data argument (1=2&3=4) 
+
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestsendentitybodybasichtm"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-entity-body-basic.htm (0 => 224581)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-entity-body-basic.htm                              (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-entity-body-basic.htm 2017-11-08 16:00:18 UTC (rev 224581)
</span><span class="lines">@@ -0,0 +1,28 @@
</span><ins>+<!doctype html>
+<html>
+  <head>
+    <title>XMLHttpRequest: send() - data argument</title>
+    <script src="/resources/testharness.js"></script>
+    <script src="/resources/testharnessreport.js"></script>
+    <link rel="help" href="https://xhr.spec.whatwg.org/#the-send()-method" data-tested-assertations="/following::ol/li[4]" />
+  </head>
+  <body>
+    <div id="log"></div>
+    <script>
+      function request(input, output) {
+        test(function() {
+          var client = new XMLHttpRequest()
+          client.open("POST", "resources/content.py", false)
+          client.send(input)
+          assert_equals(client.responseText, output)
+        }, document.title + " (" + output + ")")
+      }
+      request(1, "1")
+      request(10000000, "10000000")
+      request([2,2], "2,2")
+      request(false, "false")
+      request("A\0A", "A\0A")
+      request(new URLSearchParams([[1, 2], [3, 4]]), "1=2&3=4")
+    </script>
+  </body>
+</html>
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestsendentitybodydocumentexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-entity-body-document-expected.txt (224580 => 224581)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-entity-body-document-expected.txt  2017-11-08 15:53:41 UTC (rev 224580)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-entity-body-document-expected.txt     2017-11-08 16:00:18 UTC (rev 224581)
</span><span class="lines">@@ -1,9 +1,9 @@
</span><span class="cx"> 
</span><span class="cx"> PASS XML document, windows-1252 
</span><ins>+PASS HTML document, invalid UTF-8 
+PASS HTML document, shift-jis 
+PASS plain text file 
</ins><span class="cx"> PASS image file 
</span><span class="cx"> PASS img tag 
</span><del>-PASS HTML document, invalid UTF-8 
-PASS HTML document, shift-jis 
</del><span class="cx"> PASS empty div 
</span><del>-PASS plain text file 
-         
</del><ins>+
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestsendentitybodydocumenthtm"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-entity-body-document.htm (224580 => 224581)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-entity-body-document.htm   2017-11-08 15:53:41 UTC (rev 224580)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-entity-body-document.htm      2017-11-08 16:00:18 UTC (rev 224581)
</span><span class="lines">@@ -11,51 +11,82 @@
</span><span class="cx">   <body>
</span><span class="cx">     <div id="log"></div>
</span><span class="cx">     <script>
</span><del>-     var expectations = [
-      { contentType: 'application/xml;charset=UTF-8', responseText : '<\u00FF\/>' },
-      { contentType: 'text/html;charset=UTF-8', responseText : '<body>\uFFFD<\/body>' }, /*invalid character code in document turns into FFFD*/
-      { contentType: 'text/html;charset=UTF-8', responseText : '<body>\u30C6\u30b9\u30c8<\/body>' } /* correctly serialized Shift-JIS */,
-      { contentType: 'text/html;charset=UTF-8', responseText: 'top' }, /* There's some markup included, but it's not really relevant for this test suite, so we do an indexOf() test */
-      { contentType: 'text/html;charset=UTF-8' },
-      { contentType: 'text/html;charset=UTF-8', responseText: '<img>foo' },
-      { contentType: 'text/html;charset=UTF-8', responseText: '<!DOCTYPE html><html><head></head><body><div></div></body></html>' }
-     ]
</del><ins>+    var tests = [
+      {
+        title: 'XML document, windows-1252',
+        url: 'resources/win-1252-xml.py',
+        contentType: 'application/xml;charset=UTF-8',
+        responseText: '<\u00FF\/>'
+      },
+      // Invalid character code in document turns into U+FFFD.
+      {
+        title: 'HTML document, invalid UTF-8',
+        url: 'resources/invalid-utf8-html.py',
+        contentType: 'text/html;charset=UTF-8',
+        responseText: '<body>\uFFFD<\/body>'
+      },
+      // Correctly serialized Shift-JIS.
+      {
+        title: 'HTML document, shift-jis',
+        url: 'resources/shift-jis-html.py',
+        contentType: 'text/html;charset=UTF-8',
+        responseText: '<body>\u30C6\u30b9\u30c8<\/body>'
+      },
+      // There's some markup included, but it's not really relevant for this
+      // test suite, so we do an indexOf() test.
+      {
+        title: 'plain text file',
+        url: 'folder.txt',
+        contentType: 'text/html;charset=UTF-8',
+        responseText: 'top'
+      },
+      // This test does not want to assert anything about what markup a
+      // standalone image should be wrapped in. Hence this test lacks a
+      // responseText expectation.
+      {
+        title: 'image file',
+        url: 'resources/image.gif',
+        contentType: 'text/html;charset=UTF-8'
+      },
+      {
+        title: 'img tag',
+        url: 'resources/img-utf8-html.py',
+        contentType: 'text/html;charset=UTF-8',
+        responseText: '<img>foo'
+      },
+      {
+        title: 'empty div',
+        url: 'resources/empty-div-utf8-html.py',
+        contentType: 'text/html;charset=UTF-8',
+        responseText: '<!DOCTYPE html><html><head></head><body><div></div></body></html>'
+      }
+    ];
</ins><span class="cx"> 
</span><del>-
-      function request(input, number, title) {
-        test(function() {
</del><ins>+    tests.forEach(function(t) {
+      async_test(function() {
+        var iframe = document.createElement("iframe");
+        iframe.onload = this.step_func_done(function() {
</ins><span class="cx">           var client = new XMLHttpRequest()
</span><span class="cx">           client.open("POST", "resources/content.py?response_charset_label=UTF-8", false)
</span><del>-          client.send(input)
-          var exp = expectations[number]
-          assert_equals(client.getResponseHeader('X-Request-Content-Type'), exp.contentType, 'document should be serialized and sent as '+exp.contentType+' (TEST#'+number+')')
-          // The indexOf() assertation will overlook some stuff, i.e. XML prologues that shouldn't be there (looking at you, Presto).
-          // However, arguably these things have little to do with the XHR functionality we're testing.
-          if(exp.responseText){ // This test does not want to assert anything about what markup a standalone IMG should be wrapped in. Hence the GIF test lacks a responseText expectation.
-            assert_true(client.responseText.indexOf(exp.responseText) != -1,
-                        JSON.stringify(exp.responseText) + " not in " +
</del><ins>+          client.send(iframe.contentDocument)
+          assert_equals(client.getResponseHeader('X-Request-Content-Type'),
+                        t.contentType,
+                        'document should be serialized and sent as ' + t.contentType)
+          // The indexOf() assertion will overlook some stuff, e.g. XML
+          // prologues that shouldn't be there (looking at you, Presto).
+          // However, arguably these things have little to do with the XHR
+          // functionality we're testing.
+          if (t.responseText) {
+            assert_true(client.responseText.indexOf(t.responseText) != -1,
+                        JSON.stringify(t.responseText) + " not in " +
</ins><span class="cx">                         JSON.stringify(client.responseText));
</span><span class="cx">           }
</span><span class="cx">           assert_equals(client.responseXML, null)
</span><del>-        }, title)
-      }
-      function init(fr, number, title) { request(fr.contentDocument, number, title) }
</del><ins>+        });
+        iframe.src = t.url;
+        document.body.appendChild(iframe);
+      }, t.title);
+    });
</ins><span class="cx">     </script>
</span><del>-    <!--
-        This test also tests how documents in various encodings are serialized.
-        The below IFRAMEs contain:
-          * one XML document parsed from a windows-1252 source - content is <ÿ/>
-          * one HTML-document parsed from an invalid UTF-8 source, will contain a basic HTML DOM
-             with a U+FFFD replacement character for the invalid char
-          * one HTML document parsed from a valid Shift-JIS source
-     -->
-    <iframe src='resources/win-1252-xml.py' onload="init(this, 0, 'XML document, windows-1252')"></iframe>
-    <iframe src='resources/invalid-utf8-html.py' onload="init(this, 1, 'HTML document, invalid UTF-8')"></iframe>
-    <iframe src='resources/shift-jis-html.py' onload="init(this, 2, 'HTML document, shift-jis')"></iframe>
-    <iframe src='folder.txt' onload="init(this, 3, 'plain text file')"></iframe>
-    <iframe src='resources/image.gif' onload="init(this, 4, 'image file')"></iframe>
-    <iframe src='resources/img-utf8-html.py' onload="init(this, 5, 'img tag')"></iframe>
-    <iframe src='resources/empty-div-utf8-html.py' onload="init(this, 6, 'empty div')"></iframe>
-
</del><span class="cx">   </body>
</span><span class="cx"> </html>
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestsendentitybodygetheadasynchtm"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-entity-body-get-head-async.htm (224580 => 224581)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-entity-body-get-head-async.htm     2017-11-08 15:53:41 UTC (rev 224580)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-entity-body-get-head-async.htm        2017-11-08 16:00:18 UTC (rev 224581)
</span><span class="lines">@@ -4,7 +4,7 @@
</span><span class="cx">     <title>XMLHttpRequest: send() - non-empty data argument and GET/HEAD - async, no upload events should fire</title>
</span><span class="cx">     <script src="/resources/testharness.js"></script>
</span><span class="cx">     <script src="/resources/testharnessreport.js"></script>
</span><del>-        <link rel="help" href="https://xhr.spec.whatwg.org/#the-send()-method" data-tested-assertations="following::OL[1]/LI[3] following::OL[1]/LI[7] following::OL[1]/LI[8]" />  
</del><ins>+        <link rel="help" href="https://xhr.spec.whatwg.org/#the-send()-method" data-tested-assertations="following::OL[1]/LI[3] following::OL[1]/LI[7] following::OL[1]/LI[8]" />
</ins><span class="cx"> 
</span><span class="cx">   </head>
</span><span class="cx">   <body>
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestsendentitybodygetheadhtm"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-entity-body-get-head.htm (224580 => 224581)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-entity-body-get-head.htm   2017-11-08 15:53:41 UTC (rev 224580)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-entity-body-get-head.htm      2017-11-08 16:00:18 UTC (rev 224581)
</span><span class="lines">@@ -4,7 +4,7 @@
</span><span class="cx">     <title>XMLHttpRequest: send() - non-empty data argument and GET/HEAD</title>
</span><span class="cx">     <script src="/resources/testharness.js"></script>
</span><span class="cx">     <script src="/resources/testharnessreport.js"></script>
</span><del>-        <link rel="help" href="https://xhr.spec.whatwg.org/#the-send()-method" data-tested-assertations="following::OL[1]/LI[3] following::OL[1]/LI[7]" />  
</del><ins>+        <link rel="help" href="https://xhr.spec.whatwg.org/#the-send()-method" data-tested-assertations="following::OL[1]/LI[3] following::OL[1]/LI[7]" />
</ins><span class="cx"> 
</span><span class="cx">   </head>
</span><span class="cx">   <body>
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestsendnetworkerrorasynceventssubexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-network-error-async-events.sub-expected.txt (0 => 224581)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-network-error-async-events.sub-expected.txt                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-network-error-async-events.sub-expected.txt   2017-11-08 16:00:18 UTC (rev 224581)
</span><span class="lines">@@ -0,0 +1,4 @@
</span><ins>+CONSOLE MESSAGE: XMLHttpRequest cannot load http://nonexistent-origin.localhost:8800/ due to access control checks.
+
+PASS XMLHttpRequest: The send() method: Fire a progress event named error when Network error happens (synchronous flag is unset) 
+
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestsendnetworkerrorasynceventssubhtm"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-network-error-async-events.sub.htm (0 => 224581)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-network-error-async-events.sub.htm                         (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-network-error-async-events.sub.htm    2017-11-08 16:00:18 UTC (rev 224581)
</span><span class="lines">@@ -0,0 +1,47 @@
</span><ins>+<!DOCTYPE html>
+<html>
+<head>
+    <link rel="help" href="https://xhr.spec.whatwg.org/#handler-xhr-onerror" data-tested-assertations="../.." />
+    <link rel="help" href="https://xhr.spec.whatwg.org/#the-send()-method" data-tested-assertations="following::ol[1]/li[9]/ol/li[2] following::ol[1]/li[9]/ol/li[3]" />
+    <link rel="help" href="https://xhr.spec.whatwg.org/#infrastructure-for-the-send()-method" data-tested-assertations="following::dt[4] following::dd[4]/p" />
+    <link rel="help" href="https://xhr.spec.whatwg.org/#network-error" data-tested-assertations=".." />
+    <link rel="help" href="https://xhr.spec.whatwg.org/#request-error" data-tested-assertations="following::ol[1]/li[4] following::ol[1]/li[6] following::ol[1]/li[7] following::ol[1]/li[7]/ol/li[3] following::ol[1]/li[7]/ol/li[4] following::ol[1]/li[9] following::ol[1]/li[10]" />
+    <script src="/resources/testharness.js"></script>
+    <script src="/resources/testharnessreport.js"></script>
+    <title>XMLHttpRequest: The send() method: Fire a progress event named error when Network error happens (synchronous flag is unset)</title>
+</head>
+
+<body>
+    <div id="log"></div>
+
+    <script type="text/javascript">
+        var test = async_test();
+
+        test.step(function(){
+            var xhr = new XMLHttpRequest();
+            var expect =  ["loadstart", "upload.loadstart", 4, "upload.error", "upload.loadend", "error", "loadend"];
+            var actual = [];
+
+            xhr.onreadystatechange = test.step_func(() => {
+                if (xhr.readyState == 4) {
+                    actual.push(xhr.readyState);
+                }
+            });
+
+            xhr.onloadstart        = test.step_func(e => { actual.push(e.type); })
+            xhr.onloadend          = test.step_func_done(e => {
+                actual.push(e.type);
+                assert_array_equals(actual, expect);
+            })
+            xhr.onerror            = test.step_func(e => { actual.push(e.type); })
+
+            xhr.upload.onloadstart = test.step_func(e => { actual.push("upload." + e.type); })
+            xhr.upload.onloadend   = test.step_func(e => { actual.push("upload." + e.type); })
+            xhr.upload.onerror     = test.step_func(e => { actual.push("upload." + e.type); })
+
+            xhr.open("POST", "http://nonexistent-origin.{{host}}:{{ports[http][0]}}", true);
+            xhr.send("Test Message");
+        });
+    </script>
+</body>
+</html>
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestsendredirectinfinitehtm"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-redirect-infinite.htm (224580 => 224581)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-redirect-infinite.htm      2017-11-08 15:53:41 UTC (rev 224580)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-redirect-infinite.htm 2017-11-08 16:00:18 UTC (rev 224581)
</span><span class="lines">@@ -29,7 +29,7 @@
</span><span class="cx">           test.done()
</span><span class="cx">         })
</span><span class="cx">       }
</span><del>-      client.send(null) 
</del><ins>+      client.send(null)
</ins><span class="cx">     </script>
</span><span class="cx">   </body>
</span><span class="cx"> </html>
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestsendredirectnolocationhtm"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-redirect-no-location.htm (224580 => 224581)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-redirect-no-location.htm   2017-11-08 15:53:41 UTC (rev 224580)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-redirect-no-location.htm      2017-11-08 16:00:18 UTC (rev 224581)
</span><span class="lines">@@ -5,7 +5,7 @@
</span><span class="cx">     <script src="/resources/testharness.js"></script>
</span><span class="cx">     <script src="/resources/testharnessreport.js"></script>
</span><span class="cx">     <link rel="help" href="https://xhr.spec.whatwg.org/#infrastructure-for-the-send()-method" data-tested-assertations="following::dl[1]/dt[2]" />
</span><del>-    <!-- 
</del><ins>+    <!--
</ins><span class="cx">       NOTE: the XHR spec does not really handle this scenario. It's handled in the Fetch spec:
</span><span class="cx">       "If response's headers do not contain a header whose name is Location, return response."
</span><span class="cx">      -->
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestsendredirectpostuploadhtm"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-redirect-post-upload.htm (224580 => 224581)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-redirect-post-upload.htm   2017-11-08 15:53:41 UTC (rev 224580)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-redirect-post-upload.htm      2017-11-08 16:00:18 UTC (rev 224581)
</span><span class="lines">@@ -25,7 +25,7 @@
</span><span class="cx"> 
</span><span class="cx">         // 307 redirects should resend the POST data, and events and headers will be a little different..
</span><span class="cx">         if(shouldResendPost) {
</span><del>-            expectedHeaders = { 
</del><ins>+            expectedHeaders = {
</ins><span class="cx">                 "X-Request-Content-Length": "11988",
</span><span class="cx">                 "X-Request-Content-Type": "text/plain;charset=UTF-8",
</span><span class="cx">                 "X-Request-Method": "POST",
</span><span class="lines">@@ -45,12 +45,12 @@
</span><span class="cx">             ];
</span><span class="cx">         } else {
</span><span class="cx">             // setting the right expectations for POST resent as GET without request body
</span><del>-            expectedHeaders = { 
</del><ins>+            expectedHeaders = {
</ins><span class="cx">                 "X-Request-Content-Length": "NO",
</span><span class="cx">                 "X-Request-Content-Type": "NO",
</span><span class="cx">                 "X-Request-Method": "GET",
</span><span class="cx">                 "X-Request-Query": "NO"
</span><del>-            }            
</del><ins>+            }
</ins><span class="cx">             expectedEvents = [
</span><span class="cx">                 "xhr onreadystatechange 1",
</span><span class="cx">                 "xhr loadstart 1",
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestsetrequestheaderaftersendhtm"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/setrequestheader-after-send.htm (224580 => 224581)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/setrequestheader-after-send.htm 2017-11-08 15:53:41 UTC (rev 224580)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/setrequestheader-after-send.htm    2017-11-08 16:00:18 UTC (rev 224581)
</span><span class="lines">@@ -4,7 +4,7 @@
</span><span class="cx">     <title>XMLHttpRequest: setRequestHeader() after send()</title>
</span><span class="cx">     <script src="/resources/testharness.js"></script>
</span><span class="cx">     <script src="/resources/testharnessreport.js"></script>
</span><del>-    <link rel="help" href="https://xhr.spec.whatwg.org/#the-setrequestheader()-method" data-tested-assertations="/following::ol/li[2]" />  
</del><ins>+    <link rel="help" href="https://xhr.spec.whatwg.org/#the-setrequestheader()-method" data-tested-assertations="/following::ol/li[2]" />
</ins><span class="cx">   </head>
</span><span class="cx">   <body>
</span><span class="cx">     <div id="log"></div>
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestsetrequestheaderbeforeopenhtm"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/setrequestheader-before-open.htm (224580 => 224581)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/setrequestheader-before-open.htm        2017-11-08 15:53:41 UTC (rev 224580)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/setrequestheader-before-open.htm   2017-11-08 16:00:18 UTC (rev 224581)
</span><span class="lines">@@ -4,7 +4,7 @@
</span><span class="cx">     <title>XMLHttpRequest: setRequestHeader() before open()</title>
</span><span class="cx">     <script src="/resources/testharness.js"></script>
</span><span class="cx">     <script src="/resources/testharnessreport.js"></script>
</span><del>-    <link rel="help" href="https://xhr.spec.whatwg.org/#the-setrequestheader()-method" data-tested-assertations="following::ol/li[1]" />  
</del><ins>+    <link rel="help" href="https://xhr.spec.whatwg.org/#the-setrequestheader()-method" data-tested-assertations="following::ol/li[1]" />
</ins><span class="cx">   </head>
</span><span class="cx">   <body>
</span><span class="cx">     <div id="log"></div>
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestw3cimportlog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/w3c-import.log (224580 => 224581)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/w3c-import.log  2017-11-08 15:53:41 UTC (rev 224580)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/w3c-import.log     2017-11-08 16:00:18 UTC (rev 224581)
</span><span class="lines">@@ -153,6 +153,7 @@
</span><span class="cx"> /LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/open-url-multi-window-6.htm
</span><span class="cx"> /LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/open-url-multi-window.htm
</span><span class="cx"> /LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/open-url-redirected-worker-origin.htm
</span><ins>+/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/open-url-worker-origin.htm
</ins><span class="cx"> /LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/open-url-worker-simple.htm
</span><span class="cx"> /LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/open-user-password-non-same-origin.htm
</span><span class="cx"> /LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/overridemimetype-blob.html
</span><span class="lines">@@ -190,7 +191,12 @@
</span><span class="cx"> /LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/security-consideration.sub.html
</span><span class="cx"> /LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-accept-language.htm
</span><span class="cx"> /LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-accept.htm
</span><ins>+/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-authentication-basic-cors.htm
+/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-authentication-basic-repeat-no-args.htm
</ins><span class="cx"> /LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-authentication-basic-setrequestheader-and-arguments.htm
</span><ins>+/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-authentication-basic-setrequestheader.htm
+/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-authentication-basic.htm
+/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-authentication-competing-names-passwords.htm
</ins><span class="cx"> /LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-authentication-cors-basic-setrequestheader.htm
</span><span class="cx"> /LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-authentication-cors-setrequestheader-no-cred.htm
</span><span class="cx"> /LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-blob-with-no-mime-type.html
</span><span class="lines">@@ -204,6 +210,7 @@
</span><span class="cx"> /LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-data-es-object.htm
</span><span class="cx"> /LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-data-formdata.htm
</span><span class="cx"> /LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-data-unexpected-tostring.htm
</span><ins>+/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-entity-body-basic.htm
</ins><span class="cx"> /LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-entity-body-document-bogus.htm
</span><span class="cx"> /LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-entity-body-document.htm
</span><span class="cx"> /LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-entity-body-empty.htm
</span><span class="lines">@@ -210,6 +217,7 @@
</span><span class="cx"> /LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-entity-body-get-head-async.htm
</span><span class="cx"> /LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-entity-body-get-head.htm
</span><span class="cx"> /LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-entity-body-none.htm
</span><ins>+/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-network-error-async-events.sub.htm
</ins><span class="cx"> /LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-network-error-sync-events.sub.htm
</span><span class="cx"> /LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-no-response-event-loadend.htm
</span><span class="cx"> /LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-no-response-event-loadstart.htm
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestxmlhttprequesttimeoutreusedhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/xmlhttprequest-timeout-reused.html (224580 => 224581)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/xmlhttprequest-timeout-reused.html      2017-11-08 15:53:41 UTC (rev 224580)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/xmlhttprequest-timeout-reused.html 2017-11-08 16:00:18 UTC (rev 224581)
</span><span class="lines">@@ -17,15 +17,16 @@
</span><span class="cx">     <div id="log"></div>
</span><span class="cx">     <script type="text/javascript">
</span><span class="cx"> 
</span><ins>+var test = async_test();
+
</ins><span class="cx"> function startRequest() {
</span><span class="cx">     xhr.open("GET", "./resources/content.py?content=Hi", true);
</span><span class="cx">     xhr.timeout = 2000;
</span><del>-    setTimeout(function () {
</del><ins>+    test.step_timeout(function () {
</ins><span class="cx">       xhr.send();
</span><span class="cx">     }, 1000);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-var test = async_test();
</del><span class="cx"> test.step(function()
</span><span class="cx"> {
</span><span class="cx">     var count = 0;
</span><span class="lines">@@ -40,7 +41,7 @@
</span><span class="cx">       assert_unreached("HTTP error should not timeout");
</span><span class="cx">     }
</span><span class="cx">     startRequest();
</span><del>-    setTimeout(startRequest, 3500);
</del><ins>+    test.step_timeout(startRequest, 3500);
</ins><span class="cx"> });
</span><span class="cx"> 
</span><span class="cx">     </script>
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsXMLHttpRequestxmlhttprequestunsenthtm"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/xmlhttprequest-unsent.htm (224580 => 224581)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/xmlhttprequest-unsent.htm       2017-11-08 15:53:41 UTC (rev 224580)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/xmlhttprequest-unsent.htm  2017-11-08 16:00:18 UTC (rev 224581)
</span><span class="lines">@@ -4,16 +4,16 @@
</span><span class="cx">     <title>XMLHttpRequest: members during UNSENT</title>
</span><span class="cx">     <script src="/resources/testharness.js"></script>
</span><span class="cx">     <script src="/resources/testharnessreport.js"></script>
</span><del>-    <link rel="help" href="https://xhr.spec.whatwg.org/#dom-xmlhttprequest-unsent" data-tested-assertations=".. following::dd" />  
-    <link rel="help" href="https://xhr.spec.whatwg.org/#dom-xmlhttprequest-setrequestheader" data-tested-assertations="following::ol/li[1]" />  
-    <link rel="help" href="https://xhr.spec.whatwg.org/#the-send()-method" data-tested-assertations="following::ol/li[1]" />  
-    <link rel="help" href="https://xhr.spec.whatwg.org/#the-status-attribute" data-tested-assertations="following::ol/li[1]" />  
-    <link rel="help" href="https://xhr.spec.whatwg.org/#the-statustext-attribute" data-tested-assertations="following::ol/li[1]" />  
-    <link rel="help" href="https://xhr.spec.whatwg.org/#the-getresponseheader()-method" data-tested-assertations="following::ol/li[1]" />  
-    <link rel="help" href="https://xhr.spec.whatwg.org/#the-getallresponseheaders()-method" data-tested-assertations="following::ol/li[1]" />  
-    <link rel="help" href="https://xhr.spec.whatwg.org/#the-responsetext-attribute" data-tested-assertations="following::ol/li[2]" />  
-    <link rel="help" href="https://xhr.spec.whatwg.org/#the-responsexml-attribute" data-tested-assertations="following::ol/li[2]" />  
-    
</del><ins>+    <link rel="help" href="https://xhr.spec.whatwg.org/#dom-xmlhttprequest-unsent" data-tested-assertations=".. following::dd" />
+    <link rel="help" href="https://xhr.spec.whatwg.org/#dom-xmlhttprequest-setrequestheader" data-tested-assertations="following::ol/li[1]" />
+    <link rel="help" href="https://xhr.spec.whatwg.org/#the-send()-method" data-tested-assertations="following::ol/li[1]" />
+    <link rel="help" href="https://xhr.spec.whatwg.org/#the-status-attribute" data-tested-assertations="following::ol/li[1]" />
+    <link rel="help" href="https://xhr.spec.whatwg.org/#the-statustext-attribute" data-tested-assertations="following::ol/li[1]" />
+    <link rel="help" href="https://xhr.spec.whatwg.org/#the-getresponseheader()-method" data-tested-assertations="following::ol/li[1]" />
+    <link rel="help" href="https://xhr.spec.whatwg.org/#the-getallresponseheaders()-method" data-tested-assertations="following::ol/li[1]" />
+    <link rel="help" href="https://xhr.spec.whatwg.org/#the-responsetext-attribute" data-tested-assertations="following::ol/li[2]" />
+    <link rel="help" href="https://xhr.spec.whatwg.org/#the-responsexml-attribute" data-tested-assertations="following::ol/li[2]" />
+
</ins><span class="cx">   </head>
</span><span class="cx">   <body>
</span><span class="cx">     <div id="log"></div>
</span></span></pre>
</div>
</div>

</body>
</html>