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

Side by Side Diff: LayoutTests/compositing/scrollbars/custom-composited-different-track-parts.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, 3 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 <title>Composited Scrollbars: different track part colours.</title> 3 <title>Composited Scrollbars: different track part colours.</title>
4 <style> 4 <style>
5 ::-webkit-scrollbar { 5 ::-webkit-scrollbar {
6 width: 15px; 6 width: 15px;
7 height: 15px; 7 height: 15px;
8 } 8 }
9 ::-webkit-scrollbar-button:vertical:start { 9 ::-webkit-scrollbar-button:vertical:start {
10 background-color: red; 10 background-color: red;
(...skipping 25 matching lines...) Expand all
36 background-color: brown; 36 background-color: brown;
37 border: 1px dashed cyan; 37 border: 1px dashed cyan;
38 } 38 }
39 </style> 39 </style>
40 <script> 40 <script>
41 if (window.internals) { 41 if (window.internals) {
42 window.internals.settings.setMockScrollbarsEnabled(false); 42 window.internals.settings.setMockScrollbarsEnabled(false);
43 } 43 }
44 if (window.testRunner) { 44 if (window.testRunner) {
45 window.testRunner.waitUntilDone(); 45 window.testRunner.waitUntilDone();
46 window.testRunner.dumpAsText(true); // This is only useful as a pixel test. 46 window.testRunner.dumpAsTextWithPixelResults(); // This is only useful as a pixel test.
47 } 47 }
48 48
49 function doTest() 49 function doTest()
50 { 50 {
51 window.scrollTo(400,300); 51 window.scrollTo(400,300);
52 window.setTimeout(function() { 52 window.setTimeout(function() {
53 if (window.testRunner) { 53 if (window.testRunner) {
54 window.testRunner.notifyDone(); 54 window.testRunner.notifyDone();
55 } 55 }
56 }, 0); 56 }, 0);
57 } 57 }
58 58
59 window.addEventListener("load", doTest, false); 59 window.addEventListener("load", doTest, false);
60 </script> 60 </script>
61 </head> 61 </head>
62 <body> 62 <body>
63 <div style="width: 1600px; height: 1000px; -webkit-transform: translateZ(0);"> 63 <div style="width: 1600px; height: 1000px; -webkit-transform: translateZ(0);">
64 </div> 64 </div>
65 <div style="position : absolute; left : 450; top : 350; width : 200px; height : 100px; border-style : solid; border-color : green; border-width : 2px"> 65 <div style="position : absolute; left : 450; top : 350; width : 200px; height : 100px; border-style : solid; border-color : green; border-width : 2px">
66 <!--- 66 <!---
67 <h2>Composited Custom Scrollbars with Different Coloured Track Parts</h2> 67 <h2>Composited Custom Scrollbars with Different Coloured Track Parts</h2>
68 If this test succeeds, the track part before the thumb will be purple, and the t rack part after 68 If this test succeeds, the track part before the thumb will be purple, and the t rack part after
69 the thumb will be green. All four button rects will have different colours. 69 the thumb will be green. All four button rects will have different colours.
70 70
71 The div border should be in the top-left area of the window. 71 The div border should be in the top-left area of the window.
72 ---> 72 --->
73 </div> 73 </div>
74 </body> 74 </body>
75 </html> 75 </html>
OLDNEW
« no previous file with comments | « LayoutTests/compositing/scrollbar-painting.html ('k') | LayoutTests/compositing/text-on-scaled-layer.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698