mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-13 20:14:57 -10:00
Automatic update from web-platform-tests Import Web Speech API conformance tests (#11550) From https://github.com/w3c/speech-api/tree/a69322cdcf00aff2b77307a0a9c0602702d9254a/conformance Changes: * CRLF -> LF * Renamed to match WPT conventions * Made less verbose * Don't use webkitSpeechRecognition * The "basics" test split into its own test instead of run in webspeech.js -- wpt-commits: 0dd7e32fc4638c07f3760d85e6fcdf0c347888df wpt-pr: 11550
15 lines
597 B
HTML
15 lines
597 B
HTML
<!DOCTYPE html>
|
|
<title>SpeechRecognition basics</title>
|
|
<script src="/resources/testharness.js"></script>
|
|
<script src="/resources/testharnessreport.js"></script>
|
|
<script>
|
|
test(function() {
|
|
const reco = new SpeechRecognition();
|
|
assert_equals(reco.grammars.length, 0, 'SpeechRecognition.grammars.length');
|
|
assert_equals(reco.lang, '', 'SpeechRecognition.lang');
|
|
assert_false(reco.continuous, 'SpeechRecognition.continuous');
|
|
assert_false(reco.interimResults, 'SpeechRecognition.interimResults');
|
|
assert_equals(reco.maxAlternatives, 1, 'SpeechRecognition.maxAlternatives');
|
|
});
|
|
</script>
|