| Index: LayoutTests/fast/speech/scripted/start-exception.html
|
| diff --git a/LayoutTests/fast/speech/scripted/start-exception.html b/LayoutTests/fast/speech/scripted/start-exception.html
|
| index c21ff433696c6281b4c1c99a2548cdb2e5b66819..4b5d1b850e7f97c9bde0d828f09a0f8517a9a44c 100644
|
| --- a/LayoutTests/fast/speech/scripted/start-exception.html
|
| +++ b/LayoutTests/fast/speech/scripted/start-exception.html
|
| @@ -31,7 +31,7 @@ function doubleStart() {
|
|
|
| r.onend = function() {
|
| debug('onend');
|
| - finishJSTest();
|
| + serviceURIInvalid();
|
| }
|
| } else {
|
| shouldThrow("r.start()", '"InvalidStateError: Failed to execute \'start\' on \'SpeechRecognition\': recognition has already started."');
|
| @@ -44,9 +44,18 @@ function doubleStart() {
|
| shouldThrow("r.start()", '"InvalidStateError: Failed to execute \'start\' on \'SpeechRecognition\': recognition has already started."');
|
| }
|
|
|
| +function serviceURIInvalid() {
|
| + debug('\nserviceURIInvalid():');
|
| + evalAndLog("window.r = new webkitSpeechRecognition()");
|
| + evalAndLog("r.serviceURI = 'http:/:/:/badurl'");
|
| +
|
| + shouldThrow("r.start()", '"SyntaxError: Failed to execute \'start\' on \'SpeechRecognition\': serviceURI is neither empty nor a valid URL."');
|
| + evalAndLog("r.abort()");
|
| + finishJSTest();
|
| +}
|
| +
|
| window.onload = run;
|
| window.jsTestIsAsync = true;
|
| </script>
|
| </body>
|
| </html>
|
| -
|
|
|