Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(81)

Unified Diff: third_party/WebKit/LayoutTests/bluetooth/requestDevice/device-name-longer-than-29-bytes.html

Issue 2615273002: Bump Bluetooth max filter name length from 29 bytes to 240 bytes (Closed)
Patch Set: Fix layout tests, begin to add new layout test Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/bluetooth/requestDevice/device-name-longer-than-29-bytes.html
diff --git a/third_party/WebKit/LayoutTests/bluetooth/requestDevice/device-name-longer-than-29-bytes.html b/third_party/WebKit/LayoutTests/bluetooth/requestDevice/device-name-longer-than-29-bytes.html
new file mode 100644
index 0000000000000000000000000000000000000000..ccde915c14db03377524568a3fb523169f94861c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/bluetooth/requestDevice/device-name-longer-than-29-bytes.html
@@ -0,0 +1,13 @@
+<!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('DeviceNameLongerThan29BytesAdapter')
+ .then(() => requestDeviceWithKeyDown({
+ filters: [{services: ['a_device_name_that_is_longer_than_29_bytes_but_shorter_than_240_bytes']}]}))
+ .then(device => assert_equals(device.name, 'Glucose Device'));
+}, 'Simple filter selects matching device.');
+</script>

Powered by Google App Engine
This is Rietveld 408576698