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

Unified Diff: Tools/GardeningServer/model/test/tree-status-tests.html

Issue 536163002: Teach the network simulator to wait for Promises. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 3 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
Index: Tools/GardeningServer/model/test/tree-status-tests.html
diff --git a/Tools/GardeningServer/model/test/tree-status-tests.html b/Tools/GardeningServer/model/test/tree-status-tests.html
index b79a5a43801c9e6457dd2c6cbbaca86f90a97928..85deef415d735afe1f204794279f3011c21d8667 100644
--- a/Tools/GardeningServer/model/test/tree-status-tests.html
+++ b/Tools/GardeningServer/model/test/tree-status-tests.html
@@ -53,7 +53,7 @@ describe('tree status', function() {
};
simulator.runTest(function() {
- Promise.all([
+ return Promise.all([
opentree.update().then(function() {
assert.equal(opentree.status, 'open');
}),
@@ -68,7 +68,7 @@ describe('tree status', function() {
assert.equal(closedtree.status, "closed");
})
]);
- }).then(done);
+ });
});
});

Powered by Google App Engine
This is Rietveld 408576698