Enable wpt fetch tests on WPE.
authorMs2ger@igalia.com <Ms2ger@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 16 Dec 2017 19:05:08 +0000 (19:05 +0000)
committerMs2ger@igalia.com <Ms2ger@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 16 Dec 2017 19:05:08 +0000 (19:05 +0000)
https://bugs.webkit.org/show_bug.cgi?id=180905

Unreviewed test gardening.

New expectations are copied from GTK.

* TestExpectations: mark test as flaky on all platforms.
* platform/wpe/TestExpectations:
* platform/wpe/imported/w3c/web-platform-tests/fetch/api/redirect/redirect-method-expected.txt: Added.
* platform/wpe/imported/w3c/web-platform-tests/fetch/api/redirect/redirect-method-worker-expected.txt: Added.
* platform/wpe/imported/w3c/web-platform-tests/fetch/http-cache/cc-request-expected.txt: Added.

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

LayoutTests/ChangeLog
LayoutTests/TestExpectations
LayoutTests/platform/wpe/TestExpectations
LayoutTests/platform/wpe/imported/w3c/web-platform-tests/fetch/api/redirect/redirect-method-expected.txt [new file with mode: 0644]
LayoutTests/platform/wpe/imported/w3c/web-platform-tests/fetch/api/redirect/redirect-method-worker-expected.txt [new file with mode: 0644]
LayoutTests/platform/wpe/imported/w3c/web-platform-tests/fetch/http-cache/cc-request-expected.txt [new file with mode: 0644]

index c44f2b9..86ef3e4 100644 (file)
@@ -1,3 +1,18 @@
+2017-12-16  Ms2ger  <Ms2ger@igalia.com>
+
+        Enable wpt fetch tests on WPE.
+        https://bugs.webkit.org/show_bug.cgi?id=180905
+
+        Unreviewed test gardening.
+
+        New expectations are copied from GTK.
+
+        * TestExpectations: mark test as flaky on all platforms.
+        * platform/wpe/TestExpectations:
+        * platform/wpe/imported/w3c/web-platform-tests/fetch/api/redirect/redirect-method-expected.txt: Added.
+        * platform/wpe/imported/w3c/web-platform-tests/fetch/api/redirect/redirect-method-worker-expected.txt: Added.
+        * platform/wpe/imported/w3c/web-platform-tests/fetch/http-cache/cc-request-expected.txt: Added.
+
 2017-12-16  Youenn Fablet  <youenn@apple.com>
 
         Skip SharedWorker and NavigationPreload service worker tests
index f7a5002..e3ff94b 100644 (file)
@@ -1647,6 +1647,8 @@ webkit.org/b/179287 http/wpt/web-animations/interfaces/Animation/startTime.html
 
 webkit.org/b/177440 imported/w3c/web-platform-tests/html/browsers/origin/relaxing-the-same-origin-restriction/document_domain_setter_null.tentative.html [ Pass Failure ]
 
+webkit.org/b/157068 [ Debug ] imported/w3c/web-platform-tests/fetch/nosniff/importscripts.html [ Pass Crash ]
+
 # Application Manifest tests
 webkit.org/b/153152 http/tests/security/contentSecurityPolicy/manifest-src-allowed.html [ Skip ]
 webkit.org/b/153152 http/tests/security/contentSecurityPolicy/manifest-src-blocked.html [ Skip ]
index b78d95e..59911ee 100644 (file)
@@ -204,7 +204,6 @@ Bug(WPE) imported/mozilla [ Skip ]
 Bug(WPE) imported/w3c/css [ Skip ]
 
 
-Bug(WPE) imported/w3c/web-platform-tests/fetch [ Skip ]
 Bug(WPE) imported/w3c/web-platform-tests/mediacapture-fromelement [ Skip ]
 Bug(WPE) imported/w3c/web-platform-tests/mediacapture-streams [ Skip ]
 Bug(WPE) imported/w3c/web-platform-tests/media-source [ Skip ]
@@ -274,6 +273,18 @@ imported/w3c/web-platform-tests/encoding [ Pass ]
 webkit.org/b/179881 imported/w3c/web-platform-tests/encoding/eof-shift_jis.html [ ImageOnlyFailure ]
 
 
+# WPT: fetch
+# ==========
+
+# Expectations replated to service worker support
+# -----------------------------------------------
+webkit.org/b/178576 imported/w3c/web-platform-tests/fetch/api/abort/serviceworker-intercepted.https.html [ Failure ]
+webkit.org/b/178576 imported/w3c/web-platform-tests/fetch/api/policies/referrer-no-referrer-service-worker.https.html [ Failure ]
+webkit.org/b/178576 imported/w3c/web-platform-tests/fetch/api/policies/referrer-origin-service-worker.https.html [ Failure ]
+webkit.org/b/178576 imported/w3c/web-platform-tests/fetch/api/policies/referrer-origin-when-cross-origin-service-worker.https.html [ Failure ]
+webkit.org/b/178576 imported/w3c/web-platform-tests/fetch/api/policies/referrer-unsafe-url-service-worker.https.html [ Failure ]
+
+
 # WPT: FileAPI
 # ============
 imported/w3c/web-platform-tests/FileAPI [ Pass ]
diff --git a/LayoutTests/platform/wpe/imported/w3c/web-platform-tests/fetch/api/redirect/redirect-method-expected.txt b/LayoutTests/platform/wpe/imported/w3c/web-platform-tests/fetch/api/redirect/redirect-method-expected.txt
new file mode 100644 (file)
index 0000000..1ad21fa
--- /dev/null
@@ -0,0 +1,15 @@
+
+PASS Response.redirected should be false on not-redirected responses 
+PASS Redirect 301 with GET 
+PASS Redirect 301 with POST 
+PASS Redirect 301 with HEAD 
+PASS Redirect 302 with GET 
+PASS Redirect 302 with POST 
+PASS Redirect 302 with HEAD 
+PASS Redirect 303 with GET 
+PASS Redirect 303 with POST 
+PASS Redirect 303 with HEAD 
+PASS Redirect 307 with GET 
+PASS Redirect 307 with POST 
+PASS Redirect 307 with HEAD 
+
diff --git a/LayoutTests/platform/wpe/imported/w3c/web-platform-tests/fetch/api/redirect/redirect-method-worker-expected.txt b/LayoutTests/platform/wpe/imported/w3c/web-platform-tests/fetch/api/redirect/redirect-method-worker-expected.txt
new file mode 100644 (file)
index 0000000..1ad21fa
--- /dev/null
@@ -0,0 +1,15 @@
+
+PASS Response.redirected should be false on not-redirected responses 
+PASS Redirect 301 with GET 
+PASS Redirect 301 with POST 
+PASS Redirect 301 with HEAD 
+PASS Redirect 302 with GET 
+PASS Redirect 302 with POST 
+PASS Redirect 302 with HEAD 
+PASS Redirect 303 with GET 
+PASS Redirect 303 with POST 
+PASS Redirect 303 with HEAD 
+PASS Redirect 307 with GET 
+PASS Redirect 307 with POST 
+PASS Redirect 307 with HEAD 
+
diff --git a/LayoutTests/platform/wpe/imported/w3c/web-platform-tests/fetch/http-cache/cc-request-expected.txt b/LayoutTests/platform/wpe/imported/w3c/web-platform-tests/fetch/http-cache/cc-request-expected.txt
new file mode 100644 (file)
index 0000000..b7b270d
--- /dev/null
@@ -0,0 +1,14 @@
+
+PASS HTTP cache doesn't use aged but fresh response when request contains Cache-Control: max-age=0. 
+FAIL HTTP cache doesn't use aged but fresh response when request contains Cache-Control: max-age=1. assert_equals: Response used expected 2 but got 1
+FAIL HTTP cache doesn't use fresh response with Age header when request contains Cache-Control: max-age that is greater than remaining freshness. assert_equals: Response used expected 2 but got 1
+PASS HTTP cache does use aged stale response when request contains Cache-Control: max-stale that permits its use. 
+PASS HTTP cache does reuse stale response with Age header when request contains Cache-Control: max-stale that permits its use. 
+FAIL HTTP cache doesn't reuse fresh response when request contains Cache-Control: min-fresh that wants it fresher. assert_equals: Response used expected 2 but got 1
+FAIL HTTP cache doesn't reuse fresh response with Age header when request contains Cache-Control: min-fresh that wants it fresher. assert_equals: Response used expected 2 but got 1
+PASS HTTP cache doesn't reuse fresh response when request contains Cache-Control: no-cache. 
+PASS HTTP cache validates fresh response with Last-Modified when request contains Cache-Control: no-cache. 
+PASS HTTP cache validates fresh response with ETag when request contains Cache-Control: no-cache. 
+FAIL HTTP cache doesn't reuse fresh response when request contains Cache-Control: no-store. assert_equals: Response used expected 2 but got 1
+FAIL HTTP cache generates 504 status code when nothing is in cache and request contains Cache-Control: only-if-cached. assert_equals: Response status expected 504 but got 200
+