summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/forms/select-popup/popup-menu-crash-on-style-update.html
blob: f4819ff4855ba6819b5de359feffd1d00c0ffbe0 (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
<!DOCTYPE html>
<body>
<script src="../../../resources/testharness.js"></script>
<script src="../../../resources/testharnessreport.js"></script>
<script src="../resources/picker-common.js"></script>
<select><option>option</option></select>
<script>
var test = async_test('Do not crash in PopupMenuImpl::update');
var select = document.querySelector('select');
openPicker(select, function() {
    setTimeout(function() {
        select.setAttribute('style', 'font-size: larger;');
        select.offsetWidth;
        select.style.display = 'none';
        setTimeout(function() {
            test.step(function() { assert_true(true, 'Did not crash.'); });
            test.done();
        }, 0);
    }, 0);
}, function() {
    // Do nothing on Mac and Android.
    test.done();
});
</script>
</body>