20 <iframe src="javascript:void(0);"></iframe>
22 var frame = window.frames[0];
23 var doc = frame.document;
24 doc.body.style.backgroundColor = 'white';
25 doc.body.style.width = '2000px';
26 doc.body.style.height = '2000px';
27 doc.body.appendChild(doc.createTextNode('scroll me'));
28 frame.scrollBy(100, 100);
31 function testScrollRepaint()
33 if (window.testRunner) {
34 testRunner.waitUntilDone();
35 frame.onscroll = function() {
36 if (window.testRunner)
37 testRunner.notifyDone();
40 frame.scrollBy(-90, -90);
43 if (window.testRunner) {
47 setTimeout(testScrollRepaint, 100);