Chromium Code Reviews| 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..aadc985ea09ec6060388e2bc9aa9dca7d7aab1d1 100644 |
| --- a/LayoutTests/fast/speech/scripted/speechrecognition-basics.html |
| +++ b/LayoutTests/fast/speech/scripted/speechrecognition-basics.html |
| @@ -12,7 +12,32 @@ 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'); |
| + validServiceURI(); |
| + } |
| + |
| + shouldNotThrow("r.start()"); |
| +} |
| + |
| +function validServiceURI(){ |
| + debug('\nvalidServiceURI():'); |
| + evalAndLog("window.r = new webkitSpeechRecognition()"); |
| + evalAndLog("r.serviceURI = 'vendor://com.google?foo=bar&client=chromium/com.example'"); |
|
gshires1
2015/05/20 20:55:09
Change this to "chrome://speech-recognition?foo=ba
kirtia
2015/06/02 20:56:57
Done.
|
| + |
| + r.onend = function() { |
| + debug('onend'); |
| + oneMatchTest(); |
| + } |
| + |
| + shouldNotThrow("r.start()"); |
| } |
| function oneMatchTest() { |