| OLD | NEW |
| 1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../../js/resources/js-test-pre.js"></script> | 4 <script src="../../js/resources/js-test-pre.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 { |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 layer.className = ''; | 42 layer.className = ''; |
| 43 | 43 |
| 44 // Verify we now have a hit rect on the document. | 44 // Verify we now have a hit rect on the document. |
| 45 // (layout and compositing update are done by touchEventTargetLayerRects().) | 45 // (layout and compositing update are done by touchEventTargetLayerRects().) |
| 46 if (window.internals) { | 46 if (window.internals) { |
| 47 rects = window.internals.touchEventTargetLayerRects(document); | 47 rects = window.internals.touchEventTargetLayerRects(document); |
| 48 shouldBe("rects.length", "1"); | 48 shouldBe("rects.length", "1"); |
| 49 shouldBeEqualToString("rects[0].layerRootNode.nodeName", "#document"); | 49 shouldBeEqualToString("rects[0].layerRootNode.nodeName", "#document"); |
| 50 } | 50 } |
| 51 </script> | 51 </script> |
| 52 <script src="../../js/resources/js-test-post.js"></script> | |
| 53 </body> | 52 </body> |
| 54 </html> | 53 </html> |
| OLD | NEW |