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

Side by Side Diff: third_party/WebKit/LayoutTests/bluetooth/server/getPrimaryServices/gen-disconnect-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 let promise; 9 let promise;
10 return setBluetoothFakeAdapter('TwoHeartRateServicesAdapter') 10 return setBluetoothFakeAdapter('TwoHeartRateServicesAdapter')
11 .then(() => requestDeviceWithKeyDown({ 11 .then(() => requestDeviceWithKeyDown({
12 filters: [{services: ['heart_rate']}]})) 12 filters: [{services: ['heart_rate']}]}))
13 .then(device => device.gatt.connect()) 13 .then(device => device.gatt.connect())
14 .then(gattServer => { 14 .then(gattServer => {
15 return gattServer 15 return gattServer
(...skipping 25 matching lines...) Expand all
41 assert_promise_rejects_with_message( 41 assert_promise_rejects_with_message(
42 service.getCharacteristics('body_sensor_location'), 42 service.getCharacteristics('body_sensor_location'),
43 error)); 43 error));
44 } 44 }
45 return promises; 45 return promises;
46 }); 46 });
47 }, 'Calls on services after we disconnect and connect again. '+ 47 }, 'Calls on services after we disconnect and connect again. '+
48 'Should reject with InvalidStateError.'); 48 'Should reject with InvalidStateError.');
49 49
50 </script> 50 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698