Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

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

Issue 1750213004: Simplify mock web speech recognizer's "onend" handling. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/fast/speech/scripted/speechrecognition-restart-onend.html
diff --git a/third_party/WebKit/LayoutTests/fast/speech/scripted/speechrecognition-restart-onend.html b/third_party/WebKit/LayoutTests/fast/speech/scripted/speechrecognition-restart-onend.html
new file mode 100644
index 0000000000000000000000000000000000000000..cae905712dce1bb9ba80d57ba67b4576e330f5e3
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/speech/scripted/speechrecognition-restart-onend.html
@@ -0,0 +1,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>

Powered by Google App Engine
This is Rietveld 408576698