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

Side by Side Diff: LayoutTests/fast/repaint/background-size-auto-with-gradient-and-height-changes.html

Issue 263553005: Convert repaintRectsAsText callers to text-based-repaint.js (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase again Created 6 years, 7 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 <html> 1 <html>
2 <head> 2 <head>
3 <script>jsTestIsAsync = true;</script> 3 <script src="resources/text-based-repaint.js"></script>
4 <script src="../../resources/js-test.js"></script>
5 4
6 <style> 5 <style>
7 #outer { 6 #outer {
8 padding-top: 200px; 7 padding-top: 200px;
9 background: -webkit-gradient( 8 background: -webkit-gradient(
10 linear, 9 linear,
11 left top, 10 left top,
12 left bottom, 11 left bottom,
13 color-stop(0%, rgba(255,255,0,0)), color-stop(100%, rgba(0,0,0,1)) 12 color-stop(0%, rgba(255,255,0,0)), color-stop(100%, rgba(0,0,0,1))
14 ); 13 );
15 background-size: auto; 14 background-size: auto;
16 } 15 }
17 16
18 #inner { 17 #inner {
19 height: 100px; 18 height: 100px;
20 } 19 }
21 </style> 20 </style>
22 21
23 <script> 22 <script>
24 description('This test verifies that gradient background gets repainted properly after child box height change.'); 23 // This test verifies that gradient background gets repainted properly after chi ld box height change.
25 24 function repaintTest() {
26 function start() { 25 document.getElementById('inner').style.height = '300px';
27 window.setTimeout(function() {
28 document.getElementById('inner').style.height = '300px';
29 window.setTimeout(logRepaints, 200);
30 }, 0);
31
32 if (!window.testRunner || !window.internals)
33 return;
34
35 window.internals.startTrackingRepaints(document);
36 var dummy = document.body.offsetTop;
37 }
38
39 function logRepaints() {
40 if (!window.internals)
41 return;
42
43 repaintRects = window.internals.repaintRectsAsText(document);
44 window.internals.stopTrackingRepaints(document);
45 shouldNotBe("repaintRects.indexOf('500')", "-1");
46 finishJSTest();
47 } 26 }
48 </script> 27 </script>
49 </head> 28 </head>
50 29
51 <body onload='start();'> 30 <body onload='runRepaintTest();'>
52 <div id='outer'> 31 <div id='outer'>
53 <div id='inner'> 32 <div id='inner'>
54 </div> 33 </div>
55 </div> 34 </div>
56 </body> 35 </body>
57 </html> 36 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698