| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |