mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-10 21:28:04 +02:00
Automatic update from web-platform-tests Import Web Speech API conformance tests (#11550)
From a69322cdcf/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
14 lines
597 B
HTML
14 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>
|