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

[presentation-api] update IDL tests for a receiving user agent #5029

Merged

Conversation

tomoyukilabs
Copy link
Member

This PR modifies receiving-ua/idlharness.html.

  • All IDL tests declared in idlharness.html are moved to support/idlharness_receiving-ua.html.
  • The IDL tests for a receiving side can be invoked via idlharness-manual.html for a controlling side.
  • As mentioned in [presentation-api] presentation URLs for receiving user agent test cases #4991 (comment), the receiving side sends the test results to the controlling side via a stash. If the controlling side is opened by test runner, the test results are passed to the test runner, as well.

@wpt-pr-bot
Copy link
Collaborator

Notifying @louaybassbouss, @tidoust, and @zqzhang. (Learn how reviewing works.)

@w3c-bots
Copy link

w3c-bots commented Feb 28, 2017

View the complete job log.

Firefox (nightly channel)

Testing web-platform-tests at revision b9fd95e
Using browser at version BuildID 20170227203520; SourceStamp cc0d34f0490c9dab0fda35765683c31d3a4fc950
Starting 10 test iterations
No tests run.

@w3c-bots
Copy link

w3c-bots commented Feb 28, 2017

View the complete job log.

Chrome (unstable channel)

Testing web-platform-tests at revision b9fd95e
Using browser at version 58.0.3018.3 dev
Starting 10 test iterations
No tests run.

Copy link
Contributor

@tidoust tidoust left a comment

Choose a reason for hiding this comment

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

I think the actual IDL still needs a couple of updates.

The overall testing/reporting mechanism looks great otherwise!

presentBtn.onclick = () => {
presentBtn.disabled = true;
const stash = new Stash(stashIds.toController, stashIds.toReceiver);
const request = new PresentationRequest('support/idlharness_receiving-ua.html');
Copy link
Contributor

Choose a reason for hiding this comment

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

FYI, the Cast Application ID 09F0075E now targets:
https://w3c-test.org/presentation-api/receiving-ua/support/idlharness_receiving-ua.html

No need to change the URL parameter into an array with a Cast URL as a fallback for now though, given that Cast devices do not implement the receiving side.

@@ -24,14 +27,13 @@
<script id='idl' type="text/plain">
partial interface Navigator {
[SameObject]
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you also add the SecureContext flag that has just made it to the spec here, on the Presentation and PresentationConnectionList interfaces, as well as on the events interface?

This can be done in another pull request though (we'll need one to update controlling tests in any case).

@@ -104,17 +106,21 @@
</script>
Copy link
Contributor

Choose a reason for hiding this comment

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

This does not appear in the diff, but as far as I can tell, the IDL here still has PresentationConnectionClosedReason instead of PresentationConnectionCloseReason (without d), and needs to be updated accordingly.

@@ -58,7 +60,8 @@
};

interface PresentationConnection : EventTarget {
readonly attribute DOMString? id;
readonly attribute USVString? id;
readonly attribute USVString? url;
Copy link
Contributor

Choose a reason for hiding this comment

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

There are no ? in the spec for these attributes.

@w3c-bots
Copy link

w3c-bots commented Mar 1, 2017

These tests are now available on w3c-test.org

@tomoyukilabs
Copy link
Member Author

Thanks for review. I updated IDL descriptions in idlharness_receiving-ua.html, while the presentation URL at a controlling side is not changed yet.

@tidoust tidoust merged commit f2bec30 into web-platform-tests:master Mar 1, 2017
@tomoyukilabs tomoyukilabs deleted the receiving-ua-idlharness branch March 6, 2017 09:23
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