| Index: third_party/WebKit/LayoutTests/bluetooth/requestDevice/acceptAllDevices/device-with-name.html
|
| diff --git a/third_party/WebKit/LayoutTests/bluetooth/requestDevice/acceptAllDevices/device-with-name.html b/third_party/WebKit/LayoutTests/bluetooth/requestDevice/acceptAllDevices/device-with-name.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..f12415442015647d32035e38c83144ccbb9aaefd
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/bluetooth/requestDevice/acceptAllDevices/device-with-name.html
|
| @@ -0,0 +1,16 @@
|
| +<!DOCTYPE html>
|
| +<script src="../../../resources/testharness.js"></script>
|
| +<script src="../../../resources/testharnessreport.js"></script>
|
| +<script src="../../../resources/bluetooth/bluetooth-helpers.js"></script>
|
| +<script>
|
| +promise_test(() => {
|
| + // The UnicodeDevice's name is '❤❤❤❤❤❤❤❤❤'. ❤ = \u2764
|
| + let device_name = generate_string(9, '\u2764');
|
| + return setBluetoothFakeAdapter('UnicodeDeviceAdapter')
|
| + .then(() => requestDeviceWithKeyDown({acceptAllDevices: true}))
|
| + .then(device => {
|
| + assert_equals(device.name, device_name);
|
| + });
|
| +}, 'A device with name and no UUIDs nearby. Should be found if ' +
|
| + 'acceptAllDevices is true.');
|
| +</script>
|
|
|