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

Side by Side Diff: tests/lib/mirrors/null_test.dart

Issue 163853004: Revert "Fix null.runtimeType, reflect(null).type.superinterfaces, and reflect(null).getField." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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 | « tests/lib/mirrors/null2_test.dart ('k') | no next file » | 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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 library test.null_test; 5 library test.null_test;
6 6
7 import 'dart:mirrors'; 7 import 'dart:mirrors';
8 8
9 import 'package:expect/expect.dart'; 9 import 'package:expect/expect.dart';
10 10
(...skipping 10 matching lines...) Expand all
21 .reflectee); 21 .reflectee);
22 Expect.equals('null', 22 Expect.equals('null',
23 nullMirror.invoke(#toString, []).reflectee); 23 nullMirror.invoke(#toString, []).reflectee);
24 Expect.throws(() => nullMirror.invoke(#notDefined, []), 24 Expect.throws(() => nullMirror.invoke(#notDefined, []),
25 (e) => e is NoSuchMethodError, 25 (e) => e is NoSuchMethodError,
26 'noSuchMethod'); 26 'noSuchMethod');
27 27
28 ClassMirror NullMirror = nullMirror.type; 28 ClassMirror NullMirror = nullMirror.type;
29 Expect.equals(reflectClass(Null), NullMirror); 29 Expect.equals(reflectClass(Null), NullMirror);
30 Expect.equals(#Null, NullMirror.simpleName); 30 Expect.equals(#Null, NullMirror.simpleName);
31 Expect.equals(#Object, NullMirror.superclass.simpleName); /// 00: ok 31 Expect.equals(#Object, NullMirror.superclass.simpleName);
32 Expect.equals(null, NullMirror.superclass.superclass); /// 00: continued 32 Expect.equals(null, NullMirror.superclass.superclass);
33 Expect.listEquals([], NullMirror.superinterfaces); 33 Expect.listEquals([], NullMirror.superinterfaces);
34 Expect.equals(currentMirrorSystem().libraries[Uri.parse('dart:core')], 34 Expect.equals(currentMirrorSystem().libraries[Uri.parse('dart:core')],
35 NullMirror.owner); 35 NullMirror.owner);
36 } 36 }
OLDNEW
« no previous file with comments | « tests/lib/mirrors/null2_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698