historical.html (1021B)
1 <!doctype html> 2 <title>Historical Speech API features</title> 3 <script src="/resources/testharness.js"></script> 4 <script src="/resources/testharnessreport.js"></script> 5 <div id="log"></div> 6 <script> 7 [ 8 "SpeechRecognitionError", 9 "webkitSpeechGrammar", 10 "webkitSpeechGrammarList", 11 "webkitSpeechRecognition", 12 "webkitSpeechRecognitionError", 13 "webkitSpeechRecognitionEvent", 14 ].forEach(name => { 15 test(() => { 16 assert_false(name in window); 17 }, `${name} interface should not exist`); 18 }); 19 20 test(() => { 21 assert_implements('SpeechRecognition' in window, 'SpeechRecognition exposed'); 22 assert_false("serviceURI" in SpeechRecognition.prototype); 23 }, "SpeechRecognition's serviceURI attribute should not exist"); 24 25 [ 26 "interpretation", 27 "emma", 28 ].forEach(name => { 29 test(() => { 30 assert_implements('SpeechRecognitionEvent' in window, 'SpeechRecognitionEvent exposed'); 31 assert_false(name in SpeechRecognitionEvent.prototype); 32 }, `SpeechRecognitionEvent's ${name} attribute should not exist`); 33 }); 34 </script>