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

Unified Diff: third_party/WebKit/LayoutTests/fast/speech/scripted/start-multiple.html

Issue 2525933002: Handle overlapping uses of MockWebSpeechRecognizer (Closed)
Patch Set: address style issues Created 4 years, 1 month 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/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>

Powered by Google App Engine
This is Rietveld 408576698