Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(66)

Unified Diff: third_party/WebKit/LayoutTests/bluetooth/disconnect-frame-detached/detach-gc.html

Issue 1815483003: bluetooth: Create Mojo equivalent of SetBluetoothMockDataSet (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bluetooth-mojo
Patch Set: MMerge with ToT Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698