OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script src="../fast/js/resources/js-test-pre.js"></script> | 3 <script src="../fast/js/resources/js-test-pre.js"></script> |
4 <style> | 4 <style> |
5 #div1 { position: absolute; left: 100px; top: 100px; width: 200px; heigh
t: 20px; } | 5 #div1 { position: absolute; left: 100px; top: 100px; width: 200px; heigh
t: 20px; } |
6 </style> | 6 </style> |
7 </head> | 7 </head> |
8 <body onload="runTests()"> | 8 <body onload="runTests()"> |
9 | 9 |
10 <div id=div1></div> | 10 <div id=div1></div> |
(...skipping 21 matching lines...) Expand all Loading... |
32 shouldEvaluateTo('zoomableArea.height', 20); | 32 shouldEvaluateTo('zoomableArea.height', 20); |
33 | 33 |
34 } | 34 } |
35 | 35 |
36 function runTests() | 36 function runTests() |
37 { | 37 { |
38 if (window.testRunner && window.internals && internals.bestZoomableAreaF
orTouchPoint) { | 38 if (window.testRunner && window.internals && internals.bestZoomableAreaF
orTouchPoint) { |
39 description('Test that targetted area is picked even if the touch ar
ea is not fully contained.'); | 39 description('Test that targetted area is picked even if the touch ar
ea is not fully contained.'); |
40 testRunner.dumpAsText(); | 40 testRunner.dumpAsText(); |
41 testRunner.waitUntilDone(); | 41 testRunner.waitUntilDone(); |
42 // Mouse events only work after an initial layout | |
43 document.body.offsetLeft; | |
44 testDirectTouches(); | 42 testDirectTouches(); |
45 isSuccessfullyParsed(); | 43 isSuccessfullyParsed(); |
46 testRunner.notifyDone(); | 44 testRunner.notifyDone(); |
47 } | 45 } |
48 } | 46 } |
49 </script> | 47 </script> |
50 </body> | 48 </body> |
51 </html> | 49 </html> |
OLD | NEW |