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

Side by Side Diff: LayoutTests/compositing/layout-width-change.html

Issue 24438004: Rename testRunner.dumpAsText(true) to testRunner.dumpAsTextWithPixelResults() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: more tests Created 7 years, 2 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> 1 <!DOCTYPE>
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>Layout width change</title> 4 <title>Layout width change</title>
5 5
6 <style type="text/css" media="screen"> 6 <style type="text/css" media="screen">
7 .container { 7 .container {
8 position: absolute; 8 position: absolute;
9 width: 400px; 9 width: 400px;
10 height: 1500px; 10 height: 1500px;
11 } 11 }
12 12
13 .panel { 13 .panel {
14 position: absolute; 14 position: absolute;
15 top: 0px; 15 top: 0px;
16 left: 0px; 16 left: 0px;
17 width: 1000px; 17 width: 1000px;
18 height: 200px; 18 height: 200px;
19 background-color: #bbb; 19 background-color: #bbb;
20 } 20 }
21 21
22 .composited { 22 .composited {
23 -webkit-transform: translateZ(0); 23 -webkit-transform: translateZ(0);
24 } 24 }
25 </style> 25 </style>
26 <script type="text/javascript" charset="utf-8"> 26 <script type="text/javascript" charset="utf-8">
27 if (window.testRunner) { 27 if (window.testRunner) {
28 testRunner.waitUntilDone(); 28 testRunner.waitUntilDone();
29 testRunner.dumpAsText(true); 29 testRunner.dumpAsTextWithPixelResults();
30 } 30 }
31 function doTest() 31 function doTest()
32 { 32 {
33 var container = document.getElementById("container"); 33 var container = document.getElementById("container");
34 var panel = document.getElementById("panel"); 34 var panel = document.getElementById("panel");
35 35
36 // Delay is needed after switching between compositing and non-compositing 36 // Delay is needed after switching between compositing and non-compositing
37 // mode to allow for another render to happen. 37 // mode to allow for another render to happen.
38 window.setTimeout(function() { 38 window.setTimeout(function() {
39 panel.className += " composited" 39 panel.className += " composited"
(...skipping 12 matching lines...) Expand all
52 <body> 52 <body>
53 53
54 <p>There should be no white gap at the right hand side of the box.</p> 54 <p>There should be no white gap at the right hand side of the box.</p>
55 <div id="container" class="container"> 55 <div id="container" class="container">
56 <div id="panel" class="panel"> 56 <div id="panel" class="panel">
57 </div> 57 </div>
58 </div> 58 </div>
59 59
60 </body> 60 </body>
61 </html> 61 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698