Wed, 31 Dec 2014 13:27:57 +0100
Ignore runtime configuration files generated during quality assurance.
michael@0 | 1 | <!DOCTYPE HTML> |
michael@0 | 2 | <html> |
michael@0 | 3 | <!-- |
michael@0 | 4 | https://bugzilla.mozilla.org/show_bug.cgi?id=650295 |
michael@0 | 5 | --> |
michael@0 | 6 | <head> |
michael@0 | 7 | <meta charset="utf-8"> |
michael@0 | 8 | <title>Test for Bug 650295 -- Behavior on recognition service error</title> |
michael@0 | 9 | <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> |
michael@0 | 10 | <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> |
michael@0 | 11 | <script type="application/javascript" src="head.js"></script> |
michael@0 | 12 | </head> |
michael@0 | 13 | <body> |
michael@0 | 14 | <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=650295">Mozilla Bug 650295</a> |
michael@0 | 15 | <p id="display"></p> |
michael@0 | 16 | <div id="content" style="display: none"> |
michael@0 | 17 | |
michael@0 | 18 | </div> |
michael@0 | 19 | <pre id="test"> |
michael@0 | 20 | <script type="text/javascript"> |
michael@0 | 21 | SimpleTest.waitForExplicitFinish(); |
michael@0 | 22 | |
michael@0 | 23 | performTest({ |
michael@0 | 24 | eventsToRequest: [ |
michael@0 | 25 | 'EVENT_START', |
michael@0 | 26 | 'EVENT_AUDIO_DATA', |
michael@0 | 27 | 'EVENT_RECOGNITIONSERVICE_ERROR' |
michael@0 | 28 | ], |
michael@0 | 29 | expectedEvents: { |
michael@0 | 30 | 'start': null, |
michael@0 | 31 | 'audiostart': null, |
michael@0 | 32 | 'speechstart': null, |
michael@0 | 33 | 'speechend': null, |
michael@0 | 34 | 'audioend': null, |
michael@0 | 35 | 'error': buildErrorCallback(errorCodes.NETWORK), |
michael@0 | 36 | 'end': null |
michael@0 | 37 | }, |
michael@0 | 38 | doneFunc: SimpleTest.finish, |
michael@0 | 39 | prefs: [["media.webspeech.test.fake_fsm_events", true], ["media.webspeech.test.fake_recognition_service", true]] |
michael@0 | 40 | }); |
michael@0 | 41 | |
michael@0 | 42 | </script> |
michael@0 | 43 | </pre> |
michael@0 | 44 | </body> |
michael@0 | 45 | </html> |