| OLD | NEW |
| 1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../../resources/js-test.js"></script> | 4 <script src="../../../resources/js-test.js"></script> |
| 5 </head> | 5 </head> |
| 6 <body> | 6 <body> |
| 7 <p id="description"></p> | 7 <p id="description"></p> |
| 8 <div id="console"></div> | 8 <div id="console"></div> |
| 9 | 9 |
| 10 <select> | 10 <select> |
| 11 <option id="o1"> text </option> | 11 <option id="o1"> text </option> |
| 12 <option id="o2" value="value"> text </option> | 12 <option id="o2" value="value"> text </option> |
| 13 <option id="o3" label="label"> text </option> | 13 <option id="o3" label="label"> text </option> |
| 14 <option id="o4" value="value" label="label">text</option> | 14 <option id="o4" value="value" label="label">text</option> |
| (...skipping 21 matching lines...) Expand all Loading... |
| 36 shouldBe('o3.label', '"newLabel"'); | 36 shouldBe('o3.label', '"newLabel"'); |
| 37 | 37 |
| 38 var o4 = document.getElementById('o4'); | 38 var o4 = document.getElementById('o4'); |
| 39 o4.label = "newLabel" | 39 o4.label = "newLabel" |
| 40 o4.value = "newValue" | 40 o4.value = "newValue" |
| 41 shouldBe('o4.value', '"newValue"'); | 41 shouldBe('o4.value', '"newValue"'); |
| 42 shouldBe('o4.label', '"newLabel"'); | 42 shouldBe('o4.label', '"newLabel"'); |
| 43 </script> | 43 </script> |
| 44 </body> | 44 </body> |
| 45 </html> | 45 </html> |
| OLD | NEW |