Commit 089470bd authored by Joel Riley's avatar Joel Riley Committed by Chromium LUCI CQ

Fix test: SelectToSpeakNavigationControlTest.ChangeSpeedWhilePlaying

Resumes now happen at sentence boundaries.

AX-Relnotes: N/A

Bug: 1157817
Change-Id: Iaad4aa3fb0ae19d0d27d511e3cd8a04209d104bb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2586767Reviewed-by: default avatarDavid Tseng <dtseng@chromium.org>
Commit-Queue: Joel Riley <joelriley@google.com>
Cr-Commit-Position: refs/heads/master@{#836744}
parent 0f312f10
......@@ -304,9 +304,8 @@ TEST_F('SelectToSpeakNavigationControlTest', 'PrevSentence', function() {
});
});
// TODO(https://crbug.com/1157817): Fix Flaky Test.
TEST_F(
'SelectToSpeakNavigationControlTest', 'DISABLED_ChangeSpeedWhilePlaying',
'SelectToSpeakNavigationControlTest', 'ChangeSpeedWhilePlaying',
function() {
chrome.settingsPrivate.setPref('settings.tts.speech_rate', 1.2);
const bodyHtml = `
......@@ -337,11 +336,12 @@ TEST_F(
// asserting that TTS resumed with the proper rate.
setTimeout(
this.newCallback(() => {
// Should resume TTS at the sentence boundary.
assertTrue(this.mockTts.currentlySpeaking());
assertEquals(this.mockTts.getOptions().rate, 1.5);
assertEquals(this.mockTts.pendingUtterances().length, 1);
this.assertEqualsCollapseWhitespace(
this.mockTts.pendingUtterances()[0], '1');
this.mockTts.pendingUtterances()[0], 'Paragraph 1');
}),
0);
});
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment