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

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

Issue 876623003: bluetooth: New WebBluetoothDevice attributes plumbed to BluetoothDevice. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@bt-1-
Patch Set: Created 5 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
« no previous file with comments | « no previous file | Source/modules/bluetooth/BluetoothDevice.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/bluetooth/idl-BluetoothDevice.html
diff --git a/LayoutTests/bluetooth/idl-BluetoothDevice.html b/LayoutTests/bluetooth/idl-BluetoothDevice.html
index d774367a7f9d8fcc16a5aad0bd2d787ddfa2eb88..e5dd7f45938939714243d37b5fab605e767e794e 100644
--- a/LayoutTests/bluetooth/idl-BluetoothDevice.html
+++ b/LayoutTests/bluetooth/idl-BluetoothDevice.html
@@ -21,10 +21,27 @@ async_test(function(t) {
// Attempt (and fail) to overwrite all members, verifying they are readonly.
device.instanceID = "overwritten";
+ device.name = "overwritten";
+ device.deviceClass = "overwritten";
+ device.vendorIDSource = "overwritten";
+ device.vendorID = "overwritten";
+ device.productID = "overwritten";
+ device.productVersion = "overwritten";
+ device.paired = "overwritten";
+ device.connected = "overwritten";
+ device.uuids = "overwritten"
- // FIXME: Remove "Empty Mock deviceId" after crrev.com/885723002 lands.
- assert_true(device.instanceID === "Empty Mock deviceId" ||
- device.instanceID === "Empty Mock Device instanceID");
+ assert_equals(device.instanceID, "Empty Mock Device instanceID");
+ assert_equals(device.name, "Empty Mock Device name");
+ 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.connected, false);
+ assert_equals(device.uuids[0], "00001800-0000-1000-8000-00805f9b34fb");
+ assert_equals(device.uuids[1], "00001801-0000-1000-8000-00805f9b34fb");
t.done();
}),
« no previous file with comments | « no previous file | Source/modules/bluetooth/BluetoothDevice.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698