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

Unified Diff: LayoutTests/fast/speech/input-onspeechchange-event.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-onspeechchange-event.html
diff --git a/LayoutTests/fast/speech/input-onspeechchange-event.html b/LayoutTests/fast/speech/input-onspeechchange-event.html
deleted file mode 100644
index 2a1ea488fada5c0323d37c8500bf7b9c001e8cbb..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/speech/input-onspeechchange-event.html
+++ /dev/null
@@ -1,46 +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 the onspeechchange event with &lt;input type="text" speech>.');
-
-var results;
-function onSpeechChange(event) {
- results = event.results;
- shouldBeEqualToString('document.getElementById("speechInput").value', 'Green eggs and ham');
- shouldEvaluateTo('results.length', 3);
- shouldBeEqualToString('results[0].utterance', 'Green eggs and ham');
- shouldEvaluateTo('results[0].confidence', 0.8);
- shouldBeEqualToString('results[1].utterance', 'Green x and ham');
- shouldEvaluateTo('results[1].confidence', 0.5);
- shouldBeEqualToString('results[2].utterance', '3 x and am');
- shouldEvaluateTo('results[2].confidence', 0.2);
- shouldBeNull("results.item(-1)");
- finishJSTest();
-}
-
-function run() {
- if (window.testRunner && window.eventSender) {
- testRunner.addMockSpeechInputResult('Green eggs and ham', 0.8, '');
- testRunner.addMockSpeechInputResult('Green x and ham', 0.5, '');
- testRunner.addMockSpeechInputResult('3 x and am', 0.2, '');
-
- // Clicking the speech button should fill in mock speech-recognized text.
- var input = document.getElementById('speechInput');
- var x = input.offsetLeft + input.offsetWidth - 4;
- var y = input.offsetTop + input.offsetHeight / 2;
- eventSender.mouseMoveTo(x, y);
- eventSender.mouseDown();
- eventSender.mouseUp();
- }
-}
-
-window.onload = run;
-window.jsTestIsAsync = true;
-</script>
-<input id='speechInput' x-webkit-speech onwebkitspeechchange="onSpeechChange(event)">
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698