OLD | NEW |
1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <style> | 4 <style> |
5 /* By applying a transform to the html element, we ensure that | 5 /* By applying a transform to the html element, we ensure that |
6 RenderGeometryMap::pushMappingsToAncestor takes the slow bath (which doesn't pus
h | 6 RenderGeometryMap::pushMappingsToAncestor takes the slow bath (which doesn't pus
h |
7 the RenderView */ | 7 the RenderView */ |
8 html { | 8 html { |
9 -webkit-transform: scale(1.1); | 9 transform: scale(1.1); |
10 } | 10 } |
11 </style> | 11 </style> |
12 <script src="../../../resources/js-test.js"></script> | 12 <script src="../../../resources/js-test.js"></script> |
13 </head> | 13 </head> |
14 <body> | 14 <body> |
15 <p id="description"></p> | 15 <p id="description"></p> |
16 <div id="console"></div> | 16 <div id="console"></div> |
17 <div id="touchtarget" ontouchstart="foo()">Foo</div> | 17 <div id="touchtarget" ontouchstart="foo()">Foo</div> |
18 <script> | 18 <script> |
19 description("Make sure we don't ASSERT when the first layer is special and c
an't use the RenderGeometryMap fast path - crbug.com/339141."); | 19 description("Make sure we don't ASSERT when the first layer is special and c
an't use the RenderGeometryMap fast path - crbug.com/339141."); |
20 | 20 |
21 var rects; | 21 var rects; |
22 // Verify we actually have a hit rect in the document. | 22 // Verify we actually have a hit rect in the document. |
23 if (window.internals) { | 23 if (window.internals) { |
24 rects = window.internals.touchEventTargetLayerRects(document); | 24 rects = window.internals.touchEventTargetLayerRects(document); |
25 shouldBe("rects.length", "1"); | 25 shouldBe("rects.length", "1"); |
26 shouldBeEqualToString("rects[0].layerAssociatedNode.nodeName", "#document"
); | 26 shouldBeEqualToString("rects[0].layerAssociatedNode.nodeName", "#document"
); |
27 } | 27 } |
28 </script> | 28 </script> |
29 </body> | 29 </body> |
30 </html> | 30 </html> |
OLD | NEW |