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> |