| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE html> | |
| 2 <body> | |
| 3 <script src="../../../resources/testharness.js"></script> | |
| 4 <script src="../../../resources/testharnessreport.js"></script> | |
| 5 <script src="../resources/picker-common.js"></script> | |
| 6 <select><option>option</option></select> | |
| 7 <script> | |
| 8 var test = async_test('Do not crash in PopupMenuImpl::update'); | |
| 9 var select = document.querySelector('select'); | |
| 10 openPicker(select, function() { | |
| 11 setTimeout(function() { | |
| 12 select.setAttribute('style', 'font-size: larger;'); | |
| 13 select.offsetWidth; | |
| 14 select.style.display = 'none'; | |
| 15 setTimeout(function() { | |
| 16 test.step(function() { assert_true(true, 'Did not crash.'); }); | |
| 17 test.done(); | |
| 18 }, 0); | |
| 19 }, 0); | |
| 20 }, function() { | |
| 21 // Do nothing on Mac and Android. | |
| 22 test.done(); | |
| 23 }); | |
| 24 </script> | |
| 25 </body> | |
| OLD | NEW |