Bug 1465023 [wpt PR 11220] - [Fetch] Fix tests for isHistoryNavigation, a=testonly
authorYutaka Hirano <yhirano@google.com>
Wed, 06 Jun 2018 16:26:12 +0000
changeset 422200 40b0534b922cef4f2efd867f172c6f536df28041
parent 422199 6489b0fa1d0384b2b8ca8b8e297a769fa3b0ff33
child 422201 2328200e4c9b7af3ee940d34b091125ebf1fa043
push id34122
push userebalazs@mozilla.com
push dateMon, 11 Jun 2018 09:37:00 +0000
treeherdermozilla-central@9941eb8c3b29 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1465023, 11220
milestone62.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1465023 [wpt PR 11220] - [Fetch] Fix tests for isHistoryNavigation, a=testonly Automatic update from web-platform-testsFetch: fix tests for isHistoryNavigation Follow-up for 8f805ef0b6a3ddb06c0266cc56557d05e36f3a3d. -- wpt-commits: 572605e1e91df6eb2cd5737b74f20f52feb6cb12 wpt-pr: 11220
testing/web-platform/meta/MANIFEST.json
testing/web-platform/tests/fetch/api/request/request-reset-attributes.https.html
testing/web-platform/tests/service-workers/service-worker/fetch-event.https.html
--- a/testing/web-platform/meta/MANIFEST.json
+++ b/testing/web-platform/meta/MANIFEST.json
@@ -559188,17 +559188,17 @@
    "0b9786a3878a361ba8ec3291216d475bd5148541",
    "testharness"
   ],
   "fetch/api/request/request-keepalive.html": [
    "e6c2afd6cef41d358016d4d021b7c3e0e1185704",
    "testharness"
   ],
   "fetch/api/request/request-reset-attributes.https.html": [
-   "1ce3d577ce907b40b7bd23e66db91e77b5557c5a",
+   "868a8a8c31b300795f7ce594037dab4b2e235f48",
    "testharness"
   ],
   "fetch/api/request/request-structure.html": [
    "ac359c239375f34f7704a4594b458ef38f8a82cb",
    "testharness"
   ],
   "fetch/api/request/request-type-attribute-historical.html": [
    "68620f3ea16b7ae1a9f1efde1cd0bb47f1150b9f",
@@ -602060,17 +602060,17 @@
    "6bdea01ca619a894d07364a0485f717b46afe585",
    "manual"
   ],
   "service-workers/service-worker/fetch-event-within-sw.https.html": [
    "0dfff8289762988423eb8fda40ef47884c243427",
    "testharness"
   ],
   "service-workers/service-worker/fetch-event.https.html": [
-   "6f437b4bce24bf25343dcfd90018dfe934ff3d8f",
+   "dfd8525f82292cc3728cc3b1afb2a14e19ef4b43",
    "testharness"
   ],
   "service-workers/service-worker/fetch-frame-resource.https.html": [
    "fec588cba5090da6bb4914c6719b8e4076a57c82",
    "testharness"
   ],
   "service-workers/service-worker/fetch-header-visibility.https.html": [
    "054a581d2585cf34e4f0626870c2a093d53dc09b",
--- a/testing/web-platform/tests/fetch/api/request/request-reset-attributes.https.html
+++ b/testing/web-platform/tests/fetch/api/request/request-reset-attributes.https.html
@@ -34,49 +34,49 @@ promise_test(async (t) => {
       }
       if (reg) {
         await reg.unregister();
       }
     }
   }, 'Request.isReloadNavigation is reset with non-empty RequestInit');
 
 promise_test(async (t) => {
-    const scope = '../resources/blank.html?name=isHistoryNavigation';
+    const scope = 'resources/hello.html?name=isHistoryNavigation';
     let frame;
     let reg;
 
     try {
       reg = await service_worker_unregister_and_register(t, worker, scope);
       await wait_for_state(t, reg.installing, 'activated');
       frame = await with_iframe(scope);
       assert_equals(frame.contentDocument.body.textContent,
-                    'original: false, stored: false');
+                    'old: false, new: false');
       // Use step_timeout(0) to ensure the history entry is created for Blink
       // and WebKit. See https://bugs.webkit.org/show_bug.cgi?id=42861.
       await wait(0);
       await new Promise((resolve) => {
         frame.onload = resolve;
-        frame.src = '../resources/blank.html?ignore';
+        frame.src = 'resources/hello.html?ignore';
       });
       await wait(0);
       await new Promise((resolve) => {
         frame.onload = resolve;
         frame.contentWindow.history.go(-1);
       });
       assert_equals(frame.contentDocument.body.textContent,
-                    'original: true, stored: true');
+                    'old: true, new: false');
     } finally {
       if (frame) {
         frame.remove();
       }
       if (reg) {
         await reg.unregister();
       }
     }
-}, 'Request.IsHistoryNavigation should persist.');
+}, 'Request.isHistoryNavigation is reset with non-empty RequestInit');
 
 promise_test(async (t) => {
     const scope = 'resources/hello.txt?name=mode';
     let frame;
     let reg;
 
     try {
       reg = await service_worker_unregister_and_register(t, worker, scope);
--- a/testing/web-platform/tests/service-workers/service-worker/fetch-event.https.html
+++ b/testing/web-platform/tests/service-workers/service-worker/fetch-event.https.html
@@ -1069,12 +1069,12 @@ promise_test(async (t) => {
     } finally {
       if (frame) {
         frame.remove();
       }
       if (reg) {
         await reg.unregister();
       }
     }
-  }, 'FetchEvent#request.isReloadNavigation is true (POST + history.go(-1))');
+  }, 'FetchEvent#request.isHistoryNavigation is true (POST + history.go(-1))');
 
 </script>
 </body>