blob: 39e46015d0df25971ba614514612006b9ff07433 [file] [edit]
This tests that scrolling to make an element visible works properly when there's an iframe off screen.
Test scrolling an offscreen iframe.PASS: window.pageYOffset === 0
Scroll lower target to visible.The iframe should be scrolled into view
PASS: scrolledYOffset > 0 === true
Test the lower target should be scrolled into view.
PASS: scrolledIntoView === true
Scroll upper target to visible.
The main window shouldn't scroll.
PASS: window.pageYOffset == scrolledYOffset === true
Test the upper target should be scrolled into view.
PASS: scrolledIntoView === true
Reset scrolling. Test scrolling in nested iframes.
PASS: window.pageYOffset === 0
Scroll inner button to visible.
Test the button inside the inner frame should be scrolled into view
PASS: scrolledIntoView === true
The inner iframe should be scrolled into view
PASS: outterFrameWindow.pageYOffset > 0 === true
Scroll outter text element to visible.
The Y offset of the outter iframe should be reset.
PASS: outterFrameWindow.pageYOffset === 0
PASS successfullyParsed is true
TEST COMPLETE
5000-pixel box