blob: 3f1208ee5236203a5f7e932837cd98acc3e490e8 [file] [log] [blame]
<!DOCTYPE html>
<script src="../resources/js-test.js"></script>
<script src="../resources/run-after-layout-and-paint.js"></script>
<script>
description('This test ensures that a plugin which wants to receive wheel ' +
'events is included in the non-fast scrollable region.');
window.jsTestIsAsync = true;
onload = function() {
runAfterLayoutAndPaint(function() {
if (window.internals) {
shouldBe('internals.nonFastScrollableRects(document).length', '1');
} else {
debug('This test requires access to window.internals.nonFastScrollableRects.');
}
finishJSTest();
});
}
</script>
<embed id="plugin" type="application/x-webkit-test-webplugin"></embed>
<div style="height:2000px"></div>