Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(57)

Side by Side Diff: LayoutTests/fast/events/touch/touch-rect-assert-first-layer-special.html

Issue 129813009: Fix RenderGeometryMap ASSERT in touch hit rect computation (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Tweaks Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/fast/events/touch/touch-rect-assert-first-layer-special-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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="foo()">Foo</div>
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)
22 window.internals.settings.setForceCompositingMode(true);
23
24 var rects;
25 // Verify we actually have a hit rect in the document.
26 if (window.internals) {
27 rects = window.internals.touchEventTargetLayerRects(document);
28 shouldBe("rects.length", "1");
29 shouldBeEqualToString("rects[0].layerRootNode.nodeName", "#document");
30 }
31 </script>
32 </body>
33 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/events/touch/touch-rect-assert-first-layer-special-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698