OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <script src="../resources/js-test.js"></script> | 2 <script src="../resources/js-test.js"></script> |
| 3 <script src="../resources/run-after-layout-and-paint.js"></script> |
3 | 4 |
4 <script> | 5 <script> |
5 description('This test ensures that a plugin which wants to receive wheel ' + | 6 description('This test ensures that a plugin which wants to receive wheel ' + |
6 'events is included in the non-fast scrollable region.'); | 7 'events is included in the non-fast scrollable region.'); |
7 window.jsTestIsAsync = true; | 8 window.jsTestIsAsync = true; |
8 | 9 |
9 onload = function() { | 10 onload = function() { |
| 11 runAfterLayoutAndPaint(function() { |
10 if (window.internals) { | 12 if (window.internals) { |
11 shouldBe('internals.nonFastScrollableRects(document).length', '1'); | 13 shouldBe('internals.nonFastScrollableRects(document).length', '1'); |
12 } else { | 14 } else { |
13 debug('This test requires access to window.internals.nonFastScrollableRe
cts.'); | 15 debug('This test requires access to window.internals.nonFastScrollableRe
cts.'); |
14 } | 16 } |
15 | 17 |
16 finishJSTest(); | 18 finishJSTest(); |
| 19 }); |
17 } | 20 } |
18 </script> | 21 </script> |
19 | 22 |
20 <embed id="plugin" type="application/x-webkit-test-webplugin"></embed> | 23 <embed id="plugin" type="application/x-webkit-test-webplugin"></embed> |
| 24 <div style="height:2000px"></div> |
OLD | NEW |