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 // browser_tests.exe --gtest_filter="TtsApiTest.*"
8 function testSpeakOnce() {
9 function eventListener(event) {
10 chrome.test.assertEq('end', event.type);
11 chrome.test.assertEq(11, event.charIndex);
12 chrome.test.succeed();
16 {'onEvent': eventListener},
18 chrome.test.assertNoLastError();