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

Test the properties of SpeechSynthesisEvent #34710

Merged

Conversation

foolip
Copy link
Member

@foolip foolip commented Jul 5, 2022

This is mainly to check that they do not bubble.

Follows WICG/speech-api#104.

This is mainly to check that they do not bubble.

Follows WICG/speech-api#104.
Comment on lines 14 to 15
await test_driver.bless('speechSynthesis.speak',
() => speechSynthesis.speak(utterance));
Copy link
Contributor

Choose a reason for hiding this comment

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

Just so it's clear that speak doesn't actually return anything.

Suggested change
await test_driver.bless('speechSynthesis.speak',
() => speechSynthesis.speak(utterance));
await test_driver.bless('speechSynthesis.speak');
speechSynthesis.speak(utterance);

Copy link
Member Author

Choose a reason for hiding this comment

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

The 2nd argument here is intended to be used like this, the callback for the thing that needs a user gesture. But I can wrap in {} so that it doesn't matter what speechSynthesis.speak(utterance) returns.

Copy link
Contributor

Choose a reason for hiding this comment

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

Understood. I generally don't bother using the bless' callback, as the click() resolves the bless' promise (enabling the transient activation). Just makes the code a bit easier on the eye.

But again, just a nit. All looks good 👍

Copy link
Contributor

@marcoscaceres marcoscaceres left a comment

Choose a reason for hiding this comment

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

just a nit

foolip added a commit to foolip/wpt that referenced this pull request Jul 6, 2022
This applies a nit from web-platform-tests#34710
and makes the "unexpected event" bits more consistent.
@foolip foolip merged commit 15e7129 into web-platform-tests:master Mar 21, 2023
@foolip foolip deleted the SpeechSynthesisEvent-properties branch March 21, 2023 10:26
foolip added a commit that referenced this pull request Mar 22, 2023
This applies a nit from #34710
and makes the "unexpected event" bits more consistent.
marcoscaceres pushed a commit that referenced this pull request Mar 28, 2023
This is mainly to check that they do not bubble.

Follows WICG/speech-api#104.
marcoscaceres pushed a commit that referenced this pull request Mar 28, 2023
This applies a nit from #34710
and makes the "unexpected event" bits more consistent.
cookiecrook pushed a commit to cookiecrook/wpt that referenced this pull request Mar 29, 2023
cookiecrook pushed a commit to cookiecrook/wpt that referenced this pull request Mar 29, 2023
…m-tests#34716)

This applies a nit from web-platform-tests#34710
and makes the "unexpected event" bits more consistent.
cookiecrook pushed a commit to cookiecrook/wpt that referenced this pull request Apr 8, 2023
cookiecrook pushed a commit to cookiecrook/wpt that referenced this pull request Apr 8, 2023
…m-tests#34716)

This applies a nit from web-platform-tests#34710
and makes the "unexpected event" bits more consistent.
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Apr 13, 2023
…nd tinker with others, a=testonly

Automatic update from web-platform-tests
Make a speech synthesis fail fast and tinker with others (#34716)

This applies a nit from web-platform-tests/wpt#34710
and makes the "unexpected event" bits more consistent.
--

wpt-commits: 308366a5cf759241b5a8b1a4ab11ef3865625c22
wpt-pr: 34716
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