4 https://bugzilla.mozilla.org/show_bug.cgi?id=1248897
5 The intent of this file is to test the speech recognition service behavior
6 whenever the server returns a 400 error
10 <title>Test for Bug
1248897 -- Online speech service
</title>
11 <script type=
"application/javascript" src=
"/tests/SimpleTest/SimpleTest.js"></script>
12 <link rel=
"stylesheet" type=
"text/css" href=
"/tests/SimpleTest/test.css"/>
13 <script type=
"application/javascript" src=
"head.js"></script>
16 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=1248897">Mozilla Bug
1248897</a>
18 <div id=
"content" style=
"display: none">
22 <script type=
"text/javascript">
23 SimpleTest
.waitForExplicitFinish();
32 'error': buildErrorCallback(errorCodes
.NETWORK
),
36 doneFunc
: SimpleTest
.finish
,
37 prefs
: [["media.webspeech.recognition.enable", true],
38 ["media.webspeech.recognition.force_enable", true],
39 ["media.webspeech.service.endpoint",
40 "http://mochi.test:8888/tests/dom/media/webspeech/recognition/test/http_requesthandler.sjs?return400=1"],
41 ["media.webspeech.recognition.timeout", 100000]]