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

Unified Diff: LayoutTests/fast/speech/bubble-position-scrolled.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/bubble-position-scrolled.html
diff --git a/LayoutTests/fast/speech/bubble-position-scrolled.html b/LayoutTests/fast/speech/bubble-position-scrolled.html
deleted file mode 100644
index 9a976588e0facb80213d8d43edd75f8a1a26566f..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/speech/bubble-position-scrolled.html
+++ /dev/null
@@ -1,62 +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 onSpeechChange() {
- debug('onSpeechChange');
- var rect = input.value.split(',');
- var x = parseInt(rect[0]);
- var y = parseInt(rect[1]);
-
- if (Math.abs(x - clickTargetX) > 20) {
- testFailed('x too far away from clickTargetX');
- debug('x: ' + x + ' clickTargetX: ' + clickTargetX);
- } else {
- debug('x OK');
- }
-
- if (Math.abs(y - clickTargetY) > 20) {
- testFailed('y too far away from clickTargetY');
- debug('y: ' + y + ' clickTargetY: ' + clickTargetY);
- } else {
- debug('y OK');
- }
-
- finishJSTest();
-}
-
-function run() {
- window.input = document.getElementsByTagName('input')[0];
- input.onwebkitspeechchange = onSpeechChange;
-
- var scrollAmount = 100;
- window.scrollTo(0, scrollAmount);
-
- if (window.testRunner && window.eventSender) {
- testRunner.setMockSpeechInputDumpRect(true);
- debug('Clicking the speech button.');
-
- window.clickTargetX = input.offsetLeft + input.offsetWidth - 4;
- window.clickTargetY = input.offsetTop + input.offsetHeight / 2;
-
- clickTargetY -= scrollAmount;
-
- eventSender.mouseMoveTo(clickTargetX, clickTargetY);
- eventSender.mouseDown();
- eventSender.mouseUp();
- }
-}
-
-window.onload = run;
-window.jsTestIsAsync = true;
-</script>
-<div style="height: 200px"></div>
-<input x-webkit-speech>
-<div style="height: 1000px"></div>
-</body>
-</html>
« no previous file with comments | « LayoutTests/fast/speech/bubble-position-expected.txt ('k') | LayoutTests/fast/speech/bubble-position-scrolled-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698