OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <style> | 4 <style> |
5 body { | 5 body { |
6 margin: 0; | 6 margin: 0; |
7 background: silver; | 7 background: silver; |
8 zoom: 1.25; | 8 zoom: 1.25; |
9 } | 9 } |
10 iframe { | 10 iframe { |
(...skipping 11 matching lines...) Expand all Loading... |
22 <script> | 22 <script> |
23 var frame = window.frames[0]; | 23 var frame = window.frames[0]; |
24 var doc = frame.document; | 24 var doc = frame.document; |
25 doc.body.style.backgroundColor = 'white'; | 25 doc.body.style.backgroundColor = 'white'; |
26 doc.body.style.width = '2000px'; | 26 doc.body.style.width = '2000px'; |
27 doc.body.style.height = '2000px'; | 27 doc.body.style.height = '2000px'; |
28 doc.body.appendChild(doc.createTextNode('scroll me')); | 28 doc.body.appendChild(doc.createTextNode('scroll me')); |
29 frame.scrollBy(100, 100); | 29 frame.scrollBy(100, 100); |
30 </script> | 30 </script> |
31 <script> | 31 <script> |
| 32 window.testIsAsync = true; |
32 function repaintTest() | 33 function repaintTest() |
33 { | 34 { |
34 if (window.testRunner) { | 35 frame.onscroll = function() { |
35 testRunner.waitUntilDone(); | 36 finishRepaintTest(); |
36 frame.onscroll = function() { | 37 }; |
37 if (window.testRunner) | |
38 testRunner.notifyDone(); | |
39 }; | |
40 } | |
41 frame.scrollBy(-90, -90); | 38 frame.scrollBy(-90, -90); |
42 } | 39 } |
43 </script> | 40 </script> |
44 </body> | 41 </body> |
45 </html> | 42 </html> |
OLD | NEW |