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

Side by Side Diff: chrome/test/data/extensions/api_test/tts_engine/register_engine/test.js

Issue 7258007: Move the tts and ttsEngine APIs out of experimental, and give (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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_engine/register_engine/manifest.json ('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
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // TTS api test for Chrome on ChromeOS. 5 // TTS api test for Chrome on ChromeOS.
6 // browser_tests.exe --gtest_filter="TtsApiTest.*" 6 // browser_tests.exe --gtest_filter="TtsApiTest.*"
7 7
8 if (!chrome.tts) {
9 chrome.tts = chrome.experimental.tts;
10 }
11
12 if (!chrome.ttsEngine) {
13 chrome.ttsEngine = chrome.experimental.ttsEngine;
14 }
15
16 chrome.test.runTests([ 8 chrome.test.runTests([
17 function testNoListeners() { 9 function testNoListeners() {
18 // This call should go to native speech because we haven't registered 10 // This call should go to native speech because we haven't registered
19 // any listeners. 11 // any listeners.
20 chrome.tts.speak( 12 chrome.tts.speak(
21 'native speech', 13 'native speech',
22 { 14 {
23 'onEvent': function(event) { 15 'onEvent': function(event) {
24 if (event.type == 'end') { 16 if (event.type == 'end') {
25 chrome.test.succeed(); 17 chrome.test.succeed();
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 chrome.test.assertEq('Alice', voices[1].voiceName); 153 chrome.test.assertEq('Alice', voices[1].voiceName);
162 chrome.test.assertEq('en-US', voices[1].lang); 154 chrome.test.assertEq('en-US', voices[1].lang);
163 chrome.test.assertEq('female', voices[1].gender); 155 chrome.test.assertEq('female', voices[1].gender);
164 156
165 chrome.test.assertEq('Pat', voices[2].voiceName); 157 chrome.test.assertEq('Pat', voices[2].voiceName);
166 chrome.test.assertEq('en-US', voices[2].lang); 158 chrome.test.assertEq('en-US', voices[2].lang);
167 chrome.test.succeed(); 159 chrome.test.succeed();
168 }); 160 });
169 } 161 }
170 ]); 162 ]);
OLDNEW
« no previous file with comments | « chrome/test/data/extensions/api_test/tts_engine/register_engine/manifest.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698