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

Side by Side Diff: third_party/WebKit/LayoutTests/bluetooth/service/getCharacteristics/gen-device-disconnects-invalidates-objects.html

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 <!-- Generated by //third_party/WebKit/LayoutTests/bluetooth/generate.py --> 1 <!-- Generated by //third_party/WebKit/LayoutTests/bluetooth/generate.py -->
2 <!DOCTYPE html> 2 <!DOCTYPE html>
3 <script src="../../resources/testharness.js"></script> 3 <script src="../../../resources/testharness.js"></script>
4 <script src="../../resources/testharnessreport.js"></script> 4 <script src="../../../resources/testharnessreport.js"></script>
5 <script src="../../resources/bluetooth/bluetooth-helpers.js"></script> 5 <script src="../../../resources/bluetooth/bluetooth-helpers.js"></script>
6 <script> 6 <script>
7 'use strict'; 7 'use strict';
8 promise_test(() => { 8 promise_test(() => {
9 return setBluetoothFakeAdapter('DisconnectingHealthThermometerAdapter') 9 return setBluetoothFakeAdapter('DisconnectingHealthThermometerAdapter')
10 .then(() => requestDeviceWithKeyDown({ 10 .then(() => requestDeviceWithKeyDown({
11 filters: [{services: ['health_thermometer']}], 11 filters: [{services: ['health_thermometer']}],
12 optionalServices: [request_disconnection_service_uuid]})) 12 optionalServices: [request_disconnection_service_uuid]}))
13 .then(device => device.gatt.connect()) 13 .then(device => device.gatt.connect())
14 .then(gattServer => { 14 .then(gattServer => {
15 let characteristics; 15 let characteristics;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 assert_promise_rejects_with_message( 47 assert_promise_rejects_with_message(
48 characteristic.stopNotifications(), 48 characteristic.stopNotifications(),
49 error)); 49 error));
50 } 50 }
51 return promises; 51 return promises;
52 }); 52 });
53 }, 'Calls on characteristics after device disconnects and we reconnect. ' + 53 }, 'Calls on characteristics after device disconnects and we reconnect. ' +
54 'Should reject with InvalidStateError.'); 54 'Should reject with InvalidStateError.');
55 55
56 </script> 56 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698