Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workers: test where Worker/SharedWorker are exposed #23381

Merged
merged 2 commits into from Jun 3, 2020

Conversation

annevk
Copy link
Member

@annevk annevk commented May 4, 2020

And remove broken tests.

For whatwg/html#5497.

@wpt-pr-bot wpt-pr-bot requested review from caitp, jdm and zqzhang May 4, 2020 08:20
@wpt-pr-bot wpt-pr-bot temporarily deployed to wpt-preview-23381 May 4, 2020 08:23 Inactive
annevk added a commit to whatwg/html that referenced this pull request Jun 2, 2020
@annevk annevk requested a review from foolip June 3, 2020 06:13
// META: global=window,worker

test(() => {
// Use onfetch as service worker detector
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about just globalThis.ServiceWorkerGlobalScope?

@annevk
Copy link
Member Author

annevk commented Jun 3, 2020

If I run https://web-platform.test:8443/workers/semantics/multiple-workers/exposure.any.sharedworker.html locally in Chrome Canary I get a harness error and basically no useful information. Not sure what's going on. (All other variants are fine.)

@foolip
Copy link
Member

foolip commented Jun 3, 2020

https://wpt.fyi/results/workers/semantics/multiple-workers/exposure.any.sharedworker.html?label=pr_head&max-count=1&pr=23381 looks OK, does it work with ./wpt run --channel dev chrome locally?

@annevk
Copy link
Member Author

annevk commented Jun 3, 2020

Not sure, not familiar with that way of running tests.

@annevk annevk merged commit 84d101a into master Jun 3, 2020
@annevk annevk deleted the annevk/worker-sharedworker-exposure branch June 3, 2020 11:05
annevk added a commit to whatwg/html that referenced this pull request Jun 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants