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

Unified Diff: third_party/WebKit/LayoutTests/bluetooth/connect/device-goes-out-of-range.html

Issue 1898263002: bluetooth: Separate connection tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bluetooth-separate-tests-get-primary-service
Patch Set: Add name to test Created 4 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/connect/device-goes-out-of-range.html
diff --git a/third_party/WebKit/LayoutTests/bluetooth/getCharacteristics/device-goes-out-of-range.html b/third_party/WebKit/LayoutTests/bluetooth/connect/device-goes-out-of-range.html
similarity index 80%
copy from third_party/WebKit/LayoutTests/bluetooth/getCharacteristics/device-goes-out-of-range.html
copy to third_party/WebKit/LayoutTests/bluetooth/connect/device-goes-out-of-range.html
index ed798c260c1ed334c4e51208d414920ad28fc609..cf1c51d9ec2db7fb77a41879425c738a36641fae 100644
--- a/third_party/WebKit/LayoutTests/bluetooth/getCharacteristics/device-goes-out-of-range.html
+++ b/third_party/WebKit/LayoutTests/bluetooth/connect/device-goes-out-of-range.html
@@ -8,12 +8,10 @@ promise_test(() => {
return setBluetoothFakeAdapter('HeartRateAdapter')
.then(() => requestDeviceWithKeyDown({
filters: [{services: ['heart_rate']}]}))
- .then(device => device.gatt.connect())
- .then(gattServer => gattServer.getPrimaryService('heart_rate'))
- .then(service => {
+ .then(device => {
return setBluetoothFakeAdapter('EmptyAdapter')
.then(() => assert_promise_rejects_with_message(
- service.getCharacteristics(),
+ device.gatt.connect(),
new DOMException('Bluetooth Device is no longer in range.',
'NetworkError'),
'Device went out of range.'));

Powered by Google App Engine
This is Rietveld 408576698