Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(173)

Side by Side Diff: LayoutTests/fast/repaint/repaint-during-scroll-with-zoom.html

Issue 316193003: Fix some async repaint tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: NeedsRebaseline more tests Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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>
OLDNEW
« no previous file with comments | « LayoutTests/fast/repaint/crbug-371640-4.html ('k') | LayoutTests/fast/repaint/resources/text-based-repaint.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698