blob: af968bd97cf41e88dd5ccf01ad10adb70799da79 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../../js/resources/js-test-pre.js"></script>
</head>
<body>
<script type="text/javascript">
description('Tests the basics of the SpeechRecognitionError interface');
function run() {
// Check availability of constructor.
shouldBeTrue("'webkitSpeechRecognitionError' in window");
shouldBeFalse("webkitSpeechRecognitionError == null");
// Check for members of SpeechRecognitionError.
shouldBe("webkitSpeechRecognitionError.OTHER", "0");
shouldBe("webkitSpeechRecognitionError.NO_SPEECH", "1");
shouldBe("webkitSpeechRecognitionError.ABORTED", "2");
shouldBe("webkitSpeechRecognitionError.AUDIO_CAPTURE", "3");
shouldBe("webkitSpeechRecognitionError.NETWORK", "4");
shouldBe("webkitSpeechRecognitionError.NOT_ALLOWED", "5");
shouldBe("webkitSpeechRecognitionError.SERVICE_NOT_ALLOWED", "6");
shouldBe("webkitSpeechRecognitionError.BAD_GRAMMAR", "7");
shouldBe("webkitSpeechRecognitionError.LANGUAGE_NOT_SUPPORTED", "8");
finishJSTest();
}
window.onload = run;
window.jsTestIsAsync = true;
</script>
<script src="../../js/resources/js-test-post.js"></script>
</body>
</html>