| Index: LayoutTests/platform/chromium/fast/events/touch/compositor-touch-hit-rects.html
|
| diff --git a/LayoutTests/platform/chromium/fast/events/touch/compositor-touch-hit-rects.html b/LayoutTests/platform/chromium/fast/events/touch/compositor-touch-hit-rects.html
|
| deleted file mode 100644
|
| index 68bf3baa2a687ba8a2202f410c2d7b6e09c6470e..0000000000000000000000000000000000000000
|
| --- a/LayoutTests/platform/chromium/fast/events/touch/compositor-touch-hit-rects.html
|
| +++ /dev/null
|
| @@ -1,123 +0,0 @@
|
| -<!DOCTYPE html>
|
| -<html>
|
| -<head>
|
| -<style>
|
| -#transformedChild {
|
| - -webkit-transform: rotate3d(0.2, 1, 0, 35grad);
|
| -}
|
| -#absoluteChild {
|
| - position: absolute;
|
| - top: 300px;
|
| -}
|
| -#relativeChild {
|
| - position: relative;
|
| - top: 200px;
|
| -}
|
| -#overhangingContainer {
|
| - height: 10px;
|
| -}
|
| -#overhangingFloatingChild {
|
| - width: 100px;
|
| - float: left;
|
| -}
|
| -#tests {
|
| - font: 10px Ahem;
|
| -}
|
| -body {
|
| - height: 1000px;
|
| -}
|
| -</style>
|
| -</head>
|
| -<body>
|
| -<p id="description">This tests verifies the hit test regions given to the compositor. It can only be run in DumpRenderTree.
|
| -The outputted rects should cover the hit test regions of all the listed elements.</p>
|
| -<div id="console"></div>
|
| -
|
| -<div id="tests">
|
| - <div id="normalFlow">
|
| - Lorem ipsum
|
| - <span>sum</span>.
|
| - </div>
|
| - <div id="absoluteChildContainer">
|
| - Lorem ipsum
|
| - <span id="absoluteChild">Absolute child</span>
|
| - </div>
|
| - <div id="relativeChildContainer">
|
| - Lorem ipsum
|
| - <span id="relativeChild">Relative child</span>
|
| - </div>
|
| - <div id="overhangingContainer">
|
| - <div id="overhangingFloatingChild">Overhanging float overhanging float overhanging float overhanging float</div>
|
| - </div>
|
| - <div id="transformedChildContainer">
|
| - <div id="transformedChild">Transformed</div>
|
| - </div>
|
| - <div>
|
| - <b id="continuation">This b tag
|
| - <div>causes a</div>
|
| - continuation</b>
|
| - </div>
|
| - <div>
|
| - <span id="inlineAbsoluteChildContainer">
|
| - Inline with absolute child.
|
| - <span id="absoluteChild">Absolute child in inline.</span>
|
| - </span>
|
| - </div>
|
| -</div>
|
| -<script>
|
| -
|
| -
|
| -function listener() { }
|
| -
|
| -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 testElementWithId(id)
|
| -{
|
| - element = document.getElementById(id);
|
| - element.addEventListener('touchstart', listener, false);
|
| - logRects(id);
|
| - element.removeEventListener('touchstart', listener, false);
|
| -}
|
| -
|
| -function logRects(testName) {
|
| -
|
| - 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(testName + "[" + i + "]: (" + sortedRects[i].left + ", " + sortedRects[i].top + ", " + sortedRects[i].width + ", " + sortedRects[i].height + ")");
|
| -}
|
| -
|
| -function runTest() {
|
| - if (!window.testRunner)
|
| - return;
|
| -
|
| - window.testRunner.dumpAsText();
|
| - testElementWithId("normalFlow");
|
| - testElementWithId("absoluteChildContainer");
|
| - testElementWithId("relativeChildContainer");
|
| - testElementWithId("overhangingContainer");
|
| - testElementWithId("transformedChildContainer");
|
| - testElementWithId("continuation");
|
| - testElementWithId("inlineAbsoluteChildContainer");
|
| -
|
| - document.addEventListener('touchstart', listener, false);
|
| - logRects("document");
|
| -
|
| - var testContainer = document.getElementById("tests");
|
| - testContainer.parentNode.removeChild(testContainer);
|
| -}
|
| -
|
| -runTest();
|
| -</script>
|
| -</body>
|
|
|