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
-
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: