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