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

Unified Diff: tests/language/first_class_types_libraries_test.dart

Issue 11417005: Do not canonicalize Type instances. (Closed) Base URL: https://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
Index: tests/language/first_class_types_libraries_test.dart
diff --git a/tests/language/first_class_types_libraries_test.dart b/tests/language/first_class_types_libraries_test.dart
index 521f2fa41f6e5a52eebd09f024be559bd18c174d..db6442f4c7e51ecb90f9d7444167907990744855 100644
--- a/tests/language/first_class_types_libraries_test.dart
+++ b/tests/language/first_class_types_libraries_test.dart
@@ -9,13 +9,11 @@ import 'first_class_types_lib2.dart' as lib2;
class C<X> {}
sameType(a, b) {
- Expect.identical(a.runtimeType, b.runtimeType);
+ Expect.equals(a.runtimeType, b.runtimeType);
}
differentType(a, b) {
- print("a: ${a.runtimeType}");
- print("b: ${b.runtimeType}");
- Expect.isFalse(identical(a.runtimeType, b.runtimeType));
+ Expect.notEquals(a.runtimeType, b.runtimeType);
}
main() {

Powered by Google App Engine
This is Rietveld 408576698