Index: tests/lib/async/zone_error_callback_test.dart |
diff --git a/tests/lib/async/zone_error_callback_test.dart b/tests/lib/async/zone_error_callback_test.dart |
index da6773a4c09136a692a73f400c17ead67de8dd8a..5ad373e6fa875fd43a3c24d2aa8a93d3141aff34 100644 |
--- a/tests/lib/async/zone_error_callback_test.dart |
+++ b/tests/lib/async/zone_error_callback_test.dart |
@@ -32,17 +32,19 @@ class SomeError implements Error { |
const error1 = const SomeError(1); |
const error2 = const SomeError(2); |
-void expectError(e, s) { |
+Null expectError(e, s) { |
// Remember one asyncStart per use of this callback. |
Expect.identical(error1, e); |
Expect.identical(stack1, s); |
asyncEnd(); |
+ return null; |
} |
-void expectErrorOnly(e, s) { |
+Null expectErrorOnly(e, s) { |
// Remember one asyncStart per use of this callback. |
Expect.identical(error1, e); |
asyncEnd(); |
+ return null; |
} |
AsyncError replace(self, parent, zone, e, s) { |
@@ -54,10 +56,11 @@ AsyncError replace(self, parent, zone, e, s) { |
var replaceZoneSpec = new ZoneSpecification(errorCallback: replace); |
// Expectation after replacing. |
-void expectReplaced(e, s) { |
+Null expectReplaced(e, s) { |
Expect.identical(error2, e); |
Expect.identical(stack2, s); |
asyncEnd(); |
+ return null; |
} |
void testProgrammaticErrors(expectError) { |