| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../../../fast/js/resources/js-test-pre.js"></script> | 4 <script src="../../../fast/js/resources/js-test-pre.js"></script> |
| 5 </head> | 5 </head> |
| 6 <body> | 6 <body> |
| 7 <select id="select1"> | 7 <select id="select1"> |
| 8 <option value="a">A</option> | 8 <option value="a">A</option> |
| 9 <option value="b">B</option> | 9 <option value="b">B</option> |
| 10 </select> | 10 </select> |
| 11 <div id="console"></div> | 11 <div id="console"></div> |
| 12 | 12 |
| 13 <script> | 13 <script> |
| 14 description("https://bugs.webkit.org/show_bug.cgi?id=85937 - [Chromium][Forms] H
TMLOptionsCollection doesn't have indexed properties on property enumeration"); | 14 description("https://bugs.webkit.org/show_bug.cgi?id=85937 - [Chromium][Forms] H
TMLOptionsCollection doesn't have indexed properties on property enumeration"); |
| 15 var properties = {}; | 15 var properties = {}; |
| 16 var select1 = document.getElementById("select1"); | 16 var select1 = document.getElementById("select1"); |
| 17 var options = select1.options; | 17 var options = select1.options; |
| 18 for (var propertyKey in options) { | 18 for (var propertyKey in options) { |
| 19 properties[propertyKey] = options[propertyKey]; | 19 properties[propertyKey] = options[propertyKey]; |
| 20 } | 20 } |
| 21 shouldBeEqualToString('properties[0].value', "a"); | 21 shouldBeEqualToString('properties[0].value', "a"); |
| 22 shouldBeEqualToString('properties[1].value', "b"); | 22 shouldBeEqualToString('properties[1].value', "b"); |
| 23 </script> | 23 </script> |
| 24 | 24 |
| 25 <script src="../../../fast/js/resources/js-test-post.js"></script> | |
| 26 </body> | 25 </body> |
| 27 </html> | 26 </html> |
| OLD | NEW |