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

Adding tests for remote playback API #35827

Merged
merged 5 commits into from
Sep 5, 2023

Conversation

FritzHeiden
Copy link
Contributor

This PR introduces additional tests for the remote playback API

@rakuco
Copy link
Member

rakuco commented Sep 16, 2022

Just a drive-by comment that runner-results.json probably shouldn't be added here, as it just contains the results of your particular test run.

@rakuco
Copy link
Member

rakuco commented Sep 16, 2022

cc @mfoltzgoogle, as the bot has assigned the PR to Mounir despite w3c/remote-playback@4e2dc79

(It's probably a good idea to update remote-playback/META.yml as well)

@markafoltz
Copy link
Member

@muyao-xu has offered to help with this review (thank you!)

@tidoust, I can send a PR to add myself to the reviewer meta-file. I don't seem to be able to edit the reviewers for this PR, however.

@tidoust tidoust removed the request for review from mounirlamouri September 19, 2022 15:28
@tidoust
Copy link
Contributor

tidoust commented Sep 19, 2022

Note I dropped Mounir as reviewer and assignee. I cannot add @muyao-xu or yourself as reviewer either though.

@markafoltz
Copy link
Member

Can I be added as a reviewer now?

@markafoltz
Copy link
Member

Sorry for the delay. It looks like no one was able to pick this up after TPAC last year. I will take a look.

Copy link
Member

@markafoltz markafoltz left a comment

Choose a reason for hiding this comment

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

Hi @FritzHeiden, overall these tests look really good! In some cases I made a comment on one test that applies to multiple tests, as the test structure is similar.

remote-playback/event-handlers-manual.html Show resolved Hide resolved
remote-playback/event-handlers-manual.html Outdated Show resolved Hide resolved
remote-playback/prompt-and-select-device-manual.html Outdated Show resolved Hide resolved
</div>
<div id="pick-device" style="display: none">
<p>
Click the button below to prompt for a remote playback device and select
Copy link
Member

Choose a reason for hiding this comment

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

This instruction needs updating.

<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/common/media.js"></script>
<style>
Copy link
Member

Choose a reason for hiding this comment

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

This is a super minor thing, but consider putting this in an external stylesheet so it can be used by all the tests.

}

v.remote.watchAvailability(t.step_func_done(callback)).then(
t.step_func(() => {}), t.unreached_func());
Copy link
Member

Choose a reason for hiding this comment

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

It's legal for the browser to reject watchAvailability at any time. You can assert that the rejection is NotSupportedError

Copy link
Member

@markafoltz markafoltz left a comment

Choose a reason for hiding this comment

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

The code looks very good. There are two tests I think could be merged and I can take a look again if you agree with that change.

I made some copy editing suggestions on the test descriptions to make them a little more precise (in my opinion). If you want to defer on these, they won't block approving the PR.

Copy link
Member

@markafoltz markafoltz left a comment

Choose a reason for hiding this comment

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

None of my comments should prevent landing. I can put up a PR to address the remaining style/comment fixes separately. I'll have to re-read the code to see about combining the two test cases.

@markafoltz markafoltz merged commit fcda0e0 into web-platform-tests:master Sep 5, 2023
jonathan-j-lee added a commit to jonathan-j-lee/wpt that referenced this pull request Sep 8, 2023
Lightning00Blade pushed a commit to Lightning00Blade/wpt that referenced this pull request Dec 11, 2023
* Implemented some tests for remote-playback api

* Implemented all API tests

* Implemented all tests

* Added test results

* Made changes according to PR feedback
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.

7 participants