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

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

Issue 24005002: Make TypedefMirror a direct descendant of TypeMirror. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: merge with generic interfaces and mixins Created 7 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « runtime/lib/mirrors_patch.dart ('k') | sdk/lib/_internal/lib/js_mirrors.dart » ('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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 'testMirrorErrors, ' 164 'testMirrorErrors, '
165 'testMirrorSystem, ' 165 'testMirrorSystem, '
166 'testNullInstanceMirror, ' 166 'testNullInstanceMirror, '
167 'testRootLibraryMirror, ' 167 'testRootLibraryMirror, '
168 'testStringInstanceMirror]', 168 'testStringInstanceMirror]',
169 '$keys'); 169 '$keys');
170 170
171 // Check that the classes map is complete. 171 // Check that the classes map is complete.
172 keys = lib_mirror.classes.keys.map(MirrorSystem.getName).toList(); 172 keys = lib_mirror.classes.keys.map(MirrorSystem.getName).toList();
173 sort(keys); 173 sort(keys);
174 print(keys);
175 Expect.equals('['
176 'GenericClass, '
177 'MyClass, '
178 'MyException, '
179 'MyInterface, '
180 'MySuperClass]',
181 '$keys');
182
183 // Check that the types map is complete.
184 keys = lib_mirror.types.keys.map(MirrorSystem.getName).toList();
185 sort(keys);
186 print(keys);
174 Expect.equals('[' 187 Expect.equals('['
175 'FuncType, ' 188 'FuncType, '
176 'GenericClass, ' 189 'GenericClass, '
177 'MyClass, ' 190 'MyClass, '
178 'MyException, ' 191 'MyException, '
179 'MyInterface, ' 192 'MyInterface, '
180 'MySuperClass]', 193 'MySuperClass]',
181 '$keys'); 194 '$keys');
182 195
183 // Check that the functions map is complete. 196 // Check that the functions map is complete.
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after
548 // Test that an isolate can reflect on itself. 561 // Test that an isolate can reflect on itself.
549 mirrorSystemOf(exit_port.toSendPort()).then(testMirrorSystem); 562 mirrorSystemOf(exit_port.toSendPort()).then(testMirrorSystem);
550 563
551 testIntegerInstanceMirror(reflect(1001)); 564 testIntegerInstanceMirror(reflect(1001));
552 testStringInstanceMirror(reflect('This\nis\na\nString')); 565 testStringInstanceMirror(reflect('This\nis\na\nString'));
553 testBoolInstanceMirror(reflect(true)); 566 testBoolInstanceMirror(reflect(true));
554 testNullInstanceMirror(reflect(null)); 567 testNullInstanceMirror(reflect(null));
555 testCustomInstanceMirror(reflect(new MyClass(17))); 568 testCustomInstanceMirror(reflect(new MyClass(17)));
556 testMirrorErrors(currentMirrorSystem()); 569 testMirrorErrors(currentMirrorSystem());
557 } 570 }
OLDNEW
« no previous file with comments | « runtime/lib/mirrors_patch.dart ('k') | sdk/lib/_internal/lib/js_mirrors.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698