Skip to content

Test SpeechSynthesisUtterance reuse within and across frames#7510

Merged
foolip merged 4 commits intomasterfrom
SpeechSynthesis-speak-tentative
Oct 4, 2017
Merged

Test SpeechSynthesisUtterance reuse within and across frames#7510
foolip merged 4 commits intomasterfrom
SpeechSynthesis-speak-tentative

Conversation

@foolip
Copy link
Member

@foolip foolip commented Sep 27, 2017

Tentative test for expected spec change in WebAudio/web-speech-api#7

@wpt-pr-bot
Copy link
Collaborator

There are no owners for this pull request. Please reach out on W3C's irc server (irc.w3.org, port 6665) on channel #testing (web client) to get help with this. Thank you!

@foolip
Copy link
Member Author

foolip commented Sep 27, 2017

w3c-test:mirror

@foolip
Copy link
Member Author

foolip commented Sep 27, 2017

The test now passes in Chrome bit times out in Firefox, tested manually, and as expected. (Or maybe I had expected Firefox to throw an exception per spec, but anyway.)

#7507 adds OWNERS for speech-api, so merging that first would be nice. @andrenatal, can you review this change? Once the spec is converted to Bikeshed I'd be happy to make the same fix spec side, and then hopefully nothing is blocking a fix in Gecko.

@foolip
Copy link
Member Author

foolip commented Sep 27, 2017

Also tested Edge and that passes the test, but Safari actually times out, like Firefox! So this was a 2/2 split in behavior, hope we can get it fixed!

@ghost
Copy link

ghost commented Sep 27, 2017

Build PASSED

Started: 2017-09-30 20:07:41
Finished: 2017-09-30 20:20:07

Failing Jobs

  • safari:10.0
  • MicrosoftEdge:14.14393

View more information about this build on:

@foolip
Copy link
Member Author

foolip commented Sep 27, 2017

Hmm, that's interesting, flaky on Safari. I'm pretty sure that this is actually not a problem with the test, it's not doing anything that should reasonably be racy, undefined behavior, or very slow. @youennf, can you help me find a contact for Speech API at WebKit?

@fleizach
Copy link

Safari does not allow re-usable speech utterances at this time. We'll have to fix up some stuff to allow that

@foolip
Copy link
Member Author

foolip commented Sep 27, 2017

Safari does not allow re-usable speech utterances at this time. We'll have to fix up some stuff to allow that

It actually passes for me and I hear "one one" on Safari on my own machine, it seems like it usually works but there's some flakiness going on.

BTW, can I add you to speech-api/OWNERS, so that you see test reviews for Speech API?

@fleizach
Copy link

If it passes it's probably out of luck rather than design. Mileage may vary on iOS as well, where the native synthesis API (AVSpeechSynthesizer) explicitly disallows re-using the same utterance.

Yes, please add me to the owners list

Thanks

@foolip
Copy link
Member Author

foolip commented Sep 27, 2017

Great, I'll add you in the other PR.

@foolip foolip force-pushed the SpeechSynthesis-speak-tentative branch from 488eb5e to 77fa60b Compare September 27, 2017 22:07
@foolip foolip requested a review from fleizach September 27, 2017 22:08
@foolip
Copy link
Member Author

foolip commented Sep 27, 2017

Rebased so that the OWNERS file exists, but not sure if that's enough

@foolip foolip closed this Sep 27, 2017
@foolip
Copy link
Member Author

foolip commented Sep 27, 2017

Oops, reopening :)

@foolip foolip reopened this Sep 27, 2017
@foolip
Copy link
Member Author

foolip commented Sep 28, 2017

Hmm, I added another test for the "Using the same SpeechSynthesisUtterance for different SpeechSynthesis instances" case, but the test is now flaky on Chrome too. Maybe it'd be best to have them as separate tests. It seems like the utterances are queued up, so the tests can interact. Better to have separate tests that deliberately tests the interaction.

@foolip
Copy link
Member Author

foolip commented Sep 30, 2017

I've split the tests. Ping @andrenatal @fleizach @gshires for review.

@foolip foolip merged commit acffd42 into master Oct 4, 2017
@foolip foolip deleted the SpeechSynthesis-speak-tentative branch October 4, 2017 14:34
@foolip foolip changed the title Test that SpeechSynthesisUtterance can be reused Test SpeechSynthesisUtterance reuse within and across frames Oct 9, 2017
jakearchibald pushed a commit to jakearchibald/web-platform-tests that referenced this pull request Nov 16, 2017
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.

4 participants