Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/bluetooth/requestDevice/canonicalizeFilter/device-name-longer-than-29-bytes.html |
| diff --git a/third_party/WebKit/LayoutTests/bluetooth/requestDevice/canonicalizeFilter/device-name-longer-than-29-bytes.html b/third_party/WebKit/LayoutTests/bluetooth/requestDevice/canonicalizeFilter/device-name-longer-than-29-bytes.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..bce10dd827ead5536bc13ed7608e66420fae8fdc |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/bluetooth/requestDevice/canonicalizeFilter/device-name-longer-than-29-bytes.html |
| @@ -0,0 +1,15 @@ |
| +<!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(() => { |
| + const name = 'a_device_name_that_is_longer_than_29_bytes_but_shorter_than_240_bytes' |
| + |
| + return setBluetoothFakeAdapter('DeviceNameLongerThan29BytesAdapter') |
| + .then(() => requestDeviceWithKeyDown({ |
| + filters: [{name: name}]})) |
| + .then(device => assert_equals(device.name, 'rutabaga')); |
| +}, 'A device name between 29 and 240 bytes is valid.'); |
| +</script> |
|
jeffcarp
2017/01/11 01:47:27
Got the new layout test working. lmk if this works
|