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

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

Issue 16019002: Merge the dart:uri library into dart:core and update the Uri class (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Final cleanup Created 7 years, 6 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/bin/main.cc ('k') | runtime/vm/benchmark_test.cc » ('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 "package:expect/expect.dart"; 12 import "package:expect/expect.dart";
13 import 'dart:async'; 13 import 'dart:async';
14 import 'dart:isolate'; 14 import 'dart:isolate';
15 import 'dart:mirrors'; 15 import 'dart:mirrors';
16 import 'dart:uri';
17 16
18 ReceivePort exit_port; 17 ReceivePort exit_port;
19 Set expectedTests; 18 Set expectedTests;
20 19
21 void testDone(String test) { 20 void testDone(String test) {
22 if (!expectedTests.contains(test)) { 21 if (!expectedTests.contains(test)) {
23 throw "Unexpected test name '$test'"; 22 throw "Unexpected test name '$test'";
24 } 23 }
25 expectedTests.remove(test); 24 expectedTests.remove(test);
26 if (expectedTests.isEmpty) { 25 if (expectedTests.isEmpty) {
(...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after
536 // Test that an isolate can reflect on itself. 535 // Test that an isolate can reflect on itself.
537 mirrorSystemOf(exit_port.toSendPort()).then(testMirrorSystem); 536 mirrorSystemOf(exit_port.toSendPort()).then(testMirrorSystem);
538 537
539 testIntegerInstanceMirror(reflect(1001)); 538 testIntegerInstanceMirror(reflect(1001));
540 testStringInstanceMirror(reflect('This\nis\na\nString')); 539 testStringInstanceMirror(reflect('This\nis\na\nString'));
541 testBoolInstanceMirror(reflect(true)); 540 testBoolInstanceMirror(reflect(true));
542 testNullInstanceMirror(reflect(null)); 541 testNullInstanceMirror(reflect(null));
543 testCustomInstanceMirror(reflect(new MyClass(17))); 542 testCustomInstanceMirror(reflect(new MyClass(17)));
544 testMirrorErrors(currentMirrorSystem()); 543 testMirrorErrors(currentMirrorSystem());
545 } 544 }
OLDNEW
« no previous file with comments | « runtime/bin/main.cc ('k') | runtime/vm/benchmark_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698