| 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="../../../resources/js-test.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() { |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 | 42 |
| 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 | |
| OLD | NEW |