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

Unified Diff: third_party/WebKit/LayoutTests/resources/web-bluetooth-test.js

Issue 2815793003: bluetooth: Introduce SetLowEnergyAvailableForTesting (Closed)
Patch Set: Created 3 years, 8 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
« no previous file with comments | « third_party/WebKit/LayoutTests/bluetooth/requestDevice/le-not-supported.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/resources/web-bluetooth-test.js
diff --git a/third_party/WebKit/LayoutTests/resources/web-bluetooth-test.js b/third_party/WebKit/LayoutTests/resources/web-bluetooth-test.js
index dfd8f2c24bf08c3d401eff2b0fd7fdb5b998469f..77bb91d508954ae56780fdf5a245f655b0820027 100644
--- a/third_party/WebKit/LayoutTests/resources/web-bluetooth-test.js
+++ b/third_party/WebKit/LayoutTests/resources/web-bluetooth-test.js
@@ -27,14 +27,6 @@
async setLEAvailability(available) {
if (typeof available !== 'boolean') throw 'Type Not Supported';
await (await this.getFakeBluetoothInterface_()).setLEAvailability(available);
-
- // TODO(crbug.com/569709): Remove once FakeBluetooth.setLEAvailability is
- // implemented in the browser.
- navigator.bluetooth.requestDevice = function() {
- return Promise.reject(new DOMException(
- 'Bluetooth Low Energy is not supported on this platform.',
- 'NotFoundError'));
- };
}
async getFakeBluetoothInterface_() {
« no previous file with comments | « third_party/WebKit/LayoutTests/bluetooth/requestDevice/le-not-supported.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698