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

Side by Side 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 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE HTML>
2 <html>
3 <head>
4 <script src="../../../resources/js-test.js"></script>
5 </head>
6 <body>
7 <script>
8 description("Verify that multiple SpeechRecognition objects can co-exist in test s.");
9
10 self.jsTestIsAsync = true;
11 if (window.testRunner) {
12 testRunner.dumpAsText();
13 testRunner.waitUntilDone();
14 }
15
16 var objectCount = 4;
17 var count = objectCount;
18
19 for (var i = 0; i < objectCount; ++i) {
20 var recog = new webkitSpeechRecognition();
21 recog.onend = () => {
22 if (--count == 0)
23 setTimeout(finishJSTest);
24 };
25 recog.start();
26 }
27 </script>
28 </body>
29 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698