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 #div0 { position: absolute; left: 50px; top: 50px; width: 300px; height:
300px; box-sizing: border-box; } | 5 #div0 { position: absolute; left: 50px; top: 50px; width: 300px; height:
300px; box-sizing: border-box; } |
6 #div1 { position: absolute; left: 50px; top: 50px; width: 200px; height:
100px; box-sizing: border-box; } | 6 #div1 { position: absolute; left: 50px; top: 50px; width: 200px; height:
100px; box-sizing: border-box; } |
7 #div2 { position: absolute; left: 50px; top: 150px; width: 200px; height
: 100px; padding: 10px; box-sizing: border-box; } | 7 #div2 { position: absolute; left: 50px; top: 150px; width: 200px; height
: 100px; padding: 10px; box-sizing: border-box; } |
8 </style> | 8 </style> |
9 </head> | 9 </head> |
10 <body onload="runTests()"> | 10 <body onload="runTests()"> |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 shouldEvaluateTo('zoomableArea.width', 300); | 54 shouldEvaluateTo('zoomableArea.width', 300); |
55 shouldEvaluateTo('zoomableArea.height',300); | 55 shouldEvaluateTo('zoomableArea.height',300); |
56 } | 56 } |
57 | 57 |
58 function runTests() | 58 function runTests() |
59 { | 59 { |
60 if (window.testRunner && window.internals && internals.bestZoomableAreaF
orTouchPoint) { | 60 if (window.testRunner && window.internals && internals.bestZoomableAreaF
orTouchPoint) { |
61 description('Test basic cases of tap-to-zoom mechanics.'); | 61 description('Test basic cases of tap-to-zoom mechanics.'); |
62 testRunner.dumpAsText(); | 62 testRunner.dumpAsText(); |
63 testRunner.waitUntilDone(); | 63 testRunner.waitUntilDone(); |
| 64 // Mouse events only work after an initial layout |
| 65 document.body.offsetLeft; |
64 testDirectTouches(); | 66 testDirectTouches(); |
65 isSuccessfullyParsed(); | 67 isSuccessfullyParsed(); |
66 testRunner.notifyDone(); | 68 testRunner.notifyDone(); |
67 } | 69 } |
68 } | 70 } |
69 </script> | 71 </script> |
70 </body> | 72 </body> |
71 </html> | 73 </html> |
OLD | NEW |