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

Unified Diff: tests/lib_strong/mirrors/basic_types_in_dart_core_test.dart

Issue 2999373002: Migrated test block 218 to Dart 2.0. (Closed)
Patch Set: Addressed Bob's comments. Created 3 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
Index: tests/lib_strong/mirrors/basic_types_in_dart_core_test.dart
diff --git a/tests/lib_strong/mirrors/basic_types_in_dart_core_test.dart b/tests/lib_strong/mirrors/basic_types_in_dart_core_test.dart
deleted file mode 100644
index 4ef60f8928d72c07222e14fa9b887dc5c8ca2758..0000000000000000000000000000000000000000
--- a/tests/lib_strong/mirrors/basic_types_in_dart_core_test.dart
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-library test.basic_types_in_dart_core;
-
-import 'dart:mirrors';
-import 'package:expect/expect.dart';
-
-main() {
- LibraryMirror dartcore = currentMirrorSystem().findLibrary(#dart.core);
- ClassMirror cm;
-
- cm = dartcore.declarations[#int];
- Expect.equals(reflectClass(int), cm);
- Expect.equals(#int, cm.simpleName);
-
- cm = dartcore.declarations[#double];
- Expect.equals(reflectClass(double), cm);
- Expect.equals(#double, cm.simpleName);
-
- cm = dartcore.declarations[#num];
- Expect.equals(reflectClass(num), cm);
- Expect.equals(#num, cm.simpleName);
-
- cm = dartcore.declarations[#bool];
- Expect.equals(reflectClass(bool), cm);
- Expect.equals(#bool, cm.simpleName);
-
- cm = dartcore.declarations[#String];
- Expect.equals(reflectClass(String), cm);
- Expect.equals(#String, cm.simpleName);
-
- cm = dartcore.declarations[#List];
- Expect.equals(reflectClass(List), cm);
- Expect.equals(#List, cm.simpleName);
-
- cm = dartcore.declarations[#Null];
- Expect.equals(reflectClass(Null), cm);
- Expect.equals(#Null, cm.simpleName);
-
- cm = dartcore.declarations[#Object];
- Expect.equals(reflectClass(Object), cm);
- Expect.equals(#Object, cm.simpleName);
-
- cm = dartcore.declarations[#dynamic];
- Expect.isNull(cm);
-
- cm = dartcore.declarations[const Symbol('void')];
- Expect.isNull(cm);
-}
« no previous file with comments | « tests/lib_strong/mirrors/array_tracing_test.dart ('k') | tests/lib_strong/mirrors/circular_factory_redirection_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698