| Index: third_party/WebKit/LayoutTests/bluetooth/requestDevice/le-not-supported.html
|
| diff --git a/third_party/WebKit/LayoutTests/bluetooth/requestDevice/le-not-supported.html b/third_party/WebKit/LayoutTests/bluetooth/requestDevice/le-not-supported.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..cf508401619bb49b5ace9e558de4beb6d4d2b84e
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/bluetooth/requestDevice/le-not-supported.html
|
| @@ -0,0 +1,14 @@
|
| +<!DOCTYPE html>
|
| +<script src="../../resources/testharness.js"></script>
|
| +<script src="../../resources/testharnessreport.js"></script>
|
| +<script src="../../resources/mojo-helpers.js"></script>
|
| +<script src="../../resources/web-bluetooth-test.js"></script>
|
| +<script src="../../resources/bluetooth/bluetooth-helpers.js"></script>
|
| +<script>
|
| +'use strict';
|
| +promise_test(t => {
|
| + return navigator.bluetooth.test.setLEAvailability(false)
|
| + .then(() => promise_rejects(t, 'NotFoundError',
|
| + navigator.bluetooth.requestDevice({acceptAllDevices: true})));
|
| +}, 'Reject with NotFoundError if bluetooth is not supported.');
|
| +</script>
|
|
|