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

Unified Diff: tests/isolate/message2_test.dart

Issue 11301046: Restructure pkg/unittest and pkg/webdriver to follow the pub conventions. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month 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 | « tests/isolate/mandel_isolate_test.dart ('k') | tests/isolate/message_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/isolate/message2_test.dart
===================================================================
--- tests/isolate/message2_test.dart (revision 14440)
+++ tests/isolate/message2_test.dart (working copy)
@@ -5,25 +5,24 @@
// Dart test program for testing serialization of messages.
// VMOptions=--enable_type_checks --enable_asserts
-#library('Message2Test');
-#import("dart:isolate");
+library Message2Test;
+import 'dart:isolate';
+import '../../pkg/unittest/lib/unittest.dart';
-#import('../../pkg/unittest/unittest.dart');
-
// ---------------------------------------------------------------------------
// Message passing test 2.
// ---------------------------------------------------------------------------
class MessageTest {
static void mapEqualsDeep(Map expected, Map actual) {
- Expect.equals(true, expected is Map);
- Expect.equals(true, actual is Map);
- Expect.equals(expected.length, actual.length);
+ expect(expected, isMap);
+ expect(actual, isMap);
+ expect(actual.length, expected.length);
testForEachMap(key, value) {
if (value is List) {
listEqualsDeep(value, actual[key]);
} else {
- Expect.equals(value, actual[key]);
+ expect(actual[key], value);
}
}
expected.forEach(testForEachMap);
@@ -36,7 +35,7 @@
} else if (expected[i] is Map) {
mapEqualsDeep(expected[i], actual[i]);
} else {
- Expect.equals(expected[i], actual[i]);
+ expect(actual[i], expected[i]);
}
}
}
« no previous file with comments | « tests/isolate/mandel_isolate_test.dart ('k') | tests/isolate/message_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698