<!DOCTYPE html> | |
<html> | |
<body> | |
<script src="../../resources/testharness.js"></script> | |
<script src="../../resources/testharnessreport.js"></script> | |
<script> | |
promise_test(async () => { | |
if (window.testRunner) | |
testRunner.clearMockMediaDevices(); | |
const recognition = new webkitSpeechRecognition(); | |
recognition.start(); | |
return new Promise(resolve => recognition.onerror = resolve); | |
}, "Speech recognition without devices"); | |
</script> | |
</body> | |
</html> |