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

Unified Diff: third_party/WebKit/LayoutTests/bluetooth/iframeRequestDevice.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/iframeRequestDevice.html
diff --git a/third_party/WebKit/LayoutTests/bluetooth/iframeRequestDevice.html b/third_party/WebKit/LayoutTests/bluetooth/iframeRequestDevice.html
index 5449b2f57617d2d8294d82332ea999a4463c805e..37be32e9b4879785b4551081b9f6e955fd56c52b 100644
--- a/third_party/WebKit/LayoutTests/bluetooth/iframeRequestDevice.html
+++ b/third_party/WebKit/LayoutTests/bluetooth/iframeRequestDevice.html
@@ -36,12 +36,14 @@
});
});
- testRunner.setBluetoothMockDataSet('HeartRateAdapter');
- for (let i = 0; i < numIframes; i++) {
- let iframe = document.createElement('iframe');
- iframe.src = 'resources/requestDevice-in-iframe.html';
- document.body.appendChild(iframe);
- }
+ return setBluetoothFakeAdapter('HeartRateAdapter')
+ .then(() => {
+ for (let i = 0; i < numIframes; i++) {
+ let iframe = document.createElement('iframe');
+ iframe.src = 'resources/requestDevice-in-iframe.html';
+ document.body.appendChild(iframe);
+ }
+ });
}, 'Concurrent requestDevice calls in iframes work.');
</script>
</body>

Powered by Google App Engine
This is Rietveld 408576698