Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / select / options-indexed-properties.html
blob5a96930423ad01696dba9ca6cae6e427b9d47637
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../../resources/js-test.js"></script>
5 </head>
6 <body>
7 <select id="select1">
8 <option value="a">A</option>
9 <option value="b">B</option>
10 </select>
11 <div id="console"></div>
13 <script>
14 description("https://bugs.webkit.org/show_bug.cgi?id=85937 - [Chromium][Forms] HTMLOptionsCollection doesn't have indexed properties on property enumeration");
15 var properties = {};
16 var select1 = document.getElementById("select1");
17 var options = select1.options;
18 for (var propertyKey in options) {
19 properties[propertyKey] = options[propertyKey];
21 shouldBeEqualToString('properties[0].value', "a");
22 shouldBeEqualToString('properties[1].value', "b");
23 </script>
25 </body>
26 </html>