Bug 1462609 [wpt PR 11013] - Server-Timing: clean up service-worker test, a=testonly
authorYoav Weiss <yoav@yoav.ws>
Sat, 19 May 2018 20:20:34 +0000
changeset 419056 baaa6b51de434025db3f38e6fc27b706169b607f
parent 419055 513231568d6ee537bafe7576681f36c5dc7b6cf7
child 419057 6ea57382bd997d9c7abe3630e740b86ce64eb45c
push id103445
push userwptsync@mozilla.com
push dateSun, 20 May 2018 19:24:01 +0000
treeherdermozilla-inbound@b9fa7d4d5504 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1462609, 11013
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 1462609 [wpt PR 11013] - Server-Timing: clean up service-worker test, a=testonly Automatic update from web-platform-testsMerge pull request #11013 from cvazac/master Server-Timing: clean up service-worker test -- wpt-commits: 5478850d0df6d1d0f2e8c10f77f62d3c6e2dd589 wpt-pr: 11013
testing/web-platform/meta/MANIFEST.json
testing/web-platform/tests/server-timing/sw.js
--- a/testing/web-platform/meta/MANIFEST.json
+++ b/testing/web-platform/meta/MANIFEST.json
@@ -518752,69 +518752,69 @@
    "cb4bf3851c4064cb650366da300998faf07e37fc",
    "reftest"
   ],
   "css/css-shapes/spec-examples/shape-outside-008.html": [
    "5a9f340648d85f2fdd3cd3fe74b2e145fbc1a54a",
    "reftest"
   ],
   "css/css-shapes/spec-examples/shape-outside-010.html": [
-   "7baf8e86ee451f08ab18e03000d64a529a2824d0",
+   "929078a33a23f1d10ce9d0f89016725f233e133e",
    "testharness"
   ],
   "css/css-shapes/spec-examples/shape-outside-011.html": [
-   "3620cce0bf178d1bc67faa372406c50b3b07c086",
+   "af178c8f965ce5f48673a4b67aa15f4974a09a2a",
    "testharness"
   ],
   "css/css-shapes/spec-examples/shape-outside-012.html": [
-   "1db1130bb5f2f5a8a12bab7ec5a9fa0c40165be4",
+   "67e23bdb9873267a12790cf4cd60b704f423f8a5",
    "testharness"
   ],
   "css/css-shapes/spec-examples/shape-outside-013.html": [
-   "155d33ea047169acdc6b29b4716fa7237b133d51",
+   "7bd3ac39a58324354fa2c36fa98b151ce1292c85",
    "testharness"
   ],
   "css/css-shapes/spec-examples/shape-outside-014.html": [
-   "ab449eda8aa379e0149c759e9dcd9a866c1ed3db",
+   "e87ca4ce9f46103091139fda326452e4c66b1980",
    "testharness"
   ],
   "css/css-shapes/spec-examples/shape-outside-015.html": [
-   "f0ce9eb24d3b6bf8b8aa03f5cd02f82acfcdf8cd",
+   "d30174b5995f0831f2535a7a817f6ad5af5a6ba8",
    "testharness"
   ],
   "css/css-shapes/spec-examples/shape-outside-016.html": [
-   "2ea1538bff7b1825cdd63ea6510435c7aa52aebc",
+   "585b41b91bd9d452b616f87e81c8a47576299719",
    "testharness"
   ],
   "css/css-shapes/spec-examples/shape-outside-017.html": [
-   "366e0ad5c7ae7f2663f9c6bc6c0eba51e299f120",
+   "9593d57329acf1998d4b5ada5a230f3fed0d3c32",
    "testharness"
   ],
   "css/css-shapes/spec-examples/shape-outside-018.html": [
-   "08c9fd21d74ae52b98581c7d013275c30d49e18c",
+   "c81ef4303d00a4f490f8cada68d8a6449daa56c3",
    "testharness"
   ],
   "css/css-shapes/spec-examples/shape-outside-019.html": [
-   "46de7762b9a9c29a0aa798775cea5dfb17bbf5a0",
+   "3eaf5c74cfbbb676b3f2ccae55a96d3999ac890b",
    "testharness"
   ],
   "css/css-shapes/spec-examples/support/circle-no-shadow.png": [
    "456a5b15b1866f5a169531639b0cd71c06b31b25",
    "support"
   ],
   "css/css-shapes/spec-examples/support/circle-shadow.png": [
    "6a149114684e9f3b40fb8c2c9452e7862b573c7e",
    "support"
   ],
   "css/css-shapes/spec-examples/support/rounded-triangle.svg": [
    "ef31c9d31d9aa7d27b94cacb7c3b5522c357ea8c",
    "support"
   ],
   "css/css-shapes/spec-examples/support/spec-example-utils.js": [
-   "137b347da1085eb0042f1d2fc017694ff528180b",
+   "de748e548169b360cf0d31a5499d766dd8bc2a7d",
    "support"
   ],
   "css/css-shapes/support/1x1-green.png": [
    "51e7b6974a09eda6cb31337717c5eaeb9c44b443",
    "support"
   ],
   "css/css-shapes/support/1x1-lime.png": [
    "b040eb633a35c0648ad72a2902361faf25bc419d",
@@ -532024,17 +532024,17 @@
    "4db1d84665ccf75d993d877eb08574b1fa7d0203",
    "testharness"
   ],
   "css/css-transitions/transitions-animatable-properties-01.html": [
    "538b95863c061da60e95c1a61ef9dc93da007aa4",
    "testharness"
   ],
   "css/css-transitions/zero-duration-multiple-transition.html": [
-   "7db6bc8641a6a2eb5f1ee1fdbc9b6215a0462bbc",
+   "bcbcd704e617cf1bb057a67d9ff5635ef6ebda7e",
    "testharness"
   ],
   "css/css-typed-om/CSSMatrixComponent-DOMMatrix-mutable.html": [
    "f6056e2480829c7aa9885673d332496faf7777b5",
    "testharness"
   ],
   "css/css-typed-om/OWNERS": [
    "f5f0861ac3382b3b12008133c1334f812a5a2caa",
@@ -603904,17 +603904,17 @@
    "10f756bbf749b7ad8f7c6eb4efe752ee79c44b4a",
    "testharness"
   ],
   "server-timing/service_worker_idl.html": [
    "cb5ea3136399f88fb6c4e8071ad8e3b7ccebb242",
    "testharness"
   ],
   "server-timing/sw.js": [
-   "0c12328f152814e2f0bde7fe026cf12c8ea77ff0",
+   "47e2601a903e34c2c8afc90e544026e8c6d11d05",
    "support"
   ],
   "server-timing/test_server_timing.html": [
    "7c778ca856e5cff0bbc785f59c9ccf1ec86456fb",
    "testharness"
   ],
   "server-timing/test_server_timing.html.sub.headers": [
    "77000d65537ef522a3471002118a120d2faf296a",
@@ -606404,17 +606404,17 @@
    "f728caa68d0112033fb599880404811b17596396",
    "testharness"
   ],
   "shadow-dom/event-with-related-target.html": [
    "572ddb9624ba8871d93cb13fad830f1acc8d4cac",
    "testharness"
   ],
   "shadow-dom/form-control-form-attribute.html": [
-   "79b4a278f0e35646cfdffeebf8f0523e2772bc9b",
+   "7726f8fe9056d3d5c9fb7b963c4bc6e777a8256a",
    "testharness"
   ],
   "shadow-dom/historical.html": [
    "1469992db34a25397dc3d5a5e1eb600e8afcf71b",
    "testharness"
   ],
   "shadow-dom/layout-slot-no-longer-assigned.html": [
    "224a688177941774e0bd3be74cb4aef20160d903",
@@ -615620,17 +615620,17 @@
    "6614b5b0febd718a94bbec110568b9aaf80dc9eb",
    "testharness"
   ],
   "webrtc/RTCPeerConnection-setRemoteDescription-tracks.https.html": [
    "16fe3b155e55d1b66181788c93e570b36e5cc67d",
    "testharness"
   ],
   "webrtc/RTCPeerConnection-setRemoteDescription.html": [
-   "59f826d4d23cd52f15f3940cc3abe66933e91037",
+   "8a3e2f1e157e1ceed18ac66e57040a941b658f24",
    "testharness"
   ],
   "webrtc/RTCPeerConnection-track-stats.https.html": [
    "c31d22b6d9322d6d9b12414682d04137ad8cfb5d",
    "testharness"
   ],
   "webrtc/RTCPeerConnectionIceEvent-constructor.html": [
    "f273bd7fdfc883a15e8fb16fef5309061254c6cc",
--- a/testing/web-platform/tests/server-timing/sw.js
+++ b/testing/web-platform/tests/server-timing/sw.js
@@ -1,10 +1,19 @@
 importScripts('/resources/testharness.js')
 
-promise_test(async (test) => {
-  return fetch('./sw.js').then(function(response) {
-    assert_not_equals(typeof performance.getEntriesByName(response.url)[0].serverTiming,
-      'undefined',
-      'An instance of `PerformanceResourceTiming` should have a `serverTiming` attribute in the Service Worker context.')
-    done()
+promise_test((test) => {
+  return fetch('./sw.js').then((response) => {
+    return new Promise((resolve, reject) => {
+      step_timeout(() => {
+        const entry = performance.getEntriesByName(response.url)[0]
+        if (!entry) {
+          reject('no entry: ' + response.url)
+        }
+
+        assert_not_equals(typeof entry.serverTiming,
+          'undefined',
+          'An instance of `PerformanceResourceTiming` should have a `serverTiming` attribute in the Service Worker context.')
+        resolve()
+      }, 250)
+    })
   })
 })