Chromium Code Reviews| 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. |