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

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

Issue 193643003: pkg/unittest: support up to 6 arguments in expectAsync[Until] (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: doc comments 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/test/unittest_test_returning_future_using_runasync_test.dart ('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 adb9823f366111179ed0b6bc437ebc8ba7b23de9..8385a1b7b767eea7d4a658943fead7473dc7f382 100644
--- a/pkg/unittest/test/unittest_test_utils.dart
+++ b/pkg/unittest/test/unittest_test_utils.dart
@@ -16,7 +16,7 @@ String buildStatusString(int passed, int failed, int errors,
String message: ''}) {
var totalTests = 0;
var testDetails = new StringBuffer();
- if(results == null) {
+ if (results == null) {
// no op
assert(message == '');
} else if (results is String) {
@@ -44,7 +44,7 @@ class TestConfiguration extends Configuration {
final SendPort _port;
String _result;
- TestConfiguration(this._port) : super.blank();
+ TestConfiguration(this._port): super.blank();
void onSummary(int passed, int failed, int errors, List<TestCase> results,
String uncaughtError) {
@@ -88,6 +88,6 @@ main() {
var replyPort = new ReceivePort();
Isolate.spawn(runTestInIsolate, replyPort.sendPort);
replyPort.first.then((String msg) {
- expect(msg.trim(), equals(expected));
+ expect(msg.trim(), expected);
});
}
« no previous file with comments | « pkg/unittest/test/unittest_test_returning_future_using_runasync_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698