| Index: LayoutTests/fast/speech/scripted/speechrecognition-basics.html
|
| diff --git a/LayoutTests/fast/speech/scripted/speechrecognition-basics.html b/LayoutTests/fast/speech/scripted/speechrecognition-basics.html
|
| index 95aaa44220f49b63b57cf169b4b5d8cd67ca51c0..551a0e30a0f448586b45ba9adc5d07f241cc6ba3 100644
|
| --- a/LayoutTests/fast/speech/scripted/speechrecognition-basics.html
|
| +++ b/LayoutTests/fast/speech/scripted/speechrecognition-basics.html
|
| @@ -12,7 +12,45 @@ function run() {
|
| shouldBeTrue("'webkitSpeechRecognition' in self");
|
| shouldBeFalse("webkitSpeechRecognition == null");
|
|
|
| - oneMatchTest();
|
| + nullServiceURI();
|
| +}
|
| +
|
| +function nullServiceURI(){
|
| + debug('\nnullServiceURI():');
|
| + evalAndLog("window.r = new webkitSpeechRecognition()");
|
| +
|
| + r.onend = function() {
|
| + debug('onend');
|
| + invalidServiceURI();
|
| + }
|
| +
|
| + shouldNotThrow("r.start()");
|
| +}
|
| +
|
| +function invalidServiceURI(){
|
| + debug('\ninvalidServiceURI():');
|
| + evalAndLog("window.r = new webkitSpeechRecognition()");
|
| + evalAndLog("r.serviceURI = 'http:/:/:/badurl'");
|
| +
|
| + r.onend = function() {
|
| + debug('onend');
|
| + validServiceURI();
|
| + }
|
| +
|
| + shouldNotThrow("r.start()");
|
| +}
|
| +
|
| +function validServiceURI(){
|
| + debug('\nvalidServiceURI():');
|
| + evalAndLog("window.r = new webkitSpeechRecognition()");
|
| + evalAndLog("r.serviceURI = 'chrome://speech-recognition?foo=bar&client=com.example'");
|
| +
|
| + r.onend = function() {
|
| + debug('onend');
|
| + oneMatchTest();
|
| + }
|
| +
|
| + shouldNotThrow("r.start()");
|
| }
|
|
|
| function oneMatchTest() {
|
|
|