Skip to content

Basic Use Case tests for the Presentation API #3062

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

Merged
merged 8 commits into from
Jun 8, 2016

Conversation

mariuswsl
Copy link
Contributor

Tests for the Use Cases 'monitor availability of presentation displays', 'starting a new presentation' and 'reconnect to a presentation' for the Presentation API.

…s', 'starting a new presentation' and 'reconnect to a presentation' for the Presentation API
@hoppipolla-critic-bot
Copy link

Critic review: https://critic.hoppipolla.co.uk/r/6547

This is an external review system which you may optionally use for the code review of your pull request.

In order to help critic track your changes, please do not make in-place history rewrites (e.g. via git rebase -i or git commit --amend) when updating this pull request.

@zqzhang
Copy link
Contributor

zqzhang commented May 23, 2016

w3c-test:mirror

@@ -0,0 +1,78 @@
<!DOCTYPE html>
Copy link
Contributor

Choose a reason for hiding this comment

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

s/_manualTest/-manual/ in file name. See

http://testthewebforward.org/docs/manual-test.html

@louaybassbouss
Copy link
Contributor

@mariuswsl in the Presentation API F2F Meeting we discussed also the way how we create Presentation URLs that are compatible with Google Cast Receivers and other Receiving UAs. We need to replace in all tests 'https://google.com/cast#__castAppId__=CC1AD845/__castClientId__=' + client_id; with 'http://w3c-test.org/presentation-api/receiving-ua/idlharness.html#__castAppId__=2334D33A/__castClientId__=' + client_id;. the Cast Id for http://w3c-test.org/presentation-api/receiving-ua/idlharness.html is in this case 2334D33A. This will work for now in Chrome canary https://www.google.com/chrome/browser/canary.html. Other Implementations like crosswalk from Intel will still work with this solution and the hash parameters will be ignored.

@zqzhang
Copy link
Contributor

zqzhang commented May 26, 2016

@louaybassbouss
Copy link
Contributor

@zqzhang agree relative URL is better if we want to run the tests from a local system and not from w3c-tests.org. @mariuswsl please consider this comment.

promise_test(function () {
return request.start()
.catch(function () {
assert_true(true);
Copy link
Contributor

Choose a reason for hiding this comment

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

Better check something here?

.catch(function (err) {

test(function () {
assert_true(err.code == 20, 'The error code is equal to 20.');
Copy link
Contributor

Choose a reason for hiding this comment

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

Better avoid magic number and use assert_equals.

You can also remove these 2 test wrapers; just make these 3 assertions in the promise test.

@zqzhang
Copy link
Contributor

zqzhang commented Jun 8, 2016

Merge this as-is so that you can regenerate a testing report and address the comment in following pull requests.

@zqzhang zqzhang merged commit 67f9112 into web-platform-tests:master Jun 8, 2016
@mariuswsl mariuswsl deleted the mariuswsl/basic-tests branch June 11, 2016 11:59
arronei pushed a commit to arronei/web-platform-tests that referenced this pull request Jun 14, 2016
Tests for the Use Cases 'monitor availability of presentation displays', 'starting a new presentation' and 'reconnect to a presentation' for the Presentation API
ivanzr pushed a commit to ivanzr/web-platform-tests that referenced this pull request Jun 29, 2016
Tests for the Use Cases 'monitor availability of presentation displays', 'starting a new presentation' and 'reconnect to a presentation' for the Presentation API
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.

5 participants