summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/forms/option-index.html
blob: c0fbda8218bcdd4671c5d49ed30882a05de907d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<html>
<head>	
<script>
function Crash() {
    var x = new Option('t','v');
    document.getElementById('result').innerHTML = "Test Passed. <BR/> Index for option element with no corresponding select is: " + x.index;
}
</script>
</head>
<body onload="Crash()">
This test makes sure we don't crash when trying to get the index of an option element that has no corresponding select element.
<div id="result">Test Failed</div>
</body>
</html>