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

Unified Diff: tests/language/first_class_types_literals_test.dart

Issue 11360228: Simplify runtime type support. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove test again. 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_literals_test.dart
diff --git a/tests/language/first_class_types_literals_test.dart b/tests/language/first_class_types_literals_test.dart
index 360564e2da7ce405f9298b1fc8a3ebb15caf455f..2ca2a9514d3ed6301ea162f7b94aa645f43593df 100644
--- a/tests/language/first_class_types_literals_test.dart
+++ b/tests/language/first_class_types_literals_test.dart
@@ -8,14 +8,16 @@ class D {}
typedef int Foo(bool b);
-sameType(a, b) {
- Expect.identical(a.runtimeType, b.runtimeType);
+isNotIdentical(a, b) {
ngeoffray 2012/11/15 08:58:09 Any reason for the prints? Otherwise why not use E
+ print("a: ${a.runtimeType}");
+ print("b: ${b.runtimeType}");
+ Expect.isFalse(a === b);
}
main() {
// Test type literals.
Expect.identical(int, int);
- Expect.isFalse(identical(int, num));
+ isNotIdentical(int, num);
Expect.identical(Foo, Foo);
// Test that class literals return instances of Type.

Powered by Google App Engine
This is Rietveld 408576698