OLD | NEW |
1 <script src="../js/resources/js-test-pre.js"></script> | 1 <script src="../js/resources/js-test-pre.js"></script> |
2 <style> | 2 <style> |
3 #pusher { | 3 #pusher { |
4 width: 1000px; | 4 width: 1000px; |
5 height: 1000px; | 5 height: 1000px; |
6 outline: 1px solid black; | 6 outline: 1px solid black; |
7 } | 7 } |
8 </style> | 8 </style> |
9 <div id="console"></div> | 9 <div id="console"></div> |
10 <div id="testArea"> | 10 <div id="testArea"> |
(...skipping 26 matching lines...) Expand all Loading... |
37 } | 37 } |
38 | 38 |
39 function scrollPage(x, y) | 39 function scrollPage(x, y) |
40 { | 40 { |
41 window.scrollTo(x, y); | 41 window.scrollTo(x, y); |
42 } | 42 } |
43 | 43 |
44 if (window.testRunner) { | 44 if (window.testRunner) { |
45 testRunner.dumpAsText(); | 45 testRunner.dumpAsText(); |
46 testRunner.waitUntilDone(); | 46 testRunner.waitUntilDone(); |
47 // Mouse events only work after an initial layout | |
48 document.body.offsetLeft; | |
49 } | 47 } |
50 | 48 |
51 // Default. | 49 // Default. |
52 function base(e) | 50 function base(e) |
53 { | 51 { |
54 event = e; | 52 event = e; |
55 debug("Base"); | 53 debug("Base"); |
56 shouldBe("event.clientX", "100"); | 54 shouldBe("event.clientX", "100"); |
57 shouldBe("event.clientY", "100"); | 55 shouldBe("event.clientY", "100"); |
58 shouldBe("event.pageX", "100"); | 56 shouldBe("event.pageX", "100"); |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 window.removeEventListener("click", zoomedAndScrolled, false); | 111 window.removeEventListener("click", zoomedAndScrolled, false); |
114 | 112 |
115 if (window.testRunner) { | 113 if (window.testRunner) { |
116 var area = document.getElementById('testArea'); | 114 var area = document.getElementById('testArea'); |
117 area.parentNode.removeChild(area); | 115 area.parentNode.removeChild(area); |
118 | 116 |
119 testRunner.notifyDone(); | 117 testRunner.notifyDone(); |
120 } | 118 } |
121 </script> | 119 </script> |
122 <script src="../js/resources/js-test-post.js"></script> | 120 <script src="../js/resources/js-test-post.js"></script> |
OLD | NEW |