blob: dc5d3f5c1df6e254b05ba1decf353abc3ccbef13 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
<!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>
|