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

Side by Side Diff: LayoutTests/fast/layers/layer-visibility-sublayer.html

Issue 1167833002: Make fast/layers/layer-visibility-sublayer.html unflaky (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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
« no previous file with comments | « LayoutTests/TestExpectations ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html> 1 <html>
2 <style> 2 <style>
3 .red { border: 2px solid red } 3 .red { border: 2px solid red }
4 .green { border: 2px solid green } 4 .green { border: 2px solid green }
5 .visible { visibility: visible} 5 .visible { visibility: visible}
6 .invisible { visibility: hidden} 6 .invisible { visibility: hidden}
7 //.invisible:hover { visibility: visible} 7 //.invisible:hover { visibility: visible}
8 .abstop { position: absolute; left:0; right:0; height:30px } 8 .abstop { position: absolute; left:0; right:0; height:30px }
9 .abs { position: absolute; left:0; right:0; top:0; bottom:0 } 9 .abs { position: absolute; left:0; right:0; top:0; bottom:0 }
10 </style> 10 </style>
11 11
12 <script> 12 <script>
13 var node1; 13 var node1;
14 var node2; 14 var node2;
15 function dotest()
16 {
17 15
18 //24 16 function startTest() {
19 document.getElementById('24c').style.setProperty('visibility','hidden',''); 17 if (window.testRunner) {
20 document.getElementById('24a').removeChild(document.getElementById('24b')); 18 testRunner.waitUntilDone();
21 19 testRunner.layoutAndPaintAsyncThen(doTest)
22 //25 20 } else {
23 document.getElementById('25c').style.setProperty('visibility','hidden',''); 21 requestAnimationFrame(doTest)
24 document.getElementById('25a').removeChild(document.getElementById('25b')); 22 }
25
26 //26
27 document.getElementById('26c').style.setProperty('visibility','hidden','');
28 document.getElementById('26a').removeChild(document.getElementById('26b'));
29 setTimeout(dotest2,20);
30 } 23 }
31 24
32 function dotest2() 25 function doTest()
33 { 26 {
27 //24
28 document.getElementById('24c').style.setProperty('visibility','hidden','');
29 document.getElementById('24a').removeChild(document.getElementById('24b'));
34 30
35 //xx 31 //25
36 //document.getElementById('23').style.setProperty('visibility','hidden',''); 32 document.getElementById('25c').style.setProperty('visibility','hidden','');
33 document.getElementById('25a').removeChild(document.getElementById('25b'));
34
35 //26
36 document.getElementById('26c').style.setProperty('visibility','hidden','');
37 document.getElementById('26a').removeChild(document.getElementById('26b'));
38
39 if (window.testRunner) {
40 » testRunner.layoutAndPaintAsyncThen(function() {
41 » testRunner.notifyDone();
42 });
43 }
37 } 44 }
38 45
46
39 </script> 47 </script>
40 </head> 48 </head>
41 <body onload="setTimeout(dotest,20)"> 49 <body onload="startTest();">
42 <br><br><br><br> 50 <br><br><br><br>
43 24 green box with word ok: 51 24 green box with word ok:
44 <div id="24a" class="invisible abstop red"> 52 <div id="24a" class="invisible abstop red">
45 <div class="abs invisible red"> 53 <div class="abs invisible red">
46 <span>blah</span> 54 <span>blah</span>
47 </div> 55 </div>
48 <div id="24b" class="abs invisible red"> 56 <div id="24b" class="abs invisible red">
49 </div> 57 </div>
50 <div id="24c" class="visible red"> 58 <div id="24c" class="visible red">
51 </div> 59 </div>
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 </div> 93 </div>
86 <div id="26c" class="visible red"> 94 <div id="26c" class="visible red">
87 </div> 95 </div>
88 <div class="visible green"> 96 <div class="visible green">
89 ok 97 ok
90 </div> 98 </div>
91 </div> 99 </div>
92 <br><br><br><br> 100 <br><br><br><br>
93 </body> 101 </body>
94 </html> 102 </html>
OLDNEW
« no previous file with comments | « LayoutTests/TestExpectations ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698