| Index: third_party/WebKit/LayoutTests/bluetooth/requestDevice/correct-uuids.html
|
| diff --git a/third_party/WebKit/LayoutTests/bluetooth/requestDevice/correct-uuids.html b/third_party/WebKit/LayoutTests/bluetooth/requestDevice/correct-uuids.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..cebdaa4268a8c9e992754ff7a42397be4f934dc3
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/bluetooth/requestDevice/correct-uuids.html
|
| @@ -0,0 +1,18 @@
|
| +<!DOCTYPE html>
|
| +<script src="../../resources/testharness.js"></script>
|
| +<script src="../../resources/testharnessreport.js"></script>
|
| +<script src="../../resources/bluetooth/bluetooth-helpers.js"></script>
|
| +<script>
|
| +'use strict';
|
| +promise_test(() => {
|
| + return setBluetoothFakeAdapter('GlucoseHeartRateAdapter')
|
| + .then(() => requestDeviceWithKeyDown({
|
| + filters: [{services: ['glucose']}],
|
| + optionalServices: ['tx_power']}))
|
| + .then(device => {
|
| + assert_equals(device.uuids.length, 2);
|
| + assert_in_array(BluetoothUUID.getService('glucose'), device.uuids);
|
| + assert_in_array(BluetoothUUID.getService('tx_power'), device.uuids);
|
| + });
|
| +}, 'We should only see UUID\'s that we\'ve been given permission for.')
|
| +</script>
|
|
|