layout/reftests/bugs/273681-1.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/bugs/273681-1.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,33 @@
     1.4 +<!DOCTYPE html>
     1.5 +<html>
     1.6 +<body>
     1.7 +<form>
     1.8 +<select size=2 id="test">
     1.9 +<option>A</option>
    1.10 +<option>B</option>
    1.11 +<option>C</option>
    1.12 +<option>D</option>
    1.13 +<option>E</option>
    1.14 +<option>F</option>
    1.15 +<option>G</option>
    1.16 +<option>H</option>
    1.17 +<option selected>I</option>
    1.18 +<option>J</option>
    1.19 +<option>K</option>
    1.20 +<option>L</option>
    1.21 +<option>M</option>
    1.22 +<option>N</option>
    1.23 +</select>
    1.24 +<script>
    1.25 +  // flush layout 
    1.26 +  document.body.offsetWidth
    1.27 +
    1.28 +  // Now change the text of the currently selected option
    1.29 +  var obj = document.getElementById("test");
    1.30 +  var pos = obj.selectedIndex;
    1.31 +  obj.options[pos].text = "tag";
    1.32 +</script>
    1.33 +</form>
    1.34 +</body>
    1.35 +</html>
    1.36 +

mercurial