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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/bluetooth/connectGATT.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/bluetooth/bluetooth-helpers.js
diff --git a/LayoutTests/bluetooth/bluetooth-helpers.js b/LayoutTests/bluetooth/bluetooth-helpers.js
index ec1a43a2def17238024cbb59170d5d9b714dbb7a..1bf4d71bd6558ba180744fc110dea38438e2252d 100644
--- a/LayoutTests/bluetooth/bluetooth-helpers.js
+++ b/LayoutTests/bluetooth/bluetooth-helpers.js
@@ -3,19 +3,3 @@ var genericAttributeServiceUuid = '00001801-0000-1000-8000-00805f9b34fb';
var glucoseServiceUuid = '00001808-0000-1000-8000-00805f9b34fb';
var heartRateServiceUuid = '0000180d-0000-1000-8000-00805f9b34fb';
var batteryServiceUuid = '0000180f-0000-1000-8000-00805f9b34fb';
-
-var promise_tests = Promise.resolve();
-// Helper function to run promise tests one after the other.
-// TODO(ortuno): Remove once https://github.com/w3c/testharness.js/pull/115/files
-// gets through.
-function sequential_promise_test(func, name) {
- var test = async_test(name);
- promise_tests = promise_tests.then(function() {
- return test.step(func, test, test);
- }).then(function() {
- test.done();
- }).catch(test.step_func(function(value) {
- // step_func catches the error again so the error doesn't propagate.
- throw value;
- }));
-}
« 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