| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE html> | |
| 2 <html> | |
| 3 <head> | |
| 4 <meta charset="utf-8"> | |
| 5 <script src="../../../resources/js-test.js"></script> | |
| 6 <script src="../resources/common.js"></script> | |
| 7 <script src="../resources/picker-common.js"></script> | |
| 8 </head> | |
| 9 <body> | |
| 10 <select id="menu"> | |
| 11 <option selected>いろはにほへと</option> | |
| 12 </select> | |
| 13 <script> | |
| 14 var menuElement = document.getElementById('menu'); | |
| 15 var picker; | |
| 16 | |
| 17 function openPickerErrorCallback() { | |
| 18 testFailed('picker didn\'t open') | |
| 19 finishJSTest(); | |
| 20 } | |
| 21 openPicker(menu, test1, openPickerErrorCallback); | |
| 22 | |
| 23 function test1() { | |
| 24 picker = window.internals.pagePopupWindow.global.picker; | |
| 25 | |
| 26 menuElement.style.color = 'rgb(123, 0, 0)'; | |
| 27 | |
| 28 picker.on("didUpdate", function () { | |
| 29 setTimeout(function() { | |
| 30 shouldBeEqualToString('picker._selectElement.options[0].label', 'いろは
にほへと'); | |
| 31 finishJSTest(); | |
| 32 }, 0); | |
| 33 }); | |
| 34 } | |
| 35 </script> | |
| 36 </body> | |
| 37 </html> | |
| OLD | NEW |