Source code

Revision control

Other Tools

<!DOCTYPE HTML>
<html>
<!--
-->
<head>
<meta charset="utf-8">
<title>Test for Bug 1254378: Web Speech API check all classes are present</title>
<script type="application/javascript">
window.SimpleTest = parent.SimpleTest;
window.is = parent.is;
window.isnot = parent.isnot;
window.ok = parent.ok;
</script>
</head>
<body>
<script type="application/javascript">
/** Test for Bug 1254378 **/
function onVoicesChanged() {
isnot(speechSynthesis.getVoices().length, 0, "Voices added");
speechSynthesis.removeEventListener("voiceschanged", onVoicesChanged);
SimpleTest.finish();
}
speechSynthesis.addEventListener("voiceschanged", onVoicesChanged);
is(speechSynthesis.getVoices().length, 0, "No voices added initially");
</script>
</body>
</html>