OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE HTML> |
| 2 <html> |
| 3 <head> |
| 4 <script src="../../../resources/js-test.js"></script> |
| 5 </head> |
| 6 <body> |
| 7 <script> |
| 8 description("Verify that multiple overlapping start() calls is well-behaved."); |
| 9 |
| 10 self.jsTestIsAsync = true; |
| 11 |
| 12 if (window.testRunner) { |
| 13 testRunner.dumpAsText(); |
| 14 testRunner.waitUntilDone(); |
| 15 } |
| 16 |
| 17 var r1 = new webkitSpeechRecognition(); |
| 18 r1.onend = function() { |
| 19 r1.start(); |
| 20 }; |
| 21 r1.start(); |
| 22 |
| 23 var r2 = new webkitSpeechRecognition(); |
| 24 r2.onend = function() { |
| 25 setTimeout(finishJSTest); |
| 26 }; |
| 27 r2.start(); |
| 28 </script> |
| 29 </body> |
| 30 </html> |
OLD | NEW |