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

Unified Diff: LayoutTests/fast/speech/input-readonly-and-disabled.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-readonly-and-disabled.html
diff --git a/LayoutTests/fast/speech/input-readonly-and-disabled.html b/LayoutTests/fast/speech/input-readonly-and-disabled.html
deleted file mode 100644
index 399990a926fcc4f66e298fe084eb7dd82a4b08df..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/speech/input-readonly-and-disabled.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 speech button click with readonly and disabled input fields.');
-
-function onWebkitSpeechChange() {
- testFailed('Received unexpected onwebkitspeechchange callback.');
- finishJSTest();
-}
-
-function testField(index) {
- // Clicking the speech button should fill in mock speech-recognized text.
- var allInputFields = document.getElementsByTagName('input');
- var input = allInputFields[index];
- var x = input.offsetLeft + input.offsetWidth - 4;
- var y = input.offsetTop + input.offsetHeight / 2;
- eventSender.mouseMoveTo(x, y);
- eventSender.mouseDown();
- eventSender.mouseUp();
- setTimeout(function() {
- if (index < allInputFields.length - 1) {
- testField(index +1);
- } else {
- finishJSTest();
- }
- }, 50);
-}
-
-function run() {
- if (window.testRunner && window.eventSender) {
- testRunner.addMockSpeechInputResult('Test', 1.0, '');
- testField(0);
- }
-}
-
-window.onload = run;
-window.jsTestIsAsync = true;
-</script>
-<input id='readonlyInput' x-webkit-speech onwebkitspeechchange="onWebkitSpeechChange()" readonly>
-<input id='disabledInput' x-webkit-speech onwebkitspeechchange="onWebkitSpeechChange()" disabled>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698