Index: third_party/WebKit/LayoutTests/fast/speech/scripted/speechrecognition-re-restart.html |
diff --git a/third_party/WebKit/LayoutTests/fast/speech/scripted/speechrecognition-re-restart.html b/third_party/WebKit/LayoutTests/fast/speech/scripted/speechrecognition-re-restart.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..c38f5cd8fbbae5dec8b9c1fff0d6862aa769598f |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/fast/speech/scripted/speechrecognition-re-restart.html |
@@ -0,0 +1,30 @@ |
+<!DOCTYPE HTML> |
+<html> |
+<head> |
+<script src="../../../resources/js-test.js"></script> |
+</head> |
+<body> |
+<script> |
+description("Verify that multiple overlapping start() calls is well-behaved."); |
+ |
+self.jsTestIsAsync = true; |
+ |
+if (window.testRunner) { |
+ testRunner.dumpAsText(); |
+ testRunner.waitUntilDone(); |
+} |
+ |
+var r1 = new webkitSpeechRecognition(); |
+r1.onend = function() { |
+ r1.start(); |
+}; |
+r1.start(); |
+ |
+var r2 = new webkitSpeechRecognition(); |
+r2.onend = function() { |
+ setTimeout(finishJSTest); |
+}; |
+r2.start(); |
+</script> |
+</body> |
+</html> |