Index: LayoutTests/fast/events/touch/resources/compositor-touch-hit-rects-iframe.html |
diff --git a/LayoutTests/fast/events/touch/resources/compositor-touch-hit-rects-iframe.html b/LayoutTests/fast/events/touch/resources/compositor-touch-hit-rects-iframe.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..99956dfd79a6234de319e24a1ce19e777f55d56b |
--- /dev/null |
+++ b/LayoutTests/fast/events/touch/resources/compositor-touch-hit-rects-iframe.html |
@@ -0,0 +1,37 @@ |
+<!DOCTYPE html> |
+<html> |
+<head> |
+<link rel="stylesheet" href="compositor-touch-hit-rects.css"> |
+<style> |
+html { |
+ font-size: 10px; |
+} |
+.testcase, .testcase * { |
+ border: 1px solid red; |
+ padding: 5px; |
+} |
+ |
+</style> |
+</head> |
+<body id='tests'> |
+ <br><br> |
+ <div id='child' class='testcase'> |
+ Div inside iframe |
+ </div> |
+ <br><br><br> |
+ <script> |
+ if (window.testRunner) |
+ document.documentElement.setAttribute('dumpRenderTree', 'true'); |
+ |
+ function handler() {}; |
+ frameElement.addHandlers = function() { |
+ document.getElementById('child').addEventListener('touchstart', handler, false); |
+ } |
+ frameElement.removeHandlers = function() { |
+ document.getElementById('child').removeEventListener('touchstart', handler, false); |
+ } |
+ // Scroll so the div is just slighly clipped. |
+ document.body.scrollTop = 40; |
+ </script> |
+</body> |
+</html> |