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 testSpeakWithOptionalArgs() {
16 // This will succeed but nothing will be spoken.
20 chrome.tts.speak('Alpha');
24 chrome.tts.speak(null);
30 chrome.tts.speak('Bravo', {});
33 chrome.tts.speak('Charlie', null);
37 chrome.tts.speak('Delta', 'foo');
43 chrome.tts.speak('Echo', {}, function() {});
47 chrome.tts.speak('Foxtrot', {}, 'foo');
52 chrome.test.succeed();