| 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; | |
| 66 testDirectTouches(); | 64 testDirectTouches(); |
| 67 testAdjustedTouches(); | 65 testAdjustedTouches(); |
| 68 e.sandbox.style.display = 'none'; | 66 e.sandbox.style.display = 'none'; |
| 69 } | 67 } |
| 70 } | 68 } |
| 71 | 69 |
| 72 runTests(); | 70 runTests(); |
| 73 </script> | 71 </script> |
| 74 | 72 |
| 75 <script src="../fast/js/resources/js-test-post.js"></script> | 73 <script src="../fast/js/resources/js-test-post.js"></script> |
| 76 | 74 |
| 77 </body> | 75 </body> |
| 78 </html> | 76 </html> |
| OLD | NEW |