Automatic update from web-platform-tests Change Observer: Use '.any.js' WPTs instead of setting up workers Uses testharness's global metadata comment for '.any.js' files instead of creating individual tests for each global type which sets up its own worker. R==dslee@chromium.org Bug: 341136316 Change-Id: I9fe8398c4b785c4bc329f0ccc3e64397f87641c0 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5743827 Commit-Queue: Nathan Memmott <memmott@chromium.org> Reviewed-by: Daseul Lee <dslee@chromium.org> Cr-Commit-Position: refs/heads/main@{#1335089} -- wpt-commits: c47f702bca4dad9704a60a15dfd0560a3e69a797 wpt-pr: 47366
6 lines
203 B
JavaScript
6 lines
203 B
JavaScript
// META: global=serviceworker
|
|
|
|
promise_test(async t => {
|
|
assert_throws_js(ReferenceError, () => new FileSystemObserver(() => {}));
|
|
}, 'Creating a FileSystemObserver from an unsupported global fails');
|