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

Unified Diff: LayoutTests/fast/speech/input-text-speechstart.html

Issue 264973003: Remove layout tests for the legacy x-webkit-speech API (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 8 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
Index: LayoutTests/fast/speech/input-text-speechstart.html
diff --git a/LayoutTests/fast/speech/input-text-speechstart.html b/LayoutTests/fast/speech/input-text-speechstart.html
deleted file mode 100644
index 6d6436781327dcfbc6168d080257b86b01aaae00..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/speech/input-text-speechstart.html
+++ /dev/null
@@ -1,37 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
-<html>
-<head>
-<script src="../../resources/js-test.js"></script>
-</head>
-<body>
-<script type="text/javascript">
-description('Tests for triggering speech directly in a &lt;input type="text" speech>.');
-
-function startSpeechInput(id) {
- // Test that we can trigger speech with a method call to the input
- // element, so the user agent could toggle speech via a keypress,
- // for example. Select is required in order to ensure that the result
- // will be set in input during the generated TextInput event.
- var input = document.getElementById(id);
- input.select();
- internals.startSpeechInput(input);
-}
-
-function onWebkitSpeechChange() {
- shouldBeEqualToString('document.getElementById("speechInput").value', 'Pictures of a sunset');
- finishJSTest();
-}
-
-function run() {
- if (window.testRunner && window.eventSender) {
- testRunner.addMockSpeechInputResult('Pictures of a sunset', 1.0, '');
- startSpeechInput("speechInput");
- }
-}
-
-window.onload = run;
-window.jsTestIsAsync = true;
-</script>
-<input id='speechInput' x-webkit-speech onwebkitspeechchange="onWebkitSpeechChange()">
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698