Bug 1630702 [wpt PR 23024] - Replace assert_precondition with assert_implements in workers/, a=testonly
authorStephen McGruer <smcgruer@chromium.org>
Tue, 28 Apr 2020 11:25:39 +0000
changeset 527049 6300b31ac0155800b8b7cf15a11868dba012cd39
parent 527048 f29adf61d4935a69d5daef35f9c4278dab51f0f5
child 527050 de334bdcbaeb7f29205253c6fdeb0aaac22037e7
push id114648
push userwptsync@mozilla.com
push dateThu, 30 Apr 2020 19:15:02 +0000
treeherderautoland@2545233d9410 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1630702, 23024
milestone77.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 1630702 [wpt PR 23024] - Replace assert_precondition with assert_implements in workers/, a=testonly Automatic update from web-platform-tests Replace assert_precondition with assert_implements in workers/ assert_precondition is deprecated (see https://github.com/web-platform-tests/rfcs/blob/master/rfcs/assert_precondition_rename.md). Since SharedWorker is not an OPTIONAL part of the HTML spec, these tests should use assert_implements. -- wpt-commits: 94a57a789298c742c609a8a5e41790fc1225a550 wpt-pr: 23024
testing/web-platform/tests/workers/modules/shared-worker-parse-error-failure.html
--- a/testing/web-platform/tests/workers/modules/shared-worker-parse-error-failure.html
+++ b/testing/web-platform/tests/workers/modules/shared-worker-parse-error-failure.html
@@ -17,17 +17,17 @@ promise_setup(async () => {
   const scriptURL = 'resources/static-import-worker.js';
   const worker = new SharedWorker(scriptURL, { type: 'module' });
   const supportsModuleWorkers = await new Promise((resolve, reject) => {
     worker.port.onmessage = e => {
       resolve(e.data.length == 1 && e.data[0] == 'export-on-load-script.js');
     };
     worker.onerror = () => resolve(false);
   });
-  assert_precondition(
+  assert_implements(
     supportsModuleWorkers,
     "Static import must be supported on module shared worker to run this test."
   );
 });
 
 promise_test(async () => {
   const scriptURL = 'resources/syntax-error.js';
   const worker = new SharedWorker(scriptURL, { type: 'module' });