15 <iframe id='iframe' src='resources/iframe-containing-non-fast-scrollables.html'
></iframe>
17 <div id=
"console"></div>
19 <script src=
"../resources/js-test.js"></script>
20 <script src=
"resources/non-fast-scrollable-region-testing.js"></script>
22 window
.jsTestIsAsync
= true;
23 description('The test ensures that non-fast scrollable regions nested in ' +
24 'iframe are correctly offset by the iframe location.');
27 nonFastScrollableRects
= internals
.nonFastScrollableRects(document
);
28 shouldBe('nonFastScrollableRects.length', '3');
29 shouldBeEqualToString('rectToString(nonFastScrollableRects[0])', '[51, 102, 200, 200]');
30 shouldBeEqualToString('rectToString(nonFastScrollableRects[1])', '[51, 402, 211, 211]');
31 shouldBeEqualToString('rectToString(nonFastScrollableRects[2])', '[51, 702, 222, 222]');
33 drawNonFastScrollableRegionOverlays();