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

Unified Diff: third_party/WebKit/LayoutTests/bluetooth/requestDevice/radio-not-present.html

Issue 2853433002: bluetooth: Implement simulateCentral (Closed)
Patch Set: Address dcheng's comments 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
Index: third_party/WebKit/LayoutTests/bluetooth/requestDevice/radio-not-present.html
diff --git a/third_party/WebKit/LayoutTests/bluetooth/requestDevice/adapter-not-present.html b/third_party/WebKit/LayoutTests/bluetooth/requestDevice/radio-not-present.html
similarity index 65%
rename from third_party/WebKit/LayoutTests/bluetooth/requestDevice/adapter-not-present.html
rename to third_party/WebKit/LayoutTests/bluetooth/requestDevice/radio-not-present.html
index 80ce978be3b27971e9ea41ee1d86aa61ce291f8e..bc40f58976caed4886cb566ff83118c7481b260a 100644
--- a/third_party/WebKit/LayoutTests/bluetooth/requestDevice/adapter-not-present.html
+++ b/third_party/WebKit/LayoutTests/bluetooth/requestDevice/radio-not-present.html
@@ -2,13 +2,15 @@
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script src="../../resources/bluetooth/bluetooth-helpers.js"></script>
+<script src="../../resources/mojo-helpers.js"></script>
+<script src="../../resources/bluetooth/web-bluetooth-test.js"></script>
<script>
'use strict';
promise_test(() => {
- return setBluetoothFakeAdapter('NotPresentAdapter')
+ return navigator.bluetooth.test.simulateCentral({state: 'absent'})
.then(() => assert_promise_rejects_with_message(
requestDeviceWithKeyDown({filters: [{services: ['generic_access']}]}),
new DOMException('Bluetooth adapter not available.', 'NotFoundError'),
'Bluetooth adapter is not present.'));
-}, 'Reject with NotFoundError if the adapter is not present.');
+}, 'Reject with NotFoundError if there is no BT radio present.');
</script>

Powered by Google App Engine
This is Rietveld 408576698