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

Side by Side Diff: third_party/WebKit/LayoutTests/bluetooth/script-tests/server/device-disconnects-invalidates-objects.js

Issue 2544513004: Fix WebBluetooth generator to distinguish between different methods. (Closed)
Patch Set: Remove TL;DR in README Created 4 years 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
1 'use strict'; 1 'use strict';
2 promise_test(() => { 2 promise_test(() => {
3 return setBluetoothFakeAdapter('DisconnectingHealthThermometerAdapter') 3 return setBluetoothFakeAdapter('DisconnectingHealthThermometerAdapter')
4 .then(() => requestDeviceWithKeyDown({ 4 .then(() => requestDeviceWithKeyDown({
5 filters: [{services: ['health_thermometer']}], 5 filters: [{services: ['health_thermometer']}],
6 optionalServices: [request_disconnection_service_uuid]})) 6 optionalServices: [request_disconnection_service_uuid]}))
7 .then(device => device.gatt.connect()) 7 .then(device => device.gatt.connect())
8 .then(gattServer => { 8 .then(gattServer => {
9 let services; 9 let services;
10 return gattServer 10 return gattServer
(...skipping 30 matching lines...) Expand all
41 error)); 41 error));
42 promises = promises.then(() => 42 promises = promises.then(() =>
43 assert_promise_rejects_with_message( 43 assert_promise_rejects_with_message(
44 service.getCharacteristics('measurement_interval'), 44 service.getCharacteristics('measurement_interval'),
45 error)); 45 error));
46 } 46 }
47 return promises; 47 return promises;
48 }); 48 });
49 }, 'Calls on services after device disconnects and we reconnect. ' + 49 }, 'Calls on services after device disconnects and we reconnect. ' +
50 'Should reject with InvalidStateError.'); 50 'Should reject with InvalidStateError.');
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698