| Index: third_party/WebKit/LayoutTests/fast/speech/scripted/start-multiple.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/speech/scripted/start-multiple.html b/third_party/WebKit/LayoutTests/fast/speech/scripted/start-multiple.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..7224a0b4fbed8fede29ead7ce54dea83662634b6
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/fast/speech/scripted/start-multiple.html
|
| @@ -0,0 +1,29 @@
|
| +<!DOCTYPE HTML>
|
| +<html>
|
| +<head>
|
| +<script src="../../../resources/js-test.js"></script>
|
| +</head>
|
| +<body>
|
| +<script>
|
| +description("Verify that multiple SpeechRecognition objects can co-exist in tests.");
|
| +
|
| +self.jsTestIsAsync = true;
|
| +if (window.testRunner) {
|
| + testRunner.dumpAsText();
|
| + testRunner.waitUntilDone();
|
| +}
|
| +
|
| +var objectCount = 4;
|
| +var count = objectCount;
|
| +
|
| +for (var i = 0; i < objectCount; ++i) {
|
| + var recog = new webkitSpeechRecognition();
|
| + recog.onend = () => {
|
| + if (--count == 0)
|
| + setTimeout(finishJSTest);
|
| + };
|
| + recog.start();
|
| +}
|
| +</script>
|
| +</body>
|
| +</html>
|
|
|