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

Side by Side Diff: LayoutTests/fast/scrolling/scrollbar-tickmarks-styled.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 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <head> 2 <head>
3 <style> 3 <style>
4 html { 4 html {
5 font: Ahem 10px; 5 font: Ahem 10px;
6 -webkit-font-smoothing: none; 6 -webkit-font-smoothing: none;
7 } 7 }
8 ::-webkit-scrollbar { 8 ::-webkit-scrollbar {
9 width: 13px; 9 width: 13px;
10 height: 13px; 10 height: 13px;
11 } 11 }
12 ::-webkit-scrollbar-track { 12 ::-webkit-scrollbar-track {
13 background-color:green; 13 background-color:green;
14 } 14 }
15 ::-webkit-scrollbar-thumb { 15 ::-webkit-scrollbar-thumb {
16 background-color:rgba(128, 128, 128, 0.8); /* Let tickmark shine through */ 16 background-color:rgba(128, 128, 128, 0.8); /* Let tickmark shine through */
17 } 17 }
18 </style> 18 </style>
19 <script> 19 <script>
20 function highlight() 20 function highlight()
21 { 21 {
22 var range = document.createRange(); 22 var range = document.createRange();
23 var elt = document.getElementById('elt'); 23 var elt = document.getElementById('elt');
24 range.selectNodeContents(elt); 24 range.selectNodeContents(elt);
25 if (window.internals) { 25 if (window.internals) {
26 window.internals.addTextMatchMarker(range, true); 26 window.internals.addTextMatchMarker(range, true);
27 } 27 }
28 if (window.testRunner) 28 if (window.testRunner)
29 testRunner.dumpAsText(true); 29 testRunner.dumpAsTextWithPixelResults();
30 } 30 }
31 </script> 31 </script>
32 </head> 32 </head>
33 <body onload="highlight();"> 33 <body onload="highlight();">
34 34
35 <div style="height:600px"></div> 35 <div style="height:600px"></div>
36 <span id="elt" style="position:absolute; top:300px">&nbsp;</span> 36 <span id="elt" style="position:absolute; top:300px">&nbsp;</span>
37 37
38 </body> 38 </body>
39 </html> 39 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698