| 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.
|
|
|