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

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

Issue 1211623005: Unify multiple sequential_promise_test definitions. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: update fetch templates and remove new duplicate of this method 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
« no previous file with comments | « no previous file | LayoutTests/bluetooth/connectGATT.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 var genericAccessServiceUuid = '00001800-0000-1000-8000-00805f9b34fb'; 1 var genericAccessServiceUuid = '00001800-0000-1000-8000-00805f9b34fb';
2 var genericAttributeServiceUuid = '00001801-0000-1000-8000-00805f9b34fb'; 2 var genericAttributeServiceUuid = '00001801-0000-1000-8000-00805f9b34fb';
3 var glucoseServiceUuid = '00001808-0000-1000-8000-00805f9b34fb'; 3 var glucoseServiceUuid = '00001808-0000-1000-8000-00805f9b34fb';
4 var heartRateServiceUuid = '0000180d-0000-1000-8000-00805f9b34fb'; 4 var heartRateServiceUuid = '0000180d-0000-1000-8000-00805f9b34fb';
5 var batteryServiceUuid = '0000180f-0000-1000-8000-00805f9b34fb'; 5 var batteryServiceUuid = '0000180f-0000-1000-8000-00805f9b34fb';
6
7 var promise_tests = Promise.resolve();
8 // Helper function to run promise tests one after the other.
9 // TODO(ortuno): Remove once https://github.com/w3c/testharness.js/pull/115/file s
10 // gets through.
11 function sequential_promise_test(func, name) {
12 var test = async_test(name);
13 promise_tests = promise_tests.then(function() {
14 return test.step(func, test, test);
15 }).then(function() {
16 test.done();
17 }).catch(test.step_func(function(value) {
18 // step_func catches the error again so the error doesn't propagate.
19 throw value;
20 }));
21 }
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/bluetooth/connectGATT.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698