Index: LayoutTests/fast/events/touch/touch-hit-rects-in-iframe.html |
diff --git a/LayoutTests/fast/events/touch/touch-hit-rects-in-iframe.html b/LayoutTests/fast/events/touch/touch-hit-rects-in-iframe.html |
deleted file mode 100644 |
index bb2162bb19c4bf6710f40db1909698644d662043..0000000000000000000000000000000000000000 |
--- a/LayoutTests/fast/events/touch/touch-hit-rects-in-iframe.html |
+++ /dev/null |
@@ -1,58 +0,0 @@ |
-<!DOCTYPE html> |
-<html> |
-<head> |
-<style> |
-#iframe1 { |
- position: absolute; |
- top: 100px; |
- left: 50px; |
- width: 200px; |
- height: 200px; |
-} |
-#iframe2 { |
- position: absolute; |
- top: 100px; |
- left: 400px; |
- width: 200px; |
- height: 200px; |
-} |
-</style> |
-<body onload="runTest();"> |
-<div>This test validates that touch hit tests rects are created in the coordinates of the outermost view, not their containing view. |
-This test only works in DumpRenderTree.</div> |
-<div id="console"></div> |
-<iframe id="iframe1" src="resources/frame-with-touch-handler.html"></iframe> |
-<iframe id="iframe2"></iframe> |
-<iframe id="iframe3" src="resources/frame-with-document-touch-handler.html"></iframe> |
-<script> |
- |
-var iframeDocument = document.getElementById("iframe2").contentWindow.document; |
-iframeDocument.open('text/html', 'replace'); |
-iframeDocument.write("<!DOCTYPE html>\n<html><body><iframe src=\"resources/frame-with-touch-handler.html\" style=\"position: relative; top: 50px;\"></iframe></body>"); |
-iframeDocument.close(); |
- |
-function log(msg) { |
- var span = document.createElement("span"); |
- document.getElementById("console").appendChild(span); |
- span.innerHTML = msg + '<br />'; |
-} |
- |
-function sortRects(a, b) { |
- return a.top - b.top; |
-} |
- |
-function runTest() { |
- if (!window.testRunner) |
- return; |
- window.testRunner.dumpAsText(); |
- |
- rects = window.internals.touchEventTargetClientRects(document); |
- var sortedRects = new Array(); |
- for (var i = 0; i < rects.length; ++i) |
- sortedRects[i] = rects[i]; |
- sortedRects.sort(sortRects); |
- for (var i = 0; i < rects.length; ++i) |
- log("[" + i + "]: (" + sortedRects[i].left + ", " + sortedRects[i].top + ", " + sortedRects[i].width + ", " + sortedRects[i].height + ")"); |
-} |
-</script> |
-</body> |