haikuwebkit/LayoutTests/fast/speechrecognition/start-recognition-twice-exc...

14 lines
333 B
HTML

<!DOCTYPE html>
<html>
<body>
<script src="../../resources/js-test.js"></script>
<script>
description("Verify that starting a started recognition throws exception.");
shouldNotThrow("recognition = new webkitSpeechRecognition();");
shouldNotThrow("recognition.start()");
shouldThrow("recognition.start()");
</script>
</body>
</html>