Unreviewed, rebaseline a few tests after r220779.
authorcdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 16 Aug 2017 15:43:26 +0000 (15:43 +0000)
committercdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 16 Aug 2017 15:43:26 +0000 (15:43 +0000)
* http/tests/blink/sendbeacon/beacon-same-origin-expected.txt:
* http/wpt/beacon/cors/cors-preflight-arraybufferview-failure.html:
* http/wpt/beacon/cors/cors-preflight-arraybufferview-success.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@220796 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/ChangeLog
LayoutTests/http/tests/blink/sendbeacon/beacon-same-origin-expected.txt
LayoutTests/http/wpt/beacon/cors/cors-preflight-arraybufferview-failure.html
LayoutTests/http/wpt/beacon/cors/cors-preflight-arraybufferview-success.html

index 359db9e..3ed2669 100644 (file)
@@ -1,3 +1,11 @@
+2017-08-16  Chris Dumez  <cdumez@apple.com>
+
+        Unreviewed, rebaseline a few tests after r220779.
+
+        * http/tests/blink/sendbeacon/beacon-same-origin-expected.txt:
+        * http/wpt/beacon/cors/cors-preflight-arraybufferview-failure.html:
+        * http/wpt/beacon/cors/cors-preflight-arraybufferview-success.html:
+
 2017-08-15  Andy Estes  <aestes@apple.com>
 
         [Payment Request] Import test suite from web-platform-tests
index f37bc1a..f07787f 100644 (file)
@@ -16,7 +16,7 @@ PASS
 Sending beacon with type: [object Uint32Array]
 PASS navigator.sendBeacon("resources/save-beacon.php?name=same-origin", payload); is true
 PASS Beacon sent successfully
-PASS Content-Type: application/x-www-form-urlencoded
+PASS Content-Type: application/octet-stream
 PASS Origin: http://127.0.0.1:8000
 PASS Referer: http://127.0.0.1:8000/blink/sendbeacon/beacon-same-origin.html
 PASS Request-Method: POST
index c83acf5..a5aa5bb 100644 (file)
@@ -38,7 +38,7 @@ function testCORSPreflightFailure(what) {
       assert_equals(result['preflight_referer'], document.URL, "Preflight referer header")
       assert_equals(result['preflight_requested_method'], "POST", "Preflight requested method")
       let requested_headers = result['preflight_requested_headers'].toLowerCase()
-      assert_false(requested_headers.includes("content-type"), "Content-Type header is not requested")
+      assert_true(requested_headers.includes("content-type"), "Content-Type header is requested")
       assert_true(requested_headers.includes("referer"), "Referer header is requested")
       assert_true(requested_headers.includes("origin"), "Origin header is requested")
       assert_equals(result['beacon'], 0, "Did not receive beacon")
index 083f91b..78b305f 100644 (file)
@@ -38,7 +38,7 @@ function testCORSPreflightSuccess(what) {
       assert_equals(result['preflight_referer'], document.URL, "Preflight referer header")
       assert_equals(result['preflight_requested_method'], "POST", "Preflight requested method")
       let requested_headers = result['preflight_requested_headers'].toLowerCase()
-      assert_false(requested_headers.includes("content-type"), "Content-Type header is not requested")
+      assert_true(requested_headers.includes("content-type"), "Content-Type header is requested")
       assert_true(requested_headers.includes("referer"), "Referer header is requested")
       assert_true(requested_headers.includes("origin"), "Origin header is requested")
       assert_equals(result['beacon'], 1, "Received beacon")