Bug 1659037 [wpt PR 25004] - [WPT] Add tests for Worker.terminate() during worker...
commite8b96c04e4146abc34ec5aaed06dc21bc33b20fe
authorHiroshige Hayashizaki <hiroshige@chromium.org>
Tue, 22 Sep 2020 09:16:02 +0000 (22 09:16 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Wed, 23 Sep 2020 09:03:01 +0000 (23 09:03 +0000)
tree3e48fc0154cbcd756e7ee77e38f928795c1c6fe7
parent76f64f549cc02d2c0e72698d26743b6ff0f9dc1b
Bug 1659037 [wpt PR 25004] - [WPT] Add tests for Worker.terminate() during worker script evaluation, a=testonly

Automatic update from web-platform-tests
[WPT] Add tests for Worker.terminate() during worker script evaluation

workers/Worker-terminate-forever.html
terminates workers just after construction, and thus it's likely
that the workers are terminated before script evaluation is started.

This CL adds Worker-terminate-forever-during-evaluation.html
that waits for postMessage(), to ensure the worker is terminated
after script evaluation is started.

Bug: 11111341129785
Change-Id: I9ebc8effe6234a297e0851042f5de41f611d55aa
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2355160
Commit-Queue: Hiroshige Hayashizaki <hiroshige@chromium.org>
Reviewed-by: Makoto Shimazu <shimazu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#808304}

--

wpt-commits: d1c32457e97d9147803705abc4ffac424733dd8d
wpt-pr: 25004
testing/web-platform/tests/workers/Worker-terminate-forever-during-evaluation.html [new file with mode: 0644]
testing/web-platform/tests/workers/support/Worker-run-forever-during-importScripts.js [new file with mode: 0644]
testing/web-platform/tests/workers/support/Worker-run-forever-during-nested-importScripts.js [new file with mode: 0644]
testing/web-platform/tests/workers/support/Worker-run-forever.js