Chromium Code Reviews

Unified Diff: third_party/WebKit/LayoutTests/fast/speech/scripted/speechrecognition-re-restart.html

Issue 2617113002: Handle repeated and overlapping (re)starts of mock speechrecognizer. (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
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>

Powered by Google App Engine