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

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

Issue 2867713008: bluetooth: Implement known_service_uuids for Peripherals. (Closed)
Patch Set: rebase Created 3 years, 7 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/idl/idl-BluetoothDevice.html
diff --git a/third_party/WebKit/LayoutTests/bluetooth/idl/idl-BluetoothDevice.html b/third_party/WebKit/LayoutTests/bluetooth/idl/idl-BluetoothDevice.html
index 42a2dcce25b35d0b99d09a4883727601d7724b76..0e6c7959ba2ddd3654838b6e488775d32f553f63 100644
--- a/third_party/WebKit/LayoutTests/bluetooth/idl/idl-BluetoothDevice.html
+++ b/third_party/WebKit/LayoutTests/bluetooth/idl/idl-BluetoothDevice.html
@@ -2,6 +2,8 @@
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script src="../../resources/bluetooth/bluetooth-helpers.js"></script>
+<script src="../../resources/bluetooth/web-bluetooth-test.js"></script>
+<script src="../../resources/mojo-helpers.js"></script>
<script>
test(() => {
assert_throws(null, () => new BluetoothDevice(),
@@ -11,7 +13,7 @@ test(() => {
}, 'BluetoothDevice IDL test');
promise_test(() => {
- return setBluetoothFakeAdapter('GlucoseHeartRateAdapter')
+ return setUpHealthThermometerAndHeartRateDevices()
.then(() => requestDeviceWithKeyDown({
filters: [{services: ['heart_rate']}]}))
.then(device => {
@@ -23,7 +25,7 @@ promise_test(() => {
device.id = 'overwritten';
device.name = 'overwritten';
assert_equals(device.id, old_device_id);
- assert_equals(device.name, 'Heart Rate Device');
+ assert_equals(device.name, 'Heart Rate');
});
}, 'BluetoothDevice attributes.');
</script>

Powered by Google App Engine
This is Rietveld 408576698