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

Unified Diff: LayoutTests/fast/speech/change-focus.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/change-focus.html
diff --git a/LayoutTests/fast/speech/change-focus.html b/LayoutTests/fast/speech/change-focus.html
deleted file mode 100644
index ae0bcf768d125ee5de2f47f8e417808de6d42ba5..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/speech/change-focus.html
+++ /dev/null
@@ -1,53 +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 &lt;input type="text" speech>.');
-
-function startSpeechInput(id) {
- // Clicking the speech button should fill in mock speech-recognized text.
- debug('Clicking on speech button.');
- var input = document.getElementById(id);
- var isRTL = input.dir == 'rtl';
- var x = 0;
- if (isRTL)
- x = input.offsetLeft + 4;
- else
- x = input.offsetLeft + input.offsetWidth - 4;
- var y = input.offsetTop + input.offsetHeight / 2;
- if (!isRTL && input.style.paddingRight.length)
- x -= parseInt(input.style.paddingRight.substr(0, input.style.paddingRight.length - 2));
- else if (isRTL && input.style.paddingLeft.length)
- x += parseInt(input.style.paddingLeft.substr(0, input.style.paddingLeft.length - 2));
- eventSender.mouseMoveTo(x, y);
- eventSender.mouseDown();
- eventSender.mouseUp();
-}
-
-function run() {
- if (window.testRunner && window.eventSender) {
- testRunner.addMockSpeechInputResult('Pictures of the moon', 1.0, '');
- startSpeechInput('input1');
- }
-}
-
-function onFocus() {
- document.getElementById('input2').focus();
-}
-
-function onSpeechChange() {
- shouldBeEqualToString('document.getElementById("input1").value', 'Pictures of the moon');
- shouldBeEqualToString('document.getElementById("input2").value', '');
- finishJSTest();
-}
-
-window.onload = run;
-window.jsTestIsAsync = true;
-</script>
-<input id='input1' x-webkit-speech onfocus="onFocus()" onwebkitspeechchange="onSpeechChange()">
-<input id='input2'>
-</body>
-</html>
« no previous file with comments | « LayoutTests/fast/speech/bubble-position-scrolled-expected.txt ('k') | LayoutTests/fast/speech/change-focus-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698