Adding test.

This commit is contained in:
bzbarsky@mit.edu 2007-08-12 22:03:51 -07:00
parent 65ea334fb9
commit cc4ab43659
3 changed files with 37 additions and 0 deletions

View File

@ -0,0 +1,18 @@
<!DOCTYPE html>
<body>
<html>
<select id="test" size="8">
</select>
<script>
var optgroup = document.createElement("optgroup");
optgroup.setAttribute('label', 'An optgroup');
var option = document.createElement("option");
var optionText = document.createTextNode("An option");
option.appendChild(optionText);
var select = document.getElementById("test");
optgroup.appendChild(option);
select.appendChild(optgroup);
</script>
</body>
</html>

View File

@ -0,0 +1,18 @@
<!DOCTYPE html>
<body>
<html>
<select id="test" size="8">
</select>
<script>
var optgroup = document.createElement("optgroup");
optgroup.setAttribute('label', 'An optgroup');
var option = document.createElement("option");
var optionText = document.createTextNode("An option");
option.appendChild(optionText);
var select = document.getElementById("test");
select.appendChild(optgroup);
optgroup.appendChild(option);
</script>
</body>
</html>

View File

@ -95,6 +95,7 @@ fails-if(MOZ_WIDGET_TOOLKIT=="cocoa") == 28811-2a.html 28811-2-ref.html # bug 38
== 234964-2.html 234964-2-ref.html
== 235593-1.html 235593-1-ref.html
== 236539-1.html 236539-1-ref.html
== 240470-1.html 240470-1-ref.html
== 243266-1.html 243266-1-ref.html
== 243302-1.html 243302-1-ref.html
== 244932-1.html 244932-1-ref.html