| 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 16 matching lines...) Expand all Loading... |
| 27 | 27 |
| 28 if (event.type === 'end') { | 28 if (event.type === 'end') { |
| 29 shouldNotThrow("r.start()"); | 29 shouldNotThrow("r.start()"); |
| 30 evalAndLog("r.abort()"); | 30 evalAndLog("r.abort()"); |
| 31 | 31 |
| 32 r.onend = function() { | 32 r.onend = function() { |
| 33 debug('onend'); | 33 debug('onend'); |
| 34 finishJSTest(); | 34 finishJSTest(); |
| 35 } | 35 } |
| 36 } else { | 36 } else { |
| 37 shouldThrow("r.start()", '"Error: InvalidStateError: DOM Exc
eption 11"'); | 37 shouldThrow("r.start()", '"InvalidStateError: An attempt was
made to use an object that is not, or is no longer, usable."'); |
| 38 } | 38 } |
| 39 } | 39 } |
| 40 } | 40 } |
| 41 } | 41 } |
| 42 | 42 |
| 43 shouldNotThrow("r.start()"); | 43 shouldNotThrow("r.start()"); |
| 44 shouldThrow("r.start()", '"Error: InvalidStateError: DOM Exception 11"'); | 44 shouldThrow("r.start()", '"InvalidStateError: An attempt was made to use an
object that is not, or is no longer, usable."'); |
| 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> | 50 <script src="../../js/resources/js-test-post.js"></script> |
| 51 </body> | 51 </body> |
| 52 </html> | 52 </html> |
| 53 | 53 |
| OLD | NEW |