OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <title>Touch Adjustment : Disabled form elements - bug 92093</title> | 4 <title>Touch Adjustment : Disabled form elements - bug 92093</title> |
5 <script src="../fast/js/resources/js-test-pre.js"></script> | 5 <script src="../fast/js/resources/js-test-pre.js"></script> |
6 <script src="resources/touchadjustment.js"></script> | 6 <script src="resources/touchadjustment.js"></script> |
7 <style type="text/css"> | 7 <style type="text/css"> |
8 #sandbox { | 8 #sandbox { |
9 position: absolute; | 9 position: absolute; |
10 left: 0px; | 10 left: 0px; |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 | 54 |
55 testTouchPoint(touchPoint(60, 25, 10), e.input2); | 55 testTouchPoint(touchPoint(60, 25, 10), e.input2); |
56 testTouchPoint(touchPoint(60, 20, 15), e.input2); | 56 testTouchPoint(touchPoint(60, 20, 15), e.input2); |
57 testTouchPoint(touchPoint(60, 16, 20), e.input2); | 57 testTouchPoint(touchPoint(60, 16, 20), e.input2); |
58 } | 58 } |
59 | 59 |
60 function runTests() | 60 function runTests() |
61 { | 61 { |
62 if (window.testRunner && window.internals && internals.touchNodeAdjusted
ToBestClickableNode) { | 62 if (window.testRunner && window.internals && internals.touchNodeAdjusted
ToBestClickableNode) { |
63 description(document.title); | 63 description(document.title); |
| 64 // Mouse events only work after an initial layout |
| 65 document.body.offsetLeft; |
64 testDirectTouches(); | 66 testDirectTouches(); |
65 testAdjustedTouches(); | 67 testAdjustedTouches(); |
66 e.sandbox.style.display = 'none'; | 68 e.sandbox.style.display = 'none'; |
67 } | 69 } |
68 } | 70 } |
69 | 71 |
70 runTests(); | 72 runTests(); |
71 </script> | 73 </script> |
72 | 74 |
73 <script src="../fast/js/resources/js-test-post.js"></script> | 75 <script src="../fast/js/resources/js-test-post.js"></script> |
74 | 76 |
75 </body> | 77 </body> |
76 </html> | 78 </html> |
OLD | NEW |