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

Unified Diff: third_party/WebKit/LayoutTests/bluetooth/requestDevice/single-filter-single-service.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/requestDevice/single-filter-single-service.html
diff --git a/third_party/WebKit/LayoutTests/bluetooth/requestDevice/single-filter-single-service.html b/third_party/WebKit/LayoutTests/bluetooth/requestDevice/single-filter-single-service.html
index 77205fd20881401901ff07683ca286159a403301..06470368495f64aa7f1dc36a7751a42a84714e74 100644
--- a/third_party/WebKit/LayoutTests/bluetooth/requestDevice/single-filter-single-service.html
+++ b/third_party/WebKit/LayoutTests/bluetooth/requestDevice/single-filter-single-service.html
@@ -2,12 +2,14 @@
<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>
'use strict';
promise_test(() => {
- return setBluetoothFakeAdapter('GlucoseHeartRateAdapter')
+ return setUpHealthThermometerAndHeartRateDevices()
.then(() => requestDeviceWithKeyDown({
- filters: [{services: ['glucose']}]}))
- .then(device => assert_equals(device.name, 'Glucose Device'));
+ filters: [{services: ['health_thermometer']}]}))
+ .then(device => assert_equals(device.name, 'Health Thermometer'));
}, 'Simple filter selects matching device.');
</script>

Powered by Google App Engine
This is Rietveld 408576698