blob: 7014df22dc0f6d2a35985e7f20b38e4394337ca6 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../../resources/js-test.js"></script>
</head>
<body>
<div id="console"></div>
<script>
if (window.internals)
internals.enableMockSpeechSynthesizer(window);
if (window.testRunner)
testRunner.waitUntilDone();
window.jsTestIsAsync = true;
var list = speechSynthesis.getVoices();
debug('Initially, there are ' + list.length + ' voices.');
speechSynthesis.onvoiceschanged = function() {
debug('Got onvoiceschanged event.');
list = speechSynthesis.getVoices();
debug('Now there are ' + list.length + ' voices.');
finishJSTest();
}
</script>
</body>
</html>