Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE HTML> | |
| 2 <html> | |
| 3 <head> | |
| 4 <style> | |
| 5 /* By applying a transform to the html element, we ensure that | |
| 6 RenderGeometryMap::pushMappingsToAncestor takes the slow bath (which doesn't pus h | |
| 7 the RenderView */ | |
| 8 html { | |
| 9 -webkit-transform: scale(1.1); | |
| 10 } | |
| 11 </style> | |
| 12 <script src="../../../resources/js-test.js"></script> | |
| 13 </head> | |
| 14 <body> | |
| 15 <p id="description"></p> | |
| 16 <div id="console"></div> | |
| 17 <div id="touchtarget" ontouchstart="alert()">Foo</div> | |
|
leviw_travelin_and_unemployed
2014/01/30 03:13:01
Why the alert? If it's for manual testing, you may
| |
| 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."); | |
| 20 | |
| 21 if (window.internals) { | |
|
leviw_travelin_and_unemployed
2014/01/30 03:13:01
Nit: braces for one-line if statement.
| |
| 22 window.internals.settings.setForceCompositingMode(true); | |
| 23 } | |
| 24 | |
| 25 var rects; | |
| 26 // Verify we actually have a hit rect in the document. | |
| 27 if (window.internals) { | |
| 28 rects = window.internals.touchEventTargetLayerRects(document); | |
| 29 shouldBe("rects.length", "1"); | |
| 30 shouldBeEqualToString("rects[0].layerRootNode.nodeName", "#document"); | |
| 31 } | |
| 32 </script> | |
| 33 </body> | |
| 34 </html> | |
| OLD | NEW |