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

Unified Diff: LayoutTests/bluetooth/getPrimaryService.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/getPrimaryService.html
diff --git a/LayoutTests/bluetooth/getPrimaryService.html b/LayoutTests/bluetooth/getPrimaryService.html
index aa7b3d821830dbd20ef4aa44038587c4d8f26aaf..d5618a48b4ce8ccc826963774b33a6175de05c00 100644
--- a/LayoutTests/bluetooth/getPrimaryService.html
+++ b/LayoutTests/bluetooth/getPrimaryService.html
@@ -11,7 +11,9 @@ var heart_rate = "0000180D-0000-1000-8000-00805f9b34fb";
sequential_promise_test(function() {
testRunner.setBluetoothMockDataSet('ConnectableDeviceAdapter');
- return navigator.bluetooth.requestDevice().then(function(device) {
+ return navigator.bluetooth.requestDevice({
+ filters: [{services: [generic_access]}]
+ }).then(function(device) {
return device.connectGATT();
}).then(function(gattServer) {
testRunner.setBluetoothMockDataSet('EmptyAdapter');
@@ -25,7 +27,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: [generic_access]}]
+ }).then(function(device) {
return device.connectGATT();
}).then(function(gattServer) {
return gattServer.getPrimaryService(heart_rate);
@@ -37,7 +41,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: [generic_access]}]
+ }).then(function(device) {
return device.connectGATT();
}).then(function(gattServer) {
return gattServer.getPrimaryService(generic_access);
@@ -51,7 +57,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: [generic_access]}]
+ }).then(function(device) {
return device.connectGATT();
}).then(function(gattServer) {
return Promise.all([gattServer.getPrimaryService(generic_access),

Powered by Google App Engine
This is Rietveld 408576698