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

Side by Side Diff: LayoutTests/compositing/squashing/squash-above-fixed-2.html

Issue 181653006: Remove testRunner.display() from most compositing/ tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Revert change to plugin test Created 6 years, 9 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 id="htmlTag"> 2 <html id="htmlTag">
3 3
4 <head> 4 <head>
5 <style> 5 <style>
6 #fixed { 6 #fixed {
7 -webkit-transform: translatez(0); 7 -webkit-transform: translatez(0);
8 position: fixed; 8 position: fixed;
9 z-index: 1; 9 z-index: 1;
10 width: 400px; 10 width: 400px;
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 testRunner.dumpAsText(); 51 testRunner.dumpAsText();
52 52
53 if (window.internals) 53 if (window.internals)
54 internals.settings.setLayerSquashingEnabled(true); 54 internals.settings.setLayerSquashingEnabled(true);
55 55
56 function runTest() 56 function runTest()
57 { 57 {
58 if (!window.internals) 58 if (!window.internals)
59 return; 59 return;
60 60
61 testRunner.display();
62
63 // Display the test results only after test is done so that it does not affect repaint rect results. 61 // Display the test results only after test is done so that it does not affect repaint rect results.
64 document.getElementById('testResults').style.display = "block"; 62 document.getElementById('testResults').style.display = "block";
65 // Case 1 63 // Case 1
66 document.getElementById('Case1').textContent = window.internals.layerTre eAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS); 64 document.getElementById('Case1').textContent = window.internals.layerTre eAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS);
67 65
68 // Case 2 66 // Case 2
69 window.scrollTo(0, 80); 67 window.scrollTo(0, 80);
70 document.getElementById('Case2').textContent = window.internals.layerTre eAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS); 68 document.getElementById('Case2').textContent = window.internals.layerTre eAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS);
71 } 69 }
72 </script> 70 </script>
(...skipping 13 matching lines...) Expand all
86 <div id="testResults"> 84 <div id="testResults">
87 CASE 1, original layer tree: 85 CASE 1, original layer tree:
88 <pre id="Case1"></pre> 86 <pre id="Case1"></pre>
89 87
90 CASE 2, scrolling y to 80, the "container" element should remain positioned with respect to the scrolled document, the fixed-pos layer compensates for the n ew scroll position: 88 CASE 2, scrolling y to 80, the "container" element should remain positioned with respect to the scrolled document, the fixed-pos layer compensates for the n ew scroll position:
91 <pre id="Case2"></pre> 89 <pre id="Case2"></pre>
92 </div> 90 </div>
93 91
94 </body> 92 </body>
95 </html> 93 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698