summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/speech/scripted/speechrecognition-restart-onend.html
blob: cae905712dce1bb9ba80d57ba67b4576e330f5e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE HTML>
<html>
<head>
<script src="../../../resources/js-test.js"></script>
</head>
<body>
<script>
description("Verify that calling start() during onend does not crash.");

self.jsTestIsAsync = true;

if (window.testRunner) {
    testRunner.dumpAsText();
    testRunner.waitUntilDone();
}

var recog = new webkitSpeechRecognition();
recog.onend = function () { recog.start(); setTimeout(finishJSTest); };
recog.start();
</script>
</body>
</html>