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

Side by Side Diff: third_party/WebKit/LayoutTests/bluetooth/resources/bluetooth-helpers.js

Issue 1723723002: bluetooth: Implement Service.getCharacteristics (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@my-origin
Patch Set: Address jyasskin's comments and add moar tests Created 4 years, 9 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
1 'use strict'; 1 'use strict';
2 2
3 // Sometimes we need to test that using either the name, alias, or UUID 3 // Sometimes we need to test that using either the name, alias, or UUID
4 // produces the same result. The following objects help us do that. 4 // produces the same result. The following objects help us do that.
5 var generic_access = { 5 var generic_access = {
6 alias: 0x1800, 6 alias: 0x1800,
7 name: 'generic_access', 7 name: 'generic_access',
8 uuid: '00001800-0000-1000-8000-00805f9b34fb' 8 uuid: '00001800-0000-1000-8000-00805f9b34fb'
9 }; 9 };
10 var device_name = { 10 var device_name = {
11 alias: 0x2a00, 11 alias: 0x2a00,
12 name: 'gap.device_name', 12 name: 'gap.device_name',
13 uuid: '00002a00-0000-1000-8000-00805f9b34fb' 13 uuid: '00002a00-0000-1000-8000-00805f9b34fb'
14 }; 14 };
15 var reconnection_address = { 15 var reconnection_address = {
16 alias: 0x2a03, 16 alias: 0x2a03,
17 name: 'gap.reconnection_address', 17 name: 'gap.reconnection_address',
18 uuid: '00002a03-0000-1000-8000-00805f9b34fb' 18 uuid: '00002a03-0000-1000-8000-00805f9b34fb'
19 }; 19 };
20 var heart_rate = { 20 var heart_rate = {
21 alias: 0x180d, 21 alias: 0x180d,
22 name: 'heart_rate', 22 name: 'heart_rate',
23 uuid: '0000180d-0000-1000-8000-00805f9b34fb' 23 uuid: '0000180d-0000-1000-8000-00805f9b34fb'
24 }; 24 };
25 var body_sensor_location = {
26 alias: 0x2a38,
27 name: 'body_sensor_location',
28 uuid: '00002a38-0000-1000-8000-00805f9b34fb'
29 };
25 var glucose = { 30 var glucose = {
26 alias: 0x1808, 31 alias: 0x1808,
27 name: 'glucose', 32 name: 'glucose',
28 uuid: '00001808-0000-1000-8000-00805f9b34fb' 33 uuid: '00001808-0000-1000-8000-00805f9b34fb'
29 }; 34 };
30 var battery_service = { 35 var battery_service = {
31 alias: 0x180f, 36 alias: 0x180f,
32 name: 'battery_service', 37 name: 'battery_service',
33 uuid: '0000180f-0000-1000-8000-00805f9b34fb' 38 uuid: '0000180f-0000-1000-8000-00805f9b34fb'
34 }; 39 };
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 // interact with the device. So before we clean up the browser data 306 // interact with the device. So before we clean up the browser data
302 // we change the visibility which results in all devices disconnecing. 307 // we change the visibility which results in all devices disconnecing.
303 // TODO(ortuno): Remove setPageVisibility hack. In the future, the browser 308 // TODO(ortuno): Remove setPageVisibility hack. In the future, the browser
304 // will notify the renderer that the device disconnected so we won't need 309 // will notify the renderer that the device disconnected so we won't need
305 // this hack. 310 // this hack.
306 // https://crbug.com/581855 311 // https://crbug.com/581855
307 testRunner.setPageVisibility('hidden'); 312 testRunner.setPageVisibility('hidden');
308 testRunner.setPageVisibility('visible'); 313 testRunner.setPageVisibility('visible');
309 testRunner.setBluetoothMockDataSet(''); 314 testRunner.setBluetoothMockDataSet('');
310 }); 315 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698