Files
sousa-gecko/testing/web-platform/tests/fs/FileSystemObserver-unsupported-global.https.tentative.any.js
T
Nathan Memmott 7b9cc5cb8f Bug 1910752 [wpt PR 47366] - Change Observer: Use '.any.js' WPTs instead of setting up workers, a=testonly
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
2024-07-31 10:45:53 +00:00

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');