| Index: third_party/WebKit/LayoutTests/bluetooth/disconnect.html
|
| diff --git a/third_party/WebKit/LayoutTests/bluetooth/disconnect.html b/third_party/WebKit/LayoutTests/bluetooth/disconnect.html
|
| index 553104ab0c88809ab763aa49dd1844b70c5a64e5..037122e4c289c413d78df8ecd38076259d80578c 100644
|
| --- a/third_party/WebKit/LayoutTests/bluetooth/disconnect.html
|
| +++ b/third_party/WebKit/LayoutTests/bluetooth/disconnect.html
|
| @@ -12,8 +12,9 @@ test(t => { assert_true(window.testRunner instanceof Object); t.done(); },
|
| // called on the device.
|
| // http://crbug.com/569716
|
| promise_test(() => {
|
| - testRunner.setBluetoothMockDataSet('HeartRateAdapter');
|
| - return requestDeviceWithKeyDown({filters: [{services: ['heart_rate']}]})
|
| + return setBluetoothFakeAdapter('HeartRateAdapter')
|
| + .then(() => requestDeviceWithKeyDown({
|
| + filters: [{services: ['heart_rate']}]}))
|
| .then(device => device.gatt.connect())
|
| .then(gattServer => {
|
| gattServer.disconnect();
|
| @@ -22,8 +23,9 @@ promise_test(() => {
|
| }, '\'connected\' is set to false after disconnect is called.');
|
|
|
| promise_test(() => {
|
| - testRunner.setBluetoothMockDataSet('HeartRateAdapter');
|
| - return requestDeviceWithKeyDown({filters: [{services: ['heart_rate']}]})
|
| + return setBluetoothFakeAdapter('HeartRateAdapter')
|
| + .then(() => requestDeviceWithKeyDown({
|
| + filters: [{services: ['heart_rate']}]}))
|
| .then(device => device.gatt.connect())
|
| .then(gattServer => {
|
| gattServer.disconnect();
|
| @@ -35,8 +37,9 @@ promise_test(() => {
|
| 'being false.');
|
|
|
| promise_test(() => {
|
| - testRunner.setBluetoothMockDataSet('HeartRateAdapter');
|
| - return requestDeviceWithKeyDown({filters: [{services: ['heart_rate']}]})
|
| + return setBluetoothFakeAdapter('HeartRateAdapter')
|
| + .then(() => requestDeviceWithKeyDown({
|
| + filters: [{services: ['heart_rate']}]}))
|
| .then(device => {
|
| return device.gatt.connect().then(gattServer => {
|
| gattServer.disconnect();
|
|
|