-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
[idlharness] Support testing of [LegacyWindowAlias] extended attribute #5966
Conversation
The new test passes in Chromium with this ad-hoc IDL file:
|
Firefox (nightly)Testing web-platform-tests at revision 30199ad |
Sauce (safari)Testing web-platform-tests at revision 30199ad |
Chrome (unstable)Testing web-platform-tests at revision 30199ad |
Sauce (MicrosoftEdge)Testing web-platform-tests at revision 30199ad |
resources/idlharness.js
Outdated
throw "Invalid IDL: LegacyWindowAlias extended attribute on non-interface " + this.name; | ||
} | ||
if (this.exposureSet.indexOf("Window") === -1) { | ||
throw "Invalid IDL: LegacyWindowAlias extended attribute on " + this.name + " but not exposed in Window"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/but not/which is not/ ?
There are no owners for this pull request. Please reach out on W3C's irc server (irc.w3.org, port 6665) on channel #testing (web client) to get help with this. Thank you! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these tests prevented from running in workers (per spec)?
resources/idlharness.js
Outdated
|
||
// OK now actually check the aliases... | ||
for (var alias of aliases) { | ||
assert_true(alias in self, alias + " should exist"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't that going to fail in workers?
@tobie PTAL |
This is on top of #5966. Follows w3c/fxtf-drafts#167
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This is on top of #5966. Follows w3c/fxtf-drafts#167
Follows whatwg/webidl#364