| <script src="../../resources/testharness.js"></script> |
| <script src="../../resources/testharnessreport.js"></script> |
| let oldBody = document.body; |
| let b = oldBody.querySelector('b'); |
| document.documentElement.appendChild(b); |
| let iframe = document.createElement('iframe'); |
| b.firstChild.appendChild(iframe); |
| let oldGlobal = iframe.contentWindow; |
| document.documentElement.appendChild(document.createElement('body')); |
| let test = async_test('An iframe removed by the adoption agency algorithm must be unloaded'); |
| assert_not_equals(oldGlobal, iframe.contentWindow); |