Index: LayoutTests/fast/events/touch/resources/compositor-touch-hit-rects-iframe-doc.html |
diff --git a/LayoutTests/fast/events/touch/resources/compositor-touch-hit-rects-iframe-doc.html b/LayoutTests/fast/events/touch/resources/compositor-touch-hit-rects-iframe-doc.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f012a4e344079340c3fd71afe006264d629f3d49 |
--- /dev/null |
+++ b/LayoutTests/fast/events/touch/resources/compositor-touch-hit-rects-iframe-doc.html |
@@ -0,0 +1,35 @@ |
+<!DOCTYPE html> |
+<html> |
+<head> |
+<link rel="stylesheet" href="compositor-touch-hit-rects.css"> |
+<style> |
+html { |
+ font-size: 10px; |
+} |
+#tests { |
+ /* Make sure the html/body nodes have 0 height */ |
+ position: absolute; |
+} |
+</style> |
+</head> |
+<body> |
+ <div id='tests'> |
+ Document with touch handlers. |
+ <br><br> |
+ <br><br><br> |
+ </div> |
+ <script> |
+ if (window.testRunner) |
+ document.documentElement.setAttribute('dumpRenderTree', 'true'); |
+ |
+ function handler() {}; |
+ frameElement.addHandlers = function() { |
+ document.addEventListener('touchstart', handler, false); |
+ } |
+ frameElement.removeHandlers = function() { |
+ document.removeEventListener('touchstart', handler, false); |
+ } |
+ </script> |
+ |
+</body> |
+</html> |