Backed out changeset b462e7b742d8 (bug 1908261) for causing multiple reftest failures...
[gecko.git] / dom / media / webspeech / recognition / test / test_audio_capture_error.html
blob0c054dbf0b53e899930ff75f6db78227691597b6
1 <!DOCTYPE HTML>
2 <html>
3 <!--
4 https://bugzilla.mozilla.org/show_bug.cgi?id=650295
5 -->
6 <head>
7 <meta charset="utf-8">
8 <title>Test for Bug 650295 -- Behavior on audio error</title>
9 <script src="/tests/SimpleTest/SimpleTest.js"></script>
10 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
11 <script type="application/javascript" src="head.js"></script>
12 </head>
13 <body>
14 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=650295">Mozilla Bug 650295</a>
15 <p id="display"></p>
16 <div id="content" style="display: none">
18 </div>
19 <pre id="test">
20 <script type="text/javascript">
21 SimpleTest.waitForExplicitFinish();
23 performTest({
24 eventsToRequest: ['EVENT_AUDIO_ERROR'],
25 expectedEvents: {
26 'start': null,
27 'audiostart': null,
28 'speechstart': null,
29 'speechend': null,
30 'audioend': null,
31 'error': buildErrorCallback(errorCodes.AUDIO_CAPTURE),
32 'end': null
34 doneFunc: SimpleTest.finish,
35 prefs: [["media.webspeech.test.fake_fsm_events", true],
36 ["media.webspeech.test.fake_recognition_service", true],
37 ["media.webspeech.recognition.timeout", 100000]]
38 });
39 </script>
40 </pre>
41 </body>
42 </html>