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

Unified Diff: LayoutTests/bluetooth/idl-BluetoothDevice.html

Issue 1182973002: Implement the Blink side of RequestDeviceOptions. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@pinned
Patch Set: Prepare readValue.html for a mock data change Created 5 years, 6 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: LayoutTests/bluetooth/idl-BluetoothDevice.html
diff --git a/LayoutTests/bluetooth/idl-BluetoothDevice.html b/LayoutTests/bluetooth/idl-BluetoothDevice.html
index f75cdd3cf5723c11653bca06f4102adc0e02db03..8021c5a679810d759b47df170f019badb394855e 100644
--- a/LayoutTests/bluetooth/idl-BluetoothDevice.html
+++ b/LayoutTests/bluetooth/idl-BluetoothDevice.html
@@ -15,7 +15,9 @@ test(function(t) { assert_exists(window, "testRunner"); t.done(); },
sequential_promise_test(function() {
testRunner.setBluetoothMockDataSet('SingleEmptyDeviceAdapter');
- return navigator.bluetooth.requestDevice().then(function(device) {
+ return navigator.bluetooth.requestDevice({
+ filters: [{services: [genericAccessServiceUuid]}]
+ }).then(function(device) {
assert_equals(device.constructor.name, "BluetoothDevice");
// Attempt (and fail) to overwrite all members, verifying they are readonly.
@@ -30,15 +32,15 @@ sequential_promise_test(function() {
device.uuids = "overwritten";
assert_equals(device.instanceID, "Empty Mock Device instanceID");
- assert_equals(device.name, "Empty Mock Device name");
+ assert_equals(device.name.slice(0, 17), "Empty Mock Device");
assert_equals(device.deviceClass, 0x1F00);
assert_equals(device.vendorIDSource, "bluetooth");
assert_equals(device.vendorID, 0xFFFF);
assert_equals(device.productID, 1);
assert_equals(device.productVersion, 2);
assert_equals(device.paired, true);
- assert_equals(device.uuids[0], "00001800-0000-1000-8000-00805f9b34fb");
- assert_equals(device.uuids[1], "00001801-0000-1000-8000-00805f9b34fb");
+ assert_equals(device.uuids[0], genericAccessServiceUuid);
+ assert_equals(device.uuids[1], genericAttributeServiceUuid);
});
}, 'BluetoothDevice attributes.');
</script>

Powered by Google App Engine
This is Rietveld 408576698