Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: chrome/test/data/extensions/api_test/tts/pause_resume/test.js

Issue 15108002: Add Pause and Resume to Web TTS & Extension TTS APIs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/test/data/extensions/api_test/tts/pause_resume/test.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // TTS api test
6 // browser_tests.exe --gtest_filter="TtsApiTest.*"
7
8 chrome.test.runTests([
9 function testPauseBeforeSpeak() {
10 chrome.tts.pause();
11 chrome.tts.speak(
12 'test 1',
13 {
14 'enqueue': true,
15 'onEvent': function(event) {
16 if (event.type == 'end')
17 chrome.test.succeed();
18 }
19 });
20 chrome.tts.resume();
21 },
22 function testPauseDuringSpeak() {
23 chrome.tts.speak(
24 'test 2',
25 {
26 'onEvent': function(event) {
27 if (event.type == 'end')
28 chrome.test.succeed();
29 }
30 });
31 chrome.tts.pause();
32 chrome.tts.resume();
33 }
34 ]);
OLDNEW
« no previous file with comments | « chrome/test/data/extensions/api_test/tts/pause_resume/test.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698