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

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, 7 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
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 'onEvent': function(event) {
15 if (event.type == 'end')
16 chrome.test.succeed();
17 }
18 });
19 chrome.tts.resume();
20 },
21 function testPauseDuringSpeak() {
22 chrome.tts.speak(
23 'test 2',
24 {
25 'onEvent': function(event) {
26 if (event.type == 'end')
27 chrome.test.succeed();
28 }
29 });
30 chrome.tts.pause();
31 chrome.tts.resume();
32 }
33 ]);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698