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

Side by Side Diff: runtime/tests/vm/dart/isolate_mirror_local_test.dart

Issue 11417051: Make List an abstract class. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/lib/array_patch.dart ('k') | runtime/vm/flow_graph_builder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // Dart test program for checking implemention of MirrorSystem when 5 // Dart test program for checking implemention of MirrorSystem when
6 // inspecting the current isolate. 6 // inspecting the current isolate.
7 // 7 //
8 // VMOptions=--enable_type_checks 8 // VMOptions=--enable_type_checks
9 9
10 library isolate_mirror_local_test; 10 library isolate_mirror_local_test;
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 LibraryMirror mirror_lib = libraries['dart:mirrors']; 297 LibraryMirror mirror_lib = libraries['dart:mirrors'];
298 Expect.isTrue(mirror_lib is LibraryMirror); 298 Expect.isTrue(mirror_lib is LibraryMirror);
299 299
300 // Lookup an interface from a library and make sure it is sane. 300 // Lookup an interface from a library and make sure it is sane.
301 ClassMirror list_intf = core_lib.members['List']; 301 ClassMirror list_intf = core_lib.members['List'];
302 Expect.isTrue(list_intf is ClassMirror); 302 Expect.isTrue(list_intf is ClassMirror);
303 Expect.equals('List', list_intf.simpleName); 303 Expect.equals('List', list_intf.simpleName);
304 Expect.equals('dart:core.List', list_intf.qualifiedName); 304 Expect.equals('dart:core.List', list_intf.qualifiedName);
305 Expect.isFalse(list_intf.isPrivate); 305 Expect.isFalse(list_intf.isPrivate);
306 Expect.equals('Object', list_intf.superclass.simpleName); 306 Expect.equals('Object', list_intf.superclass.simpleName);
307 Expect.equals('_ListImpl', list_intf.defaultFactory.simpleName);
308 Expect.equals('dart:core', list_intf.owner.simpleName); 307 Expect.equals('dart:core', list_intf.owner.simpleName);
309 Expect.isFalse(list_intf.isClass); 308 Expect.isTrue(list_intf.isClass);
310 Expect.equals('Collection', list_intf.superinterfaces[0].simpleName); 309 Expect.equals('Collection', list_intf.superinterfaces[0].simpleName);
311 Expect.equals("ClassMirror on 'List'", list_intf.toString()); 310 Expect.equals("ClassMirror on 'List'", list_intf.toString());
312 311
313 // Lookup a class from a library and make sure it is sane. 312 // Lookup a class from a library and make sure it is sane.
314 ClassMirror oom_cls = core_lib.members['OutOfMemoryError']; 313 ClassMirror oom_cls = core_lib.members['OutOfMemoryError'];
315 Expect.isTrue(oom_cls is ClassMirror); 314 Expect.isTrue(oom_cls is ClassMirror);
316 Expect.equals('OutOfMemoryError', oom_cls.simpleName); 315 Expect.equals('OutOfMemoryError', oom_cls.simpleName);
317 Expect.equals('dart:core.OutOfMemoryError', oom_cls.qualifiedName); 316 Expect.equals('dart:core.OutOfMemoryError', oom_cls.qualifiedName);
318 Expect.isFalse(oom_cls.isPrivate); 317 Expect.isFalse(oom_cls.isPrivate);
319 Expect.equals('Object', oom_cls.superclass.simpleName); 318 Expect.equals('Object', oom_cls.superclass.simpleName);
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
533 // Test that an isolate can reflect on itself. 532 // Test that an isolate can reflect on itself.
534 mirrorSystemOf(exit_port.toSendPort()).then(testMirrorSystem); 533 mirrorSystemOf(exit_port.toSendPort()).then(testMirrorSystem);
535 534
536 testIntegerInstanceMirror(reflect(1001)); 535 testIntegerInstanceMirror(reflect(1001));
537 testStringInstanceMirror(reflect('This\nis\na\nString')); 536 testStringInstanceMirror(reflect('This\nis\na\nString'));
538 testBoolInstanceMirror(reflect(true)); 537 testBoolInstanceMirror(reflect(true));
539 testNullInstanceMirror(reflect(null)); 538 testNullInstanceMirror(reflect(null));
540 testCustomInstanceMirror(reflect(new MyClass(17))); 539 testCustomInstanceMirror(reflect(new MyClass(17)));
541 testMirrorErrors(currentMirrorSystem()); 540 testMirrorErrors(currentMirrorSystem());
542 } 541 }
OLDNEW
« no previous file with comments | « runtime/lib/array_patch.dart ('k') | runtime/vm/flow_graph_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698