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

Side by Side Diff: tests/language_strong/runtime_type_test.dart

Issue 2962263002: fix #30030, fix #27327 - fix tearoffs and various Object member bugs (Closed)
Patch Set: fix Created 3 years, 5 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import "package:expect/expect.dart"; 5 import "package:expect/expect.dart";
6 6
7 class A {} 7 class A {}
8 8
9 class B {} 9 class B {}
10 10
(...skipping 15 matching lines...) Expand all
26 26
27 Expect.isTrue(classA.runtimeType is Type); 27 Expect.isTrue(classA.runtimeType is Type);
28 Expect.isTrue(classA.runtimeType == classB.runtimeType); 28 Expect.isTrue(classA.runtimeType == classB.runtimeType);
29 Expect.isFalse(classA.runtimeType == a.runtimeType); 29 Expect.isFalse(classA.runtimeType == a.runtimeType);
30 Expect.isFalse(classA.runtimeType == f.runtimeType); 30 Expect.isFalse(classA.runtimeType == f.runtimeType);
31 31
32 Expect.isTrue(funcType.runtimeType == classA.runtimeType); 32 Expect.isTrue(funcType.runtimeType == classA.runtimeType);
33 33
34 Expect.isTrue(null.runtimeType is Type); 34 Expect.isTrue(null.runtimeType is Type);
35 Expect.equals(Null, null.runtimeType); 35 Expect.equals(Null, null.runtimeType);
36
37 Expect.equals([].runtimeType.toString(), 'List');
38 Expect.equals((<int>[]).runtimeType.toString(), 'List<int>');
36 } 39 }
OLDNEW
« no previous file with comments | « tests/language_strong/no_such_method_native_test.dart ('k') | tests/language_strong/tearoff_dynamic_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698