blob: 5a96930423ad01696dba9ca6cae6e427b9d47637 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="../../../resources/js-test.js"></script>
</head>
<body>
<select id="select1">
<option value="a">A</option>
<option value="b">B</option>
</select>
<div id="console"></div>
<script>
description("https://bugs.webkit.org/show_bug.cgi?id=85937 - [Chromium][Forms] HTMLOptionsCollection doesn't have indexed properties on property enumeration");
var properties = {};
var select1 = document.getElementById("select1");
var options = select1.options;
for (var propertyKey in options) {
properties[propertyKey] = options[propertyKey];
}
shouldBeEqualToString('properties[0].value', "a");
shouldBeEqualToString('properties[1].value', "b");
</script>
</body>
</html>