OLD | NEW |
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../../js/resources/js-test-pre.js"></script> | 4 <script src="../../../resources/js-test.js"></script> |
5 </head> | 5 </head> |
6 <body> | 6 <body> |
7 <script type="text/javascript"> | 7 <script type="text/javascript"> |
8 description('Test getting an exception when calling start() in the Speech JavaSc
ript API'); | 8 description('Test getting an exception when calling start() in the Speech JavaSc
ript API'); |
9 | 9 |
10 function run() { | 10 function run() { |
11 // Check availability of constructors. | 11 // Check availability of constructors. |
12 shouldBeTrue("'webkitSpeechRecognition' in self"); | 12 shouldBeTrue("'webkitSpeechRecognition' in self"); |
13 shouldBeFalse("webkitSpeechRecognition == null"); | 13 shouldBeFalse("webkitSpeechRecognition == null"); |
14 | 14 |
(...skipping 28 matching lines...) Expand all Loading... |
43 shouldNotThrow("r.start()"); | 43 shouldNotThrow("r.start()"); |
44 shouldThrow("r.start()", '"InvalidStateError: Failed to execute \'start\' on
\'SpeechRecognition\': recognition has already started."'); | 44 shouldThrow("r.start()", '"InvalidStateError: Failed to execute \'start\' on
\'SpeechRecognition\': recognition has already started."'); |
45 } | 45 } |
46 | 46 |
47 window.onload = run; | 47 window.onload = run; |
48 window.jsTestIsAsync = true; | 48 window.jsTestIsAsync = true; |
49 </script> | 49 </script> |
50 </body> | 50 </body> |
51 </html> | 51 </html> |
52 | 52 |
OLD | NEW |