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

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

Issue 27215002: Very simple version of Isolates. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address Anders' comment. Created 7 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
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 477 matching lines...) Expand 10 before | Expand all | Expand 10 after
488 expectedTests = new Set<String>.from(['testRootLibraryMirror', 488 expectedTests = new Set<String>.from(['testRootLibraryMirror',
489 'testLibrariesMap', 489 'testLibrariesMap',
490 'testMirrorSystem', 490 'testMirrorSystem',
491 'testIntegerInstanceMirror', 491 'testIntegerInstanceMirror',
492 'testStringInstanceMirror', 492 'testStringInstanceMirror',
493 'testBoolInstanceMirror', 493 'testBoolInstanceMirror',
494 'testNullInstanceMirror', 494 'testNullInstanceMirror',
495 'testCustomInstanceMirror']); 495 'testCustomInstanceMirror']);
496 496
497 // Test that an isolate can reflect on itself. 497 // Test that an isolate can reflect on itself.
498 mirrorSystemOf(exit_port.toSendPort()).then(testMirrorSystem); 498 mirrorSystemOf(exit_port.sendPort).then(testMirrorSystem);
499 499
500 testIntegerInstanceMirror(reflect(1001)); 500 testIntegerInstanceMirror(reflect(1001));
501 testStringInstanceMirror(reflect('This\nis\na\nString')); 501 testStringInstanceMirror(reflect('This\nis\na\nString'));
502 testBoolInstanceMirror(reflect(true)); 502 testBoolInstanceMirror(reflect(true));
503 testNullInstanceMirror(reflect(null)); 503 testNullInstanceMirror(reflect(null));
504 testCustomInstanceMirror(reflect(new MyClass(17))); 504 testCustomInstanceMirror(reflect(new MyClass(17)));
505 } 505 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698