| Index: third_party/WebKit/LayoutTests/bluetooth/disconnect-frame-detached/detach-gc.html
|
| diff --git a/third_party/WebKit/LayoutTests/bluetooth/disconnect-frame-detached/detach-gc.html b/third_party/WebKit/LayoutTests/bluetooth/disconnect-frame-detached/detach-gc.html
|
| index f8802ea2cce8d1ff860d8fa715ffb8ff45da8df7..403218b18b2e06cb56f00a03c39c800b8a7e9789 100644
|
| --- a/third_party/WebKit/LayoutTests/bluetooth/disconnect-frame-detached/detach-gc.html
|
| +++ b/third_party/WebKit/LayoutTests/bluetooth/disconnect-frame-detached/detach-gc.html
|
| @@ -14,6 +14,7 @@
|
| });
|
| } else if (messageEvent.data === 'Connected') {
|
| // Detach
|
| + let iframe = document.querySelector('iframe');
|
| iframe.remove();
|
| // GC
|
| runGarbageCollection().then(() => test.done());
|
| @@ -21,10 +22,12 @@
|
| assert_unreached('iframe sent invalid data: ' + messageEvent.data);
|
| }
|
| });
|
| - testRunner.setBluetoothMockDataSet('HeartRateAdapter');
|
| - let iframe = document.createElement('iframe');
|
| - iframe.src = '../resources/connect-iframe.html';
|
| - document.body.appendChild(iframe);
|
| + setBluetoothFakeAdapter('HeartRateAdapter')
|
| + .then(() => {
|
| + let iframe = document.createElement('iframe');
|
| + iframe.src = '../resources/connect-iframe.html';
|
| + document.body.appendChild(iframe);
|
| + });
|
| }, 'Detach frame then garbage collect. We shouldn\'t crash.');
|
| </script>
|
| </body>
|
|
|