Title: [260624] trunk/LayoutTests
- Revision
- 260624
- Author
- [email protected]
- Date
- 2020-04-24 00:59:30 -0700 (Fri, 24 Apr 2020)
Log Message
Import fetch/stale-while-revalidate/fetch.html
https://bugs.webkit.org/show_bug.cgi?id=210905
Patch by Rob Buis <[email protected]> on 2020-04-24
Reviewed by Youenn Fablet.
LayoutTests/imported/w3c:
Import fetch/stale-while-revalidate/fetch.html to try to fix
flakiness (see https://bugs.webkit.org/show_bug.cgi?id=207230).
* web-platform-tests/fetch/stale-while-revalidate/fetch.html:
LayoutTests:
This test should not be flaky anymore.
* platform/ios/TestExpectations:
* platform/mac/TestExpectations:
Modified Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (260623 => 260624)
--- trunk/LayoutTests/ChangeLog 2020-04-24 06:57:48 UTC (rev 260623)
+++ trunk/LayoutTests/ChangeLog 2020-04-24 07:59:30 UTC (rev 260624)
@@ -1,3 +1,15 @@
+2020-04-24 Rob Buis <[email protected]>
+
+ Import fetch/stale-while-revalidate/fetch.html
+ https://bugs.webkit.org/show_bug.cgi?id=210905
+
+ Reviewed by Youenn Fablet.
+
+ This test should not be flaky anymore.
+
+ * platform/ios/TestExpectations:
+ * platform/mac/TestExpectations:
+
2020-04-23 Lauro Moura <[email protected]>
Use shouldRejectWithErrorName after r260579.
Modified: trunk/LayoutTests/imported/w3c/ChangeLog (260623 => 260624)
--- trunk/LayoutTests/imported/w3c/ChangeLog 2020-04-24 06:57:48 UTC (rev 260623)
+++ trunk/LayoutTests/imported/w3c/ChangeLog 2020-04-24 07:59:30 UTC (rev 260624)
@@ -1,3 +1,15 @@
+2020-04-24 Rob Buis <[email protected]>
+
+ Import fetch/stale-while-revalidate/fetch.html
+ https://bugs.webkit.org/show_bug.cgi?id=210905
+
+ Reviewed by Youenn Fablet.
+
+ Import fetch/stale-while-revalidate/fetch.html to try to fix
+ flakiness (see https://bugs.webkit.org/show_bug.cgi?id=207230).
+
+ * web-platform-tests/fetch/stale-while-revalidate/fetch.html:
+
2020-04-22 Myles C. Maxfield <[email protected]>
Update dom/events/Event-dispatch-redispatch.html from upstream WPT
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/stale-while-revalidate/fetch.html (260623 => 260624)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/stale-while-revalidate/fetch.html 2020-04-24 06:57:48 UTC (rev 260623)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/fetch/stale-while-revalidate/fetch.html 2020-04-24 07:59:30 UTC (rev 260624)
@@ -1,6 +1,6 @@
<!DOCTYPE html>
<meta charset="utf-8">
-<title>Tests Stale While Revalidate is not executed for fetch API</title>
+<title>Tests Stale While Revalidate is executed for fetch API</title>
<script src=""
<script src=""
<script src=""
@@ -17,9 +17,13 @@
var request_token = token();
const response = await fetch(`resources/stale-script.py?token=` + request_token);
+ // Wait until resource is completely fetched to allow caching before next fetch.
+ const body = await response.text();
const response2 = await fetch(`resources/stale-script.py?token=` + request_token);
assert_equals(response.headers.get('Unique-Id'), response2.headers.get('Unique-Id'));
+ const body2 = await response2.text();
+ assert_equals(body, body2);
while(true) {
const revalidation_check = await fetch(`resources/stale-script.py?query&token=` + request_token);
Modified: trunk/LayoutTests/platform/ios/TestExpectations (260623 => 260624)
--- trunk/LayoutTests/platform/ios/TestExpectations 2020-04-24 06:57:48 UTC (rev 260623)
+++ trunk/LayoutTests/platform/ios/TestExpectations 2020-04-24 07:59:30 UTC (rev 260624)
@@ -3422,8 +3422,6 @@
webkit.org/b/207225 imported/w3c/web-platform-tests/service-workers/service-worker/extendable-event-waituntil.https.html [ Pass Failure ]
-webkit.org/b/207230 imported/w3c/web-platform-tests/fetch/stale-while-revalidate/fetch.html [ Pass Failure ]
-
# Locale-specific shaping is only enabled on certain OSes.
webkit.org/b/77568 fast/text/locale-shaping.html [ ImageOnlyFailure ]
webkit.org/b/77568 fast/text/locale-shaping-complex.html [ ImageOnlyFailure ]
Modified: trunk/LayoutTests/platform/mac/TestExpectations (260623 => 260624)
--- trunk/LayoutTests/platform/mac/TestExpectations 2020-04-24 06:57:48 UTC (rev 260623)
+++ trunk/LayoutTests/platform/mac/TestExpectations 2020-04-24 07:59:30 UTC (rev 260624)
@@ -1869,8 +1869,6 @@
webkit.org/b/207226 http/tests/misc/image-blocked-src-change.html [ Pass Failure ]
-webkit.org/b/207230 imported/w3c/web-platform-tests/fetch/stale-while-revalidate/fetch.html [ Pass Failure ]
-
webkit.org/b/206908 imported/w3c/web-platform-tests/hr-time/basic.any.html [ Pass Failure ]
webkit.org/b/207306 inspector/animation/lifecycle-css-animation.html [ Pass Failure ]
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes