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

Unified Diff: tests/lib/mirrors/null_test.dart

Issue 22638011: Move Null class out of the VM isolate. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
« runtime/vm/object.cc ('K') | « tests/lib/lib.status ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/mirrors/null_test.dart
diff --git a/tests/lib/mirrors/null_test.dart b/tests/lib/mirrors/null_test.dart
index 9142c6d9e150fc6ad1463bc9a3ad0a5f2d9f300d..2a8a8ba309b98406a37629ac34ec394d5624abaf 100644
--- a/tests/lib/mirrors/null_test.dart
+++ b/tests/lib/mirrors/null_test.dart
@@ -11,6 +11,8 @@ import 'package:expect/expect.dart';
main() {
InstanceMirror nullMirror = reflect(null);
Expect.isTrue(nullMirror.getField(const Symbol('hashCode')).reflectee is int);
+ Expect.equals(null.hashCode,
+ nullMirror.getField(const Symbol('hashCode')).reflectee);
Expect.equals('Null',
nullMirror.getField(const Symbol('runtimeType')).reflectee
.toString());
@@ -27,5 +29,7 @@ main() {
Expect.equals(const Symbol('Null'), NullMirror.simpleName);
Expect.equals(const Symbol('Object'), NullMirror.superclass.simpleName);
Expect.equals(null, NullMirror.superclass.superclass);
- Expect.equals(null, NullMirror.owner); // Null belongs to no library.
+ Expect.listEquals([], NullMirror.superinterfaces);
+ Expect.equals(currentMirrorSystem().libraries[Uri.parse('dart:core')],
+ NullMirror.owner);
}
« runtime/vm/object.cc ('K') | « tests/lib/lib.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698