Title: [204694] trunk/LayoutTests
Revision
204694
Author
[email protected]
Date
2016-08-21 08:41:20 -0700 (Sun, 21 Aug 2016)

Log Message

[Mac] Rebase some failing XMLHttpRequest tests
https://bugs.webkit.org/show_bug.cgi?id=161036

Unreviewed.

Patch by Youenn Fablet <[email protected]> on 2016-08-21

* TestExpectations: Unmarking rebased tests as failing.
* platform/ios-simulator/imported/w3c/web-platform-tests/XMLHttpRequest/send-entity-body-empty-expected.txt: Copied from LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-entity-body-empty-expected.txt.
* platform/ios-simulator/imported/w3c/web-platform-tests/XMLHttpRequest/send-entity-body-none-expected.txt: Copied from LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-entity-body-none-expected.txt.
* platform/ios-simulator/imported/w3c/web-platform-tests/XMLHttpRequest/setrequestheader-content-type-expected.txt: Copied from LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/setrequestheader-content-type-expected.txt.
* platform/mac/imported/w3c/web-platform-tests/XMLHttpRequest/send-entity-body-empty-expected.txt: Copied from LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-entity-body-empty-expected.txt.
* platform/mac/imported/w3c/web-platform-tests/XMLHttpRequest/send-entity-body-none-expected.txt: Copied from LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-entity-body-none-expected.txt.
* platform/mac/imported/w3c/web-platform-tests/XMLHttpRequest/setrequestheader-content-type-expected.txt: Copied from LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/setrequestheader-content-type-expected.txt.

Modified Paths

Added Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (204693 => 204694)


--- trunk/LayoutTests/ChangeLog	2016-08-21 13:36:48 UTC (rev 204693)
+++ trunk/LayoutTests/ChangeLog	2016-08-21 15:41:20 UTC (rev 204694)
@@ -1,5 +1,20 @@
 2016-08-21  Youenn Fablet  <[email protected]>
 
+        [Mac] Rebase some failing XMLHttpRequest tests
+        https://bugs.webkit.org/show_bug.cgi?id=161036
+
+        Unreviewed.
+
+        * TestExpectations: Unmarking rebased tests as failing.
+        * platform/ios-simulator/imported/w3c/web-platform-tests/XMLHttpRequest/send-entity-body-empty-expected.txt: Copied from LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-entity-body-empty-expected.txt.
+        * platform/ios-simulator/imported/w3c/web-platform-tests/XMLHttpRequest/send-entity-body-none-expected.txt: Copied from LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-entity-body-none-expected.txt.
+        * platform/ios-simulator/imported/w3c/web-platform-tests/XMLHttpRequest/setrequestheader-content-type-expected.txt: Copied from LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/setrequestheader-content-type-expected.txt.
+        * platform/mac/imported/w3c/web-platform-tests/XMLHttpRequest/send-entity-body-empty-expected.txt: Copied from LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-entity-body-empty-expected.txt.
+        * platform/mac/imported/w3c/web-platform-tests/XMLHttpRequest/send-entity-body-none-expected.txt: Copied from LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/send-entity-body-none-expected.txt.
+        * platform/mac/imported/w3c/web-platform-tests/XMLHttpRequest/setrequestheader-content-type-expected.txt: Copied from LayoutTests/imported/w3c/web-platform-tests/XMLHttpRequest/setrequestheader-content-type-expected.txt.
+
+2016-08-21  Youenn Fablet  <[email protected]>
+
         cross-origin requests redirected fail or drop author requested headers
         https://bugs.webkit.org/show_bug.cgi?id=112471
 

Modified: trunk/LayoutTests/TestExpectations (204693 => 204694)


--- trunk/LayoutTests/TestExpectations	2016-08-21 13:36:48 UTC (rev 204693)
+++ trunk/LayoutTests/TestExpectations	2016-08-21 15:41:20 UTC (rev 204694)
@@ -338,9 +338,6 @@
 imported/w3c/web-platform-tests/XMLHttpRequest/send-redirect-to-non-cors.htm [ Skip ]
 # Failing assertion with dynamic message
 imported/w3c/web-platform-tests/XMLHttpRequest/responsexml-document-properties.htm [ Failure ]
-webkit.org/b/161003 imported/w3c/web-platform-tests/XMLHttpRequest/setrequestheader-content-type.htm [ Failure ]
-webkit.org/b/161003 imported/w3c/web-platform-tests/XMLHttpRequest/send-entity-body-none.htm [ Failure ]
-webkit.org/b/161003 imported/w3c/web-platform-tests/XMLHttpRequest/send-entity-body-empty.htm  [ Failure ]
 
 webkit.org/b/160510 http/tests/fetch/fetch-in-worker-crash.html [ Failure Crash Pass ]
 imported/w3c/web-platform-tests/fetch/api/request/request-cache.html [ Skip ]

Added: trunk/LayoutTests/platform/ios-simulator/imported/w3c/web-platform-tests/XMLHttpRequest/send-entity-body-empty-expected.txt (0 => 204694)


--- trunk/LayoutTests/platform/ios-simulator/imported/w3c/web-platform-tests/XMLHttpRequest/send-entity-body-empty-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/imported/w3c/web-platform-tests/XMLHttpRequest/send-entity-body-empty-expected.txt	2016-08-21 15:41:20 UTC (rev 204694)
@@ -0,0 +1,5 @@
+
+PASS XMLHttpRequest: send("") - empty entity body (POST) 
+PASS XMLHttpRequest: send("") - empty entity body (PUT) 
+FAIL XMLHttpRequest: send("") - empty entity body (HEAD) assert_equals: expected "NO" but got "0"
+

Added: trunk/LayoutTests/platform/ios-simulator/imported/w3c/web-platform-tests/XMLHttpRequest/send-entity-body-none-expected.txt (0 => 204694)


--- trunk/LayoutTests/platform/ios-simulator/imported/w3c/web-platform-tests/XMLHttpRequest/send-entity-body-none-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/imported/w3c/web-platform-tests/XMLHttpRequest/send-entity-body-none-expected.txt	2016-08-21 15:41:20 UTC (rev 204694)
@@ -0,0 +1,8 @@
+
+PASS No content type (POST) 
+PASS No content type (PUT) 
+FAIL No content type (HEAD) assert_equals: expected "NO" but got "0"
+PASS Explicit content type (POST) 
+PASS Explicit content type (PUT) 
+FAIL Explicit content type (HEAD) assert_equals: expected "NO" but got "0"
+

Added: trunk/LayoutTests/platform/ios-simulator/imported/w3c/web-platform-tests/XMLHttpRequest/setrequestheader-content-type-expected.txt (0 => 204694)


--- trunk/LayoutTests/platform/ios-simulator/imported/w3c/web-platform-tests/XMLHttpRequest/setrequestheader-content-type-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/imported/w3c/web-platform-tests/XMLHttpRequest/setrequestheader-content-type-expected.txt	2016-08-21 15:41:20 UTC (rev 204694)
@@ -0,0 +1,37 @@
+CONSOLE MESSAGE: line 26: ArrayBuffer is deprecated in XMLHttpRequest.send(). Use ArrayBufferView instead.
+CONSOLE MESSAGE: line 26: ArrayBuffer is deprecated in XMLHttpRequest.send(). Use ArrayBufferView instead.
+CONSOLE MESSAGE: line 26: ArrayBuffer is deprecated in XMLHttpRequest.send(). Use ArrayBufferView instead.
+
+PASS setRequestHeader("") sends a blank string 
+PASS setRequestHeader(" ") sends the string " " 
+PASS setRequestHeader(null) sends the string "null" 
+PASS setRequestHeader(undefined) sends the string "undefined" 
+PASS String request has correct default Content-Type of "text/plain;charset=UTF-8" 
+PASS String request keeps setRequestHeader() Content-Type, with charset adjusted to UTF-8 
+PASS XML Document request respects setRequestHeader("") 
+PASS XML Document request has correct default Content-Type of "application/xml;charset=UTF-8" 
+FAIL XML Document request keeps setRequestHeader() Content-Type, with charset adjusted to UTF-8 assert_equals: expected "content-type: application/xhtml+xml;charset=utf-8" but got "content-type: application/xhtml+xml;charset=ascii"
+PASS HTML Document request respects setRequestHeader("") 
+PASS HTML Document request has correct default Content-Type of "text/html;charset=UTF-8" 
+FAIL HTML Document request keeps setRequestHeader() Content-Type, with charset adjusted to UTF-8 assert_equals: expected "content-type: text/html+junk;charset=utf-8" but got "content-type: text/html+junk;charset=ascii"
+PASS Blob request respects setRequestHeader("") to be specified 
+FAIL Blob request with unset type sends no Content-Type without setRequestHeader() call assert_equals: expected "" but got "content-type: "
+PASS Blob request with unset type keeps setRequestHeader() Content-Type and charset 
+PASS Blob request with set type uses that it for Content-Type unless setRequestHeader() 
+PASS Blob request with set type keeps setRequestHeader() Content-Type and charset 
+PASS ArrayBuffer request respects setRequestHeader("") 
+FAIL ArrayBuffer request sends no Content-Type without setRequestHeader() call assert_equals: expected "" but got "content-type: application/x-www-form-urlencoded"
+PASS ArrayBuffer request keeps setRequestHeader() Content-Type and charset 
+PASS ArrayBufferView request respects setRequestHeader("") 
+FAIL ArrayBufferView request sends no Content-Type without setRequestHeader() call assert_equals: expected "" but got "content-type: application/x-www-form-urlencoded"
+PASS ArrayBufferView request keeps setRequestHeader() Content-Type and charset 
+PASS FormData request respects setRequestHeader("") 
+PASS FormData request has correct default Content-Type of "multipart/form-data;boundary=_" 
+PASS FormData request keeps setRequestHeader() Content-Type and charset 
+FAIL URLSearchParams respects setRequestHeader("") assert_unreached: Skipping test as could not create a URLSearchParams;  Reached unreachable code
+FAIL URLSearchParams request has correct default Content-Type of "application/x-www-form-urlencoded;charset=UTF-8" assert_unreached: Skipping test as could not create a URLSearchParams;  Reached unreachable code
+FAIL URLSearchParams request keeps setRequestHeader() Content-Type, with charset adjusted to UTF-8 assert_unreached: Skipping test as could not create a URLSearchParams;  Reached unreachable code
+PASS ReadableStream request respects setRequestHeader("") 
+FAIL ReadableStream request with under type sends no Content-Type without setRequestHeader() call assert_equals: expected "" but got "content-type: text/plain;charset=utf-8"
+FAIL ReadableStream request keeps setRequestHeader() Content-Type and charset assert_equals: expected "content-type: application/xml;charset=ascii" but got "content-type: application/xml;charset=utf-8"
+

Added: trunk/LayoutTests/platform/mac/imported/w3c/web-platform-tests/XMLHttpRequest/send-entity-body-empty-expected.txt (0 => 204694)


--- trunk/LayoutTests/platform/mac/imported/w3c/web-platform-tests/XMLHttpRequest/send-entity-body-empty-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/mac/imported/w3c/web-platform-tests/XMLHttpRequest/send-entity-body-empty-expected.txt	2016-08-21 15:41:20 UTC (rev 204694)
@@ -0,0 +1,5 @@
+
+PASS XMLHttpRequest: send("") - empty entity body (POST) 
+PASS XMLHttpRequest: send("") - empty entity body (PUT) 
+FAIL XMLHttpRequest: send("") - empty entity body (HEAD) assert_equals: expected "NO" but got "0"
+

Added: trunk/LayoutTests/platform/mac/imported/w3c/web-platform-tests/XMLHttpRequest/send-entity-body-none-expected.txt (0 => 204694)


--- trunk/LayoutTests/platform/mac/imported/w3c/web-platform-tests/XMLHttpRequest/send-entity-body-none-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/mac/imported/w3c/web-platform-tests/XMLHttpRequest/send-entity-body-none-expected.txt	2016-08-21 15:41:20 UTC (rev 204694)
@@ -0,0 +1,8 @@
+
+PASS No content type (POST) 
+PASS No content type (PUT) 
+FAIL No content type (HEAD) assert_equals: expected "NO" but got "0"
+PASS Explicit content type (POST) 
+PASS Explicit content type (PUT) 
+FAIL Explicit content type (HEAD) assert_equals: expected "NO" but got "0"
+

Added: trunk/LayoutTests/platform/mac/imported/w3c/web-platform-tests/XMLHttpRequest/setrequestheader-content-type-expected.txt (0 => 204694)


--- trunk/LayoutTests/platform/mac/imported/w3c/web-platform-tests/XMLHttpRequest/setrequestheader-content-type-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/platform/mac/imported/w3c/web-platform-tests/XMLHttpRequest/setrequestheader-content-type-expected.txt	2016-08-21 15:41:20 UTC (rev 204694)
@@ -0,0 +1,37 @@
+CONSOLE MESSAGE: line 26: ArrayBuffer is deprecated in XMLHttpRequest.send(). Use ArrayBufferView instead.
+CONSOLE MESSAGE: line 26: ArrayBuffer is deprecated in XMLHttpRequest.send(). Use ArrayBufferView instead.
+CONSOLE MESSAGE: line 26: ArrayBuffer is deprecated in XMLHttpRequest.send(). Use ArrayBufferView instead.
+
+PASS setRequestHeader("") sends a blank string 
+PASS setRequestHeader(" ") sends the string " " 
+PASS setRequestHeader(null) sends the string "null" 
+PASS setRequestHeader(undefined) sends the string "undefined" 
+PASS String request has correct default Content-Type of "text/plain;charset=UTF-8" 
+PASS String request keeps setRequestHeader() Content-Type, with charset adjusted to UTF-8 
+PASS XML Document request respects setRequestHeader("") 
+PASS XML Document request has correct default Content-Type of "application/xml;charset=UTF-8" 
+FAIL XML Document request keeps setRequestHeader() Content-Type, with charset adjusted to UTF-8 assert_equals: expected "content-type: application/xhtml+xml;charset=utf-8" but got "content-type: application/xhtml+xml;charset=ascii"
+PASS HTML Document request respects setRequestHeader("") 
+PASS HTML Document request has correct default Content-Type of "text/html;charset=UTF-8" 
+FAIL HTML Document request keeps setRequestHeader() Content-Type, with charset adjusted to UTF-8 assert_equals: expected "content-type: text/html+junk;charset=utf-8" but got "content-type: text/html+junk;charset=ascii"
+PASS Blob request respects setRequestHeader("") to be specified 
+FAIL Blob request with unset type sends no Content-Type without setRequestHeader() call assert_equals: expected "" but got "content-type: "
+PASS Blob request with unset type keeps setRequestHeader() Content-Type and charset 
+PASS Blob request with set type uses that it for Content-Type unless setRequestHeader() 
+PASS Blob request with set type keeps setRequestHeader() Content-Type and charset 
+PASS ArrayBuffer request respects setRequestHeader("") 
+FAIL ArrayBuffer request sends no Content-Type without setRequestHeader() call assert_equals: expected "" but got "content-type: application/x-www-form-urlencoded"
+PASS ArrayBuffer request keeps setRequestHeader() Content-Type and charset 
+PASS ArrayBufferView request respects setRequestHeader("") 
+FAIL ArrayBufferView request sends no Content-Type without setRequestHeader() call assert_equals: expected "" but got "content-type: application/x-www-form-urlencoded"
+PASS ArrayBufferView request keeps setRequestHeader() Content-Type and charset 
+PASS FormData request respects setRequestHeader("") 
+PASS FormData request has correct default Content-Type of "multipart/form-data;boundary=_" 
+PASS FormData request keeps setRequestHeader() Content-Type and charset 
+FAIL URLSearchParams respects setRequestHeader("") assert_unreached: Skipping test as could not create a URLSearchParams;  Reached unreachable code
+FAIL URLSearchParams request has correct default Content-Type of "application/x-www-form-urlencoded;charset=UTF-8" assert_unreached: Skipping test as could not create a URLSearchParams;  Reached unreachable code
+FAIL URLSearchParams request keeps setRequestHeader() Content-Type, with charset adjusted to UTF-8 assert_unreached: Skipping test as could not create a URLSearchParams;  Reached unreachable code
+PASS ReadableStream request respects setRequestHeader("") 
+FAIL ReadableStream request with under type sends no Content-Type without setRequestHeader() call assert_equals: expected "" but got "content-type: text/plain;charset=utf-8"
+FAIL ReadableStream request keeps setRequestHeader() Content-Type and charset assert_equals: expected "content-type: application/xml;charset=ascii" but got "content-type: application/xml;charset=utf-8"
+
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to