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

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: run bad_message_reasons Created 3 years, 10 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 =>
13 characteristic.getDescriptor(user_description.name))
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 ' +
26 'fails. Reject with NetworkError.');
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698