OLD | NEW |
1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../../../resources/js-test.js"></script> | 4 <script src="../../../resources/js-test.js"></script> |
5 <style> | 5 <style> |
6 #layer { | 6 #layer { |
7 position: relative; | 7 position: relative; |
8 left: 10px; | 8 left: 10px; |
9 } | 9 } |
10 .composited { | 10 .composited { |
11 -webkit-transform: translate3d(0, 0, 0); | 11 transform: translate3d(0, 0, 0); |
12 } | 12 } |
13 </style> | 13 </style> |
14 </head> | 14 </head> |
15 <body> | 15 <body> |
16 <div id="layer" class="composited">A layer that may or may not be composited</di
v> | 16 <div id="layer" class="composited">A layer that may or may not be composited</di
v> |
17 <p id="description"></p> | 17 <p id="description"></p> |
18 <div id="console"></div> | 18 <div id="console"></div> |
19 <script> | 19 <script> |
20 description("Make sure we don't crash when a layer with a touch event handle
r becomes non-composited"); | 20 description("Make sure we don't crash when a layer with a touch event handle
r becomes non-composited"); |
21 | 21 |
(...skipping 19 matching lines...) Expand all Loading... |
41 // Verify we now have a hit rect on the document. | 41 // Verify we now have a hit rect on the document. |
42 // (layout and compositing update are done by touchEventTargetLayerRects().) | 42 // (layout and compositing update are done by touchEventTargetLayerRects().) |
43 if (window.internals) { | 43 if (window.internals) { |
44 rects = window.internals.touchEventTargetLayerRects(document); | 44 rects = window.internals.touchEventTargetLayerRects(document); |
45 shouldBe("rects.length", "1"); | 45 shouldBe("rects.length", "1"); |
46 shouldBeEqualToString("rects[0].layerAssociatedNode.nodeName", "#document"
); | 46 shouldBeEqualToString("rects[0].layerAssociatedNode.nodeName", "#document"
); |
47 } | 47 } |
48 </script> | 48 </script> |
49 </body> | 49 </body> |
50 </html> | 50 </html> |
OLD | NEW |