Index: LayoutTests/compositing/gestures/gesture-tapHighlight-nested-cursor.html |
diff --git a/LayoutTests/compositing/gestures/gesture-tapHighlight-nested-cursor.html b/LayoutTests/compositing/gestures/gesture-tapHighlight-nested-cursor.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..7dc951830a792d15d36b70f10d0b566698d4a660 |
--- /dev/null |
+++ b/LayoutTests/compositing/gestures/gesture-tapHighlight-nested-cursor.html |
@@ -0,0 +1,46 @@ |
+<!DOCTYPE html> |
+<html> |
+<head> |
+<script src="../../resources/js-test.js"></script> |
+<link rel="stylesheet" type="text/css" href="resources/link-highlight-style.css"> |
+</head> |
+<body onload="runTest();"> |
+ <style> |
+ #outerDiv { |
+ width: 150px; |
+ } |
+ #outerDiv, #outerDiv div { |
+ padding: 15px; |
+ border-style: solid; |
+ } |
+ </style> |
+ <div class="opaqueHighlight" id="outerDiv" style="cursor: pointer"> |
Rick Byers
2014/07/30 15:35:51
Nice, this test looks great!
|
+ <div style="cursor: pointer;"> |
+ <div style="cursor: default;"> |
+ <div id="innerDiv"></div> |
+ </div> |
+ </div> |
+ </div> |
+ |
+ This test is successful if there is no green rectangle above. |
+ |
+ <script> |
+ function runTest() { |
+ var clientRect = document.getElementById("innerDiv").getBoundingClientRect(); |
+ x = (clientRect.left + clientRect.right) / 2; |
+ y = (clientRect.top + clientRect.bottom) / 2; |
+ if (window.testRunner) { |
+ testRunner.dumpAsTextWithPixelResults(); |
+ testRunner.waitUntilDone(); |
+ } |
+ |
+ if (window.eventSender) { |
+ eventSender.gestureShowPress(x, y); |
+ window.setTimeout(function() { window.testRunner.notifyDone(); }, 0); |
+ } else { |
+ debug("This test requires DumpRenderTree."); |
+ } |
+ } |
+ </script> |
+</body> |
+</html> |