Skip to content
This repository has been archived by the owner on Sep 26, 2023. It is now read-only.

Commit

Permalink
Use webkitSpeechRecognition to test SpeechRecognition members
Browse files Browse the repository at this point in the history
  • Loading branch information
foolip committed Apr 28, 2021
1 parent 0a7a288 commit f173f78
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions custom-tests.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@
"type": "instance",
"src": "var constructor = (window.OfflineAudioContext || window.webkitOfflineAudioContext); if (!constructor) {return false;} return new constructor(2,44100*40,44100);"
},
"speechRecognition": {
"type": "instance",
"src": "var constructor = (window.SpeechRecognition || window.webkitSpeechRecognition); if (!constructor) {return false;} return new constructor();"
},
"webGL": {
"type": "instance",
"src": "var canvas = document.createElement('canvas'); if (!canvas) {return false}; return canvas.getContext('webgl2') || canvas.getContext('webgl') || canvas.getContext('experimental-webgl');"
Expand Down Expand Up @@ -858,6 +862,11 @@
"ShadowRoot": {
"__base": "var el = document.createElement('div'); if (!el.attachShadow) {return false;} el.attachShadow({mode: 'open'}); var instance = el.shadowRoot;"
},
"SpeechRecognition": {
"__resources": ["speechRecognition"],
"__base": "var instance = reusableInstances.speechRecognition;",
"__test": "return 'SpeechRecognition' in self"
},
"StereoPannerNode": {
"__resources": ["audioContext"],
"__base": "if (!reusableInstances.audioContext) {return false;} var instance = reusableInstances.audioContext.createStereoPanner();"
Expand Down

0 comments on commit f173f78

Please sign in to comment.