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

Unified Diff: LayoutTests/bluetooth/getCharacteristic.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/getCharacteristic.html
diff --git a/LayoutTests/bluetooth/getCharacteristic.html b/LayoutTests/bluetooth/getCharacteristic.html
index 403e7af4045284edcc3ad86b3b0a0813cf991b61..d030231ee11031283f404db8590b3855ff9b6670 100644
--- a/LayoutTests/bluetooth/getCharacteristic.html
+++ b/LayoutTests/bluetooth/getCharacteristic.html
@@ -15,7 +15,9 @@ var nonIncludedCharacteristicUUID = "00002a19-0000-1000-8000-00805f9b34fb";
sequential_promise_test(function() {
testRunner.setBluetoothMockDataSet('ConnectableDeviceAdapter');
- return navigator.bluetooth.requestDevice().then(function(device) {
+ return navigator.bluetooth.requestDevice({
+ filters: [{services: [serviceUUID]}]
+ }).then(function(device) {
return device.connectGATT();
}).then(function(gattServer) {
return gattServer.getPrimaryService(serviceUUID);
@@ -31,7 +33,9 @@ sequential_promise_test(function() {
sequential_promise_test(function() {
testRunner.setBluetoothMockDataSet('ConnectableDeviceAdapter');
- return navigator.bluetooth.requestDevice().then(function(device) {
+ return navigator.bluetooth.requestDevice({
+ filters: [{services: [serviceUUID]}]
+ }).then(function(device) {
return device.connectGATT();
}).then(function(gattServer) {
return gattServer.getPrimaryService(serviceUUID);
@@ -45,7 +49,9 @@ sequential_promise_test(function() {
sequential_promise_test(function() {
testRunner.setBluetoothMockDataSet('ConnectableDeviceAdapter');
- return navigator.bluetooth.requestDevice().then(function(device) {
+ return navigator.bluetooth.requestDevice({
+ filters: [{services: [serviceUUID]}]
+ }).then(function(device) {
return device.connectGATT();
}).then(function(gattServer) {
return gattServer.getPrimaryService(serviceUUID);
@@ -59,7 +65,9 @@ sequential_promise_test(function() {
sequential_promise_test(function() {
testRunner.setBluetoothMockDataSet('ConnectableDeviceAdapter');
- return navigator.bluetooth.requestDevice().then(function(device) {
+ return navigator.bluetooth.requestDevice({
+ filters: [{services: [serviceUUID]}]
+ }).then(function(device) {
return device.connectGATT();
}).then(function(gattServer) {
return gattServer.getPrimaryService(serviceUUID);

Powered by Google App Engine
This is Rietveld 408576698