Backed out changeset b462e7b742d8 (bug 1908261) for causing multiple reftest failures...
[gecko.git] / dom / media / webspeech / recognition / test / test_recognition_service_error.html
blobe8e59e2afc530e6b7e74c257c0ba75057ccdf21a
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 recognition service 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: [
25 'EVENT_RECOGNITIONSERVICE_ERROR'
27 expectedEvents: {
28 'start': null,
29 'audiostart': null,
30 'speechstart': null,
31 'speechend': null,
32 'audioend': null,
33 'error': buildErrorCallback(errorCodes.NETWORK),
34 'end': null
36 doneFunc: SimpleTest.finish,
37 prefs: [["media.webspeech.test.fake_fsm_events", true],
38 ["media.webspeech.test.fake_recognition_service", true],
39 ["media.webspeech.recognition.timeout", 100000]]
40 });
42 </script>
43 </pre>
44 </body>
45 </html>