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/test.js

Issue 3640001: Refactored TTS extension code so that the platform-specific TTS... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 2 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/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) 2010 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 for Chrome. This is currently limited to ChromeOS.
6 // browser_tests.exe --gtest_filter=ExtensionApiTest.Tts
7
8 chrome.test.runTests([
9 function testSpeak() {
10 chrome.experimental.tts.speak('hello world', {}, function() {
11 chrome.test.succeed();
12 });
13 },
14
15 function testStop() {
16 chrome.experimental.tts.stop();
17 chrome.test.succeed();
18 },
19
20 function testIsSpeaking() {
21 for (var i = 0; i < 3; i++) {
22 chrome.experimental.tts.isSpeaking(function(speaking) {
23 chrome.test.assertTrue(speaking);
24 });
25 }
26 chrome.experimental.tts.isSpeaking(function(speaking) {
27 chrome.test.assertFalse(speaking);
28 chrome.test.succeed();
29 });
30 }
31 ]);
OLDNEW
« no previous file with comments | « chrome/test/data/extensions/api_test/tts/test.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698