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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/repaint/subtree-root-skipped.html

Issue 1988313004: Test pixel results for repaint tests testing selection, etc. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
OLDNEW
1 <head> 1 <head>
2 <title>Repaint test for bug 16034</title> 2 <title>Repaint test for bug 16034</title>
3 <script src="resources/text-based-repaint.js" type="text/javascript"></scrip t> 3 <script src="resources/text-based-repaint.js" type="text/javascript"></scrip t>
4 <script> 4 <script>
5 function repaintTest() 5 function repaintTest()
6 { 6 {
7 var input = document.getElementById("input"); 7 var input = document.getElementById("input");
8 input.value = "PASS"; 8 input.value = "PASS";
9 var div = document.getElementById("div"); 9 var div = document.getElementById("div");
10 div.style.height = "20px"; 10 div.style.height = "20px";
11 } 11 }
12 </script> 12 </script>
13 </head> 13 </head>
14 <body onload="runRepaintTest()"> 14 <body onload="runRepaintAndPixelTest()">
15 <div style="overflow: hidden; height: 300px; width: 300px; background-color: aliceblue; position: relative;"> 15 <div style="overflow: hidden; height: 300px; width: 300px; background-color: aliceblue; position: relative;">
16 <div style="overflow: hidden; height: 200px; width: 200px; background-co lor: silver;"> 16 <div style="overflow: hidden; height: 200px; width: 200px; background-co lor: silver;">
17 <input id="input" value="FAIL"> 17 <input id="input" value="FAIL">
18 <div id="selection">Selection is here</div> 18 <div id="selection">Selection is here</div>
19 <div id="div" style="position: absolute; bottom: 0; height: 10px; wi dth: 10px; background-color: lightblue;"></div> 19 <div id="div" style="position: absolute; bottom: 0; height: 10px; wi dth: 10px; background-color: lightblue;"></div>
20 </div> 20 </div>
21 </div> 21 </div>
22 <script> 22 <script>
23 var selection = document.getElementById("selection"); 23 var selection = document.getElementById("selection");
24 getSelection().setBaseAndExtent(selection, 0, selection, 0); 24 getSelection().setBaseAndExtent(selection, 0, selection, 0);
25 </script> 25 </script>
26 </body> 26 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698