Bug 1591642 [wpt PR 19909] - [workers] Opt-in to single-page test feature, a=testonly
authorjugglinmike <mike@mikepennisi.com>
Mon, 04 Nov 2019 11:08:02 +0000
changeset 564708 b628528d442831728b2915f9c9920e74f812277b
parent 564707 01c405eb4d1dbbfc356919d8369943868dfb4ae2
child 564709 637c985f550f2f749e2f8118b385e0ed57438f5b
push id12351
push userffxbld-merge
push dateMon, 02 Dec 2019 11:32:26 +0000
treeherdermozilla-beta@dba4410526a2 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1591642, 19909, 19449
milestone72.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 1591642 [wpt PR 19909] - [workers] Opt-in to single-page test feature, a=testonly Automatic update from web-platform-tests [workers] Opt-in to single-page test feature (#19909) testharness.js was recently extended with an API to explicitly opt-in to the "single page test" feature [1]. As per WPT RFC 28 [2], tests which do not use this API and which do not declare any subtests will soon be reported as a harness error. Update the tests which previously opted in implicitly to use the new API. [1] https://github.com/web-platform-tests/wpt/pull/19449 [2] https://github.com/web-platform-tests/rfcs/blob/master/rfcs/single_test.md -- wpt-commits: 7deec66ec17b5401c4f41293171e7244a2ed552d wpt-pr: 19909 Differential Revision: https://phabricator.services.mozilla.com/D53498
testing/web-platform/tests/workers/constructors/SharedWorker/URLMismatchError.htm
testing/web-platform/tests/workers/interfaces/WorkerGlobalScope/close/incoming-message.html
testing/web-platform/tests/workers/interfaces/WorkerGlobalScope/close/setInterval.html
testing/web-platform/tests/workers/interfaces/WorkerGlobalScope/close/setTimeout.html
testing/web-platform/tests/workers/semantics/multiple-workers/004.html
testing/web-platform/tests/workers/semantics/navigation/001.html
testing/web-platform/tests/workers/shared-worker-name-via-options.html
--- a/testing/web-platform/tests/workers/constructors/SharedWorker/URLMismatchError.htm
+++ b/testing/web-platform/tests/workers/constructors/SharedWorker/URLMismatchError.htm
@@ -1,16 +1,18 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
 <title>Web Workers: SharedWorker - same name, different URL</title>
 <link rel="author" title="Intel" href="http://www.intel.com">
 <script src="/resources/testharness.js"></script>
 <script src="/resources/testharnessreport.js"></script>
 <div id="log"></div>
 <script>
+setup({ single_test: true });
+
 var counter = 0
 function maybeDone() {
   if(counter) {
     done()
   }
   counter++
 }
 
--- a/testing/web-platform/tests/workers/interfaces/WorkerGlobalScope/close/incoming-message.html
+++ b/testing/web-platform/tests/workers/interfaces/WorkerGlobalScope/close/incoming-message.html
@@ -1,14 +1,16 @@
 <!doctype html>
 <title>close() and incoming message</title>
 <script src="/resources/testharness.js"></script>
 <script src="/resources/testharnessreport.js"></script>
 <div id="log"></div>
 <script>
+setup({ single_test: true });
+
 var worker = new Worker('incoming-message.js');
 worker.onmessage = function(e) {
   assert_unreached("Got message");
 };
 worker.onerror = function(e) {
   assert_unreached("Got error");
 };
 worker.postMessage(1);
--- a/testing/web-platform/tests/workers/interfaces/WorkerGlobalScope/close/setInterval.html
+++ b/testing/web-platform/tests/workers/interfaces/WorkerGlobalScope/close/setInterval.html
@@ -1,14 +1,16 @@
 <!doctype html>
 <title>close() and setInterval</title>
 <script src="/resources/testharness.js"></script>
 <script src="/resources/testharnessreport.js"></script>
 <div id="log"></div>
 <script>
+setup({ single_test: true });
+
 var worker = new Worker('setInterval.js');
 worker.onmessage = function(e) {
   assert_unreached("Got message");
 };
 worker.onerror = function(e) {
   assert_unreached("Got error");
 };
 setTimeout(done, 2000);
--- a/testing/web-platform/tests/workers/interfaces/WorkerGlobalScope/close/setTimeout.html
+++ b/testing/web-platform/tests/workers/interfaces/WorkerGlobalScope/close/setTimeout.html
@@ -1,14 +1,16 @@
 <!doctype html>
 <title>close() and setTimeout</title>
 <script src="/resources/testharness.js"></script>
 <script src="/resources/testharnessreport.js"></script>
 <div id="log"></div>
 <script>
+setup({ single_test: true });
+
 var worker = new Worker('setTimeout.js');
 worker.onmessage = function(e) {
   assert_unreached("Got message");
 };
 worker.onerror = function(e) {
   assert_unreached("Got error");
 };
 setTimeout(done, 2000);
--- a/testing/web-platform/tests/workers/semantics/multiple-workers/004.html
+++ b/testing/web-platform/tests/workers/semantics/multiple-workers/004.html
@@ -1,15 +1,17 @@
 <!doctype html>
 <title>shared worker with multiple documents</title>
 <meta name="timeout" content="long">
 <script src="/resources/testharness.js"></script>
 <script src="/resources/testharnessreport.js"></script>
 <div id=log></div>
 <script>
+setup({ single_test: true });
+
 var i = 0;
 var load_count = 0;
 
 var w1 = new SharedWorker('004-2.js', 'x');
 w1.port.onmessage = function(e) {
   i++;
   check_result();
 };
--- a/testing/web-platform/tests/workers/semantics/navigation/001.html
+++ b/testing/web-platform/tests/workers/semantics/navigation/001.html
@@ -3,16 +3,17 @@
 /*
 -->
 <!doctype html>
 <title>navigating</title>
 <script src="/resources/testharness.js"></script>
 <script src="/resources/testharnessreport.js"></script>
 <div id=log></div>
 <script>
+setup({ single_test: true });
 var date;
 var newDate;
 </script>
 <iframe></iframe>
 <script>
 var iframe = document.querySelector('iframe');
 onload = function() {
   iframe.src = "001-1.html?" + Math.random();
--- a/testing/web-platform/tests/workers/shared-worker-name-via-options.html
+++ b/testing/web-platform/tests/workers/shared-worker-name-via-options.html
@@ -5,16 +5,17 @@
 <link rel="help" href="https://html.spec.whatwg.org/multipage/#dom-sharedworker">
 <link rel="help" href="https://html.spec.whatwg.org/multipage/#dom-sharedworkerglobalscope-name">
 <link rel="author" title="Domenic Denicola" href="mailto:d@domenic.me">
 <script src="/resources/testharness.js"></script>
 <script src="/resources/testharnessreport.js"></script>
 
 <script>
 "use strict";
+setup({ single_test: true });
 
 const name = "my name";
 
 const worker1 = new SharedWorker("support/shared-name.js", { name });
 worker1.port.onmessage = receiveMessage;
 
 const worker2 = new SharedWorker("support/shared-name.js", { name });
 worker2.port.onmessage = receiveMessage;