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

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

Issue 11238035: Make isEmpty a getter. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update status file with co19 issue number. Created 8 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/string_base.dart ('k') | runtime/vm/flow_graph_optimizer.h » ('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');
11 11
12 #import('dart:isolate'); 12 #import('dart:isolate');
13 #import('dart:mirrors'); 13 #import('dart:mirrors');
14 14
15 ReceivePort exit_port; 15 ReceivePort exit_port;
16 Set expectedTests; 16 Set expectedTests;
17 17
18 void testDone(String test) { 18 void testDone(String test) {
19 if (!expectedTests.contains(test)) { 19 if (!expectedTests.contains(test)) {
20 throw "Unexpected test name '$test'"; 20 throw "Unexpected test name '$test'";
21 } 21 }
22 expectedTests.remove(test); 22 expectedTests.remove(test);
23 if (expectedTests.isEmpty()) { 23 if (expectedTests.isEmpty) {
24 // All tests are done. 24 // All tests are done.
25 exit_port.close(); 25 exit_port.close();
26 } 26 }
27 } 27 }
28 28
29 int global_var = 0; 29 int global_var = 0;
30 final int final_global_var = 0; 30 final int final_global_var = 0;
31 31
32 // Top-level getter and setter. 32 // Top-level getter and setter.
33 int get myVar { return 5; } 33 int get myVar { return 5; }
(...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after
533 // Test that an isolate can reflect on itself. 533 // Test that an isolate can reflect on itself.
534 mirrorSystemOf(exit_port.toSendPort()).then(testMirrorSystem); 534 mirrorSystemOf(exit_port.toSendPort()).then(testMirrorSystem);
535 535
536 testIntegerInstanceMirror(reflect(1001)); 536 testIntegerInstanceMirror(reflect(1001));
537 testStringInstanceMirror(reflect('This\nis\na\nString')); 537 testStringInstanceMirror(reflect('This\nis\na\nString'));
538 testBoolInstanceMirror(reflect(true)); 538 testBoolInstanceMirror(reflect(true));
539 testNullInstanceMirror(reflect(null)); 539 testNullInstanceMirror(reflect(null));
540 testCustomInstanceMirror(reflect(new MyClass(17))); 540 testCustomInstanceMirror(reflect(new MyClass(17)));
541 testMirrorErrors(currentMirrorSystem()); 541 testMirrorErrors(currentMirrorSystem());
542 } 542 }
OLDNEW
« no previous file with comments | « runtime/lib/string_base.dart ('k') | runtime/vm/flow_graph_optimizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698