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 <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> |