Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / select / popup-menu-non-latin-update-from-element.html
blob2148dba8ebdaa590c0654b89a8789efe88350e08
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;
17 function openPickerErrorCallback() {
18 testFailed('picker didn\'t open')
19 finishJSTest();
21 openPicker(menu, test1, openPickerErrorCallback);
23 function test1() {
24 picker = window.internals.pagePopupWindow.global.picker;
26 menuElement.style.color = 'rgb(123, 0, 0)';
28 picker.on("didUpdate", function () {
29 setTimeout(function() {
30 shouldBeEqualToString('picker._selectElement.options[0].label', 'いろはにほへと');
31 finishJSTest();
32 }, 0);
33 });
35 </script>
36 </body>
37 </html>