| 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 64%
|
| 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..dab519287e7de7c0bc8cab9744271ba27e501fac 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,16 @@
|
| <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.simulateCentralObserverManager({
|
| + 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>
|
|
|