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

Side by Side Diff: LayoutTests/bluetooth/bluetooth-helpers.js

Issue 1182973002: Implement the Blink side of RequestDeviceOptions. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@pinned
Patch Set: Prepare readValue.html for a mock data change Created 5 years, 6 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 var genericAccessServiceUuid = '00001800-0000-1000-8000-00805f9b34fb';
2 var genericAttributeServiceUuid = '00001801-0000-1000-8000-00805f9b34fb';
3 var glucoseServiceUuid = '00001808-0000-1000-8000-00805f9b34fb';
4 var heartRateServiceUuid = '0000180d-0000-1000-8000-00805f9b34fb';
5 var batteryServiceUuid = '0000180f-0000-1000-8000-00805f9b34fb';
6
1 var promise_tests = Promise.resolve(); 7 var promise_tests = Promise.resolve();
2 // Helper function to run promise tests one after the other. 8 // Helper function to run promise tests one after the other.
3 // TODO(ortuno): Remove once https://github.com/w3c/testharness.js/pull/115/file s 9 // TODO(ortuno): Remove once https://github.com/w3c/testharness.js/pull/115/file s
4 // gets through. 10 // gets through.
5 function sequential_promise_test(func, name) { 11 function sequential_promise_test(func, name) {
6 var test = async_test(name); 12 var test = async_test(name);
7 promise_tests = promise_tests.then(function() { 13 promise_tests = promise_tests.then(function() {
8 return test.step(func, test, test); 14 return test.step(func, test, test);
9 }).then(function() { 15 }).then(function() {
10 test.done(); 16 test.done();
11 }).catch(test.step_func(function(value) { 17 }).catch(test.step_func(function(value) {
12 // step_func catches the error again so the error doesn't propagate. 18 // step_func catches the error again so the error doesn't propagate.
13 throw value; 19 throw value;
14 })); 20 }));
15 } 21 }
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/bluetooth/connectGATT.html » ('j') | Source/modules/bluetooth/RequestDeviceOptions.idl » ('J')

Powered by Google App Engine
This is Rietveld 408576698