| 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="../../js/resources/js-test-pre.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 29 matching lines...) Expand all Loading... |
| 40 } | 40 } |
| 41 } | 41 } |
| 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 <script src="../../js/resources/js-test-post.js"></script> | |
| 51 </body> | 50 </body> |
| 52 </html> | 51 </html> |
| 53 | 52 |
| OLD | NEW |