OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2013 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. | |
4 | |
5 chrome.app.runtime.onLaunched.addListener(function() { | |
6 chrome.test.runTests([ | |
7 function testWebkitSpeechRecognition() { | |
8 var succeeded = false; | |
9 | |
10 var r = new webkitSpeechRecognition(); | |
11 r.onerror = function(e) { | |
12 if (succeeded) { | |
13 return; | |
14 } | |
not at google - send to devlin
2013/09/20 22:36:46
when does it get onerror?
lazyboy
2013/09/20 22:49:08
When "audioCapture" permission is missing from the
not at google - send to devlin
2013/09/20 23:03:41
Ok. The manifest.json here has "audioCapture" thou
lazyboy
2013/09/21 00:48:04
Added separate test w/o permission.
| |
15 chrome.test.fail(); | |
16 }; | |
17 r.onstart = function() { | |
18 succeeded = true; | |
19 chrome.test.succeed(); | |
20 }; | |
21 r.start(); | |
22 } | |
23 ]); | |
24 }); | |
OLD | NEW |