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

Unified Diff: LayoutTests/fast/events/touch/touch-hit-rects-in-iframe.html

Issue 17471008: Rework compositor touch hit testing (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: CR feedback - accumulate LayoutRects instead of IntRects, disable when page isn't composited. Also… Created 7 years, 5 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/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>

Powered by Google App Engine
This is Rietveld 408576698