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

[idlharness] Support testing of [LegacyWindowAlias] extended attribute #5966

Merged
merged 3 commits into from
May 18, 2017

Conversation

zcorpan
Copy link
Member

@zcorpan zcorpan commented May 17, 2017

@zcorpan
Copy link
Member Author

zcorpan commented May 17, 2017

The new test passes in Chromium with this ad-hoc IDL file:

[LegacyWindowAlias=webkitURL]
interface URL {};

@ghost
Copy link

ghost commented May 17, 2017

View the complete job log.

Firefox (nightly)

Testing web-platform-tests at revision 30199ad
Ignoring 1 changed files:
No files changed

@ghost
Copy link

ghost commented May 17, 2017

View the complete job log.

Sauce (safari)

Testing web-platform-tests at revision 30199ad
Ignoring 1 changed files:
No files changed

@ghost
Copy link

ghost commented May 17, 2017

View the complete job log.

Chrome (unstable)

Testing web-platform-tests at revision 30199ad
Ignoring 1 changed files:
No files changed

@ghost
Copy link

ghost commented May 17, 2017

View the complete job log.

Sauce (MicrosoftEdge)

Testing web-platform-tests at revision 30199ad
Ignoring 1 changed files:
No files changed

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";
Copy link
Contributor

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/ ?

@wpt-pr-bot
Copy link
Collaborator

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!

Copy link
Contributor

@tobie tobie left a 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)?


// OK now actually check the aliases...
for (var alias of aliases) {
assert_true(alias in self, alias + " should exist");
Copy link
Contributor

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?

@zcorpan
Copy link
Member Author

zcorpan commented May 18, 2017

@tobie PTAL

zcorpan added a commit that referenced this pull request May 18, 2017
Copy link
Contributor

@tobie tobie left a comment

Choose a reason for hiding this comment

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

LGTM

@zcorpan zcorpan merged commit 2ad8e8e into master May 18, 2017
@zcorpan zcorpan deleted the zcorpan/idl-legacywindowalias branch May 18, 2017 20:05
zcorpan added a commit that referenced this pull request May 18, 2017
@tobie tobie mentioned this pull request Jun 23, 2017
12 tasks
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.

3 participants