Test chromium/chrome/fast/dom/dom-add-optionelement.html Detail

id
chromium/chrome/fast/dom/dom-add-optionelement.html
type
layouttest
version
0
enabled
1
tags
flags
sections
url
http://localhost:8888/chromium/chrome/fast/dom/dom-add-optionelement.html
file
chromium/chrome/fast/dom/dom-add-optionelement.html

results
Firefox 2 Win (2.0.0.20) Firefox 2 Lin (2.0.0.20) Firefox 3 Win (3.0.6) Firefox 3 Lin (3.0.6) Firefox 3.1 Win (3.1b2) Firefox 3.1 Lin (3.1b2) Firefox trunk Win (2009 02 22) Firefox trunk Lin (2009 02 22) Safari 3 Win (3.2) Safari trunk Win (41121) Opera 9 Win (9.62) Opera 9 Lin (9.62) IE 6 Win (6) IE 7 Win (7) IE 8 Win (8rc1)
FAIL FAIL FAIL FAIL FAIL FAIL FAIL FAIL PASS PASS FAIL FAIL FAIL FAIL FAIL

Layouttest detail

expected:
Purpose: To test if the add() method adds an option to a dropdown list. Bug# 806258. 

TEST PASSED
file:
<html>
<body > 
Purpose: To test if the add() method adds an option to a dropdown list. Bug# 806258.
<br>
<form  name="my_form">
   <select name="my_select">
   <option value="a">a</option>
   </select>
</form>

<script>
if (window.layoutTestController)
    layoutTestController.dumpAsText();

document.my_form.my_select.add(new Option("b", "b"),null);
if (document.my_form.my_select.options[1].value == 'b')
{
  document.write("TEST PASSED");
}
else{
  document.write("TEST FAILED");
}
</script>
                       
</body>
</html>

file frame show/hide: