Skip to content

Move media-capabilities IDL to interfaces - #11255

Merged
csnardi merged 1 commit into
web-platform-tests:masterfrom
csnardi:media-capabilities-idl
May 30, 2018
Merged

csnardi merged 1 commit into
web-platform-tests:masterfrom
csnardi:media-capabilities-idl

Conversation

@csnardi

@csnardi csnardi commented May 30, 2018

Copy link
Copy Markdown
Member

The media-capabilities IDL was defined directly in the idlharness test. This change moves the IDL definitions into its own file in interfaces. This change also updates the definitions per the latest version of the spec.

The  media-capabilities IDL was defined directly in the idlharness test. This change moves the IDL definitions into its own file in interfaces. This change also updates the definitions per the latest version of the spec.
"use strict";
function doTest([media_capabilities]) {
var idl_array = new IdlArray();
idl_array.add_untested_idls('interface Navigator {};');

@lukebjerring lukebjerring May 30, 2018 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I recently added an idlharness.js feature:

idl_array.add_dependency_idls(source);

Example https://github.com/web-platform-tests/wpt/pull/11076/files#diff-ad65774747290dda8f198aa62706d1c1

It's better than 'mocking' the required IDLs.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Hm, if I do that, then we run into #10338, since the IDL marks the partial Navigator interfaces with [Exposed=(Window)].

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

ah, that ol' chestnut. Disregard my change request :)

@csnardi
csnardi merged commit 6e632ba into web-platform-tests:master May 30, 2018
@csnardi
csnardi deleted the media-capabilities-idl branch May 30, 2018 17:22
lukebjerring added a commit that referenced this pull request Jun 9, 2018
Follow up for #11255 which was unable to use add_dependency_idls because of #10338.
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