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

Unified Diff: pkg/unittest/test/unittest_test_utils.dart

Issue 208273009: pkg/unittest: Removed references to expectAsync[Until]X in docs (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: rebase Created 6 years, 9 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 | « pkg/unittest/pubspec.yaml ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/unittest/test/unittest_test_utils.dart
diff --git a/pkg/unittest/test/unittest_test_utils.dart b/pkg/unittest/test/unittest_test_utils.dart
index 8385a1b7b767eea7d4a658943fead7473dc7f382..17a8cb62364bf90c449a66456dc538c2dc065361 100644
--- a/pkg/unittest/test/unittest_test_utils.dart
+++ b/pkg/unittest/test/unittest_test_utils.dart
@@ -58,33 +58,33 @@ class TestConfiguration extends Configuration {
}
}
-makeDelayedSetup(index, s) => () {
+Function makeDelayedSetup(index, s) => () {
return new Future.delayed(new Duration(milliseconds: 1), () {
s.write('l$index U ');
});
};
-makeDelayedTeardown(index, s) => () {
+Function makeDelayedTeardown(index, s) => () {
return new Future.delayed(new Duration(milliseconds: 1), () {
s.write('l$index D ');
});
};
-makeImmediateSetup(index, s) => () {
+Function makeImmediateSetup(index, s) => () {
s.write('l$index U ');
};
-makeImmediateTeardown(index, s) => () {
+Function makeImmediateTeardown(index, s) => () {
s.write('l$index D ');
};
-runTestInIsolate(sendport) {
+void runTestInIsolate(sendport) {
var testConfig = new TestConfiguration(sendport);
unittestConfiguration = testConfig;
testFunction(testConfig);
}
-main() {
+void main() {
var replyPort = new ReceivePort();
Isolate.spawn(runTestInIsolate, replyPort.sendPort);
replyPort.first.then((String msg) {
« no previous file with comments | « pkg/unittest/pubspec.yaml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698