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

Unified Diff: client/testing/unittest/shared.dart

Issue 8363040: Implement measurement using futures (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove duplicated imports from html.dart Created 9 years, 2 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: client/testing/unittest/shared.dart
diff --git a/client/testing/unittest/shared.dart b/client/testing/unittest/shared.dart
index 17f506e116b3240e0ec43dac06a327a28f367a96..f9f12129b23b626be703275af3b665bd4557f9cd 100644
--- a/client/testing/unittest/shared.dart
+++ b/client/testing/unittest/shared.dart
@@ -80,6 +80,21 @@ void asyncTest(String spec, int callbacks, TestFunction body) {
}
}
+void serialInvokeAsync(List closures) {
+ final length = closures.length;
+ if (length > 0) {
+ int i = 0;
+ void invokeNext() {
+ closures[i]();
+ i++;
+ if (i < length) {
+ window.setTimeout(invokeNext, 0);
+ }
+ }
+ window.setTimeout(invokeNext, 0);
+ }
+}
+
/**
* Creates a new named group of tests. Calls to group() or test() within the
* body of the function passed to this will inherit this group's description.
« no previous file with comments | « client/samples/total/src/SpreadsheetPresenter.dart ('k') | client/tests/client/html/DocumentFragmentTests.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698