| OLD | NEW |
| 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> |
| OLD | NEW |