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

Side by Side Diff: third_party/WebKit/LayoutTests/bluetooth/script-tests/descriptor/io-op-reconnect-during-error.js

Issue 2637343002: Implement WebBluetooth descriptor.readValue() (Closed)
Patch Set: #2 Created 3 years, 11 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 unified diff | Download patch
OLDNEW
(Empty)
1 promise_test(
2 () => {
3 return setBluetoothFakeAdapter(
4 'GATTOperationFailsAfterReconnectionAdapter')
5 .then(
6 () => requestDeviceWithKeyDown(
7 {filters: [{services: ['health_thermometer']}]}))
8 .then(device => device.gatt.connect())
9 .then(gatt => gatt.getPrimaryService('health_thermometer'))
10 .then(service => service.getCharacteristic('measurement_interval'))
11 .then(
12 characteristic => characteristic.getDescriptor(
13 'gatt.characteristic_user_description'))
14 .then(descriptor => {
15 let promise = assert_promise_rejects_with_message(
16 descriptor.CALLS([readValue()]),
17 new DOMException(
18 'GATT Server disconnected while performing a GATT operation. ',
19 'NetworkError'));
20 let gatt = descriptor.characteristic.service.device.gatt;
21 gatt.disconnect();
22 return gatt.connect().then(() => promise);
23 });
24 },
25 'disconnect() and connect() called during a FUNCTION_NAME call that ' +
ortuno 2017/01/20 04:30:53 nit: move to previous line.
dougt 2017/01/23 21:40:36 Acknowledged.
26 'fails. Reject with NetworkError.');
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698