OLD | NEW |
(Empty) | |
| 1 <!doctype html> |
| 2 <html> |
| 3 <head> |
| 4 <script src=../../../resources/testharness.js></script> |
| 5 <script src=../../../resources/testharnessreport.js></script> |
| 6 <script src=../resources/picker-common.js></script> |
| 7 </head> |
| 8 <body> |
| 9 <input type=week id=week> |
| 10 <script> |
| 11 if (window.testRunner) { |
| 12 testRunner.waitUntilDone(); |
| 13 testRunner.dumpAsText(); |
| 14 } |
| 15 var test = async_test('Accessing popup window controller after detach should not
crash.'); |
| 16 |
| 17 function noCrashOnDetach() { |
| 18 // Controller not accessible on a detached/closed window. |
| 19 assert_equals(popupWindow.pagePopupController, null); |
| 20 test.done(); |
| 21 } |
| 22 |
| 23 test.step(() => { |
| 24 openPicker(document.getElementById('week'), () => { |
| 25 setTimeout(noCrashOnDetach); |
| 26 popupWindow.close(); |
| 27 }); |
| 28 }); |
| 29 </script> |
| 30 </body> |
| 31 </html> |
OLD | NEW |