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