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

Side by Side Diff: third_party/WebKit/LayoutTests/bluetooth/script-tests/service/get-same-object.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('HeartRateAdapter') 3 return setBluetoothFakeAdapter('HeartRateAdapter')
4 .then(() => requestDeviceWithKeyDown({ 4 .then(() => requestDeviceWithKeyDown({
5 filters: [{services: ['heart_rate']}]})) 5 filters: [{services: ['heart_rate']}]}))
6 .then(device => device.gatt.connect()) 6 .then(device => device.gatt.connect())
7 .then(gattServer => gattServer.getPrimaryService('heart_rate')) 7 .then(gattServer => gattServer.getPrimaryService('heart_rate'))
8 .then(service => Promise.all([ 8 .then(service => Promise.all([
9 service.CALLS([ 9 service.CALLS([
10 getCharacteristic('body_sensor_location')| 10 getCharacteristic('body_sensor_location')|
(...skipping 11 matching lines...) Expand all
22 characteristics_arrays[i].length); 22 characteristics_arrays[i].length);
23 } 23 }
24 24
25 let base_set = new Set(characteristics_arrays[0]); 25 let base_set = new Set(characteristics_arrays[0]);
26 for (let characteristics of characteristics_arrays) { 26 for (let characteristics of characteristics_arrays) {
27 characteristics.forEach( 27 characteristics.forEach(
28 characteristic => assert_true(base_set.has(characteristic))); 28 characteristic => assert_true(base_set.has(characteristic)));
29 } 29 }
30 }); 30 });
31 }, 'Calls to FUNCTION_NAME should return the same object.'); 31 }, 'Calls to FUNCTION_NAME should return the same object.');
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698