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

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: Created 7 years, 3 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
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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 'testMirrorErrors, ' 163 'testMirrorErrors, '
164 'testMirrorSystem, ' 164 'testMirrorSystem, '
165 'testNullInstanceMirror, ' 165 'testNullInstanceMirror, '
166 'testRootLibraryMirror, ' 166 'testRootLibraryMirror, '
167 'testStringInstanceMirror]', 167 'testStringInstanceMirror]',
168 '$keys'); 168 '$keys');
169 169
170 // Check that the classes map is complete. 170 // Check that the classes map is complete.
171 keys = lib_mirror.classes.keys.map(MirrorSystem.getName).toList(); 171 keys = lib_mirror.classes.keys.map(MirrorSystem.getName).toList();
172 sort(keys); 172 sort(keys);
173 print(keys);
174 Expect.equals('['
175 'GenericClass, '
176 'MyClass, '
177 'MyException, '
178 'MyInterface, '
179 'MySuperClass]',
180 '$keys');
181
182 // Check that the types map is complete.
183 keys = lib_mirror.types.keys.map(MirrorSystem.getName).toList();
184 sort(keys);
185 print(keys);
173 Expect.equals('[' 186 Expect.equals('['
174 'FuncType, ' 187 'FuncType, '
175 'GenericClass, ' 188 'GenericClass, '
176 'MyClass, ' 189 'MyClass, '
177 'MyException, ' 190 'MyException, '
178 'MyInterface, ' 191 'MyInterface, '
179 'MySuperClass]', 192 'MySuperClass]',
180 '$keys'); 193 '$keys');
181 194
182 // Check that the functions map is complete. 195 // Check that the functions map is complete.
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
534 // Test that an isolate can reflect on itself. 547 // Test that an isolate can reflect on itself.
535 mirrorSystemOf(exit_port.toSendPort()).then(testMirrorSystem); 548 mirrorSystemOf(exit_port.toSendPort()).then(testMirrorSystem);
536 549
537 testIntegerInstanceMirror(reflect(1001)); 550 testIntegerInstanceMirror(reflect(1001));
538 testStringInstanceMirror(reflect('This\nis\na\nString')); 551 testStringInstanceMirror(reflect('This\nis\na\nString'));
539 testBoolInstanceMirror(reflect(true)); 552 testBoolInstanceMirror(reflect(true));
540 testNullInstanceMirror(reflect(null)); 553 testNullInstanceMirror(reflect(null));
541 testCustomInstanceMirror(reflect(new MyClass(17))); 554 testCustomInstanceMirror(reflect(new MyClass(17)));
542 testMirrorErrors(currentMirrorSystem()); 555 testMirrorErrors(currentMirrorSystem());
543 } 556 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698