Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(227)

Unified Diff: LayoutTests/fast/speechsynthesis/speech-synthesis-voices-changed.html

Issue 27477002: Add support for onvoiceschanged event. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@platform_speech_chromium
Patch Set: Check activeDOMObjectsAreStopped, address other feedback Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/speechsynthesis/speech-synthesis-voices-changed-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/speechsynthesis/speech-synthesis-voices-changed.html
diff --git a/LayoutTests/fast/speechsynthesis/speech-synthesis-voices-changed.html b/LayoutTests/fast/speechsynthesis/speech-synthesis-voices-changed.html
new file mode 100644
index 0000000000000000000000000000000000000000..acdb3ca4357f190b0f32484f5b3b9d4d021398fc
--- /dev/null
+++ b/LayoutTests/fast/speechsynthesis/speech-synthesis-voices-changed.html
@@ -0,0 +1,28 @@
+<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
+<html>
+<head>
+<script src="../js/resources/js-test-pre.js"></script>
+</head>
+<body>
+
+<div id="console"></div>
+
+<script>
+ speechSynthesis.onvoiceschanged = function() {
+ debug('Got onvoiceschanged event.');
+ }
+
+ var list = speechSynthesis.getVoices();
+ debug('Initially, there are ' + list.length + ' voices.');
+
+ if (window.internals)
+ window.internals.enableMockSpeechSynthesizer();
+
+ list = speechSynthesis.getVoices();
+ debug('Now there are ' + list.length + ' voices.');
+
+</script>
+
+<script src="../js/resources/js-test-post.js"></script>
+</body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/fast/speechsynthesis/speech-synthesis-voices-changed-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698