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
3 // found in the LICENSE file.
5 // TTS api test for Chrome on ChromeOS.
6 // browser_tests.exe --gtest_filter="TtsApiTest.*"
9 function testSpeakError() {
15 'onEvent': function(event) {
16 chrome.test.assertEq('error', event.type);
17 chrome.test.assertEq('epic fail', event.errorMessage);
22 chrome.test.assertNoLastError();
28 'onEvent': function(event) {
29 chrome.test.assertEq('end', event.type);
32 chrome.test.succeed();
39 chrome.test.assertNoLastError();