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

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

Issue 22642003: Fix name of libraries without a library declaration to be the empty string. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: rebase 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
« no previous file with comments | « 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/unnamed_library_test.dart
diff --git a/tests/lib/mirrors/no_metadata_test.dart b/tests/lib/mirrors/unnamed_library_test.dart
similarity index 63%
copy from tests/lib/mirrors/no_metadata_test.dart
copy to tests/lib/mirrors/unnamed_library_test.dart
index f5c0747a59928a9d4a8c29bc82bedf659940c368..1e81eaab1284ae5b7f1d4973bfc114ce4572c471 100644
--- a/tests/lib/mirrors/no_metadata_test.dart
+++ b/tests/lib/mirrors/unnamed_library_test.dart
@@ -2,13 +2,14 @@
// 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.
+// No library declaration.
+
import 'dart:mirrors';
-import 'stringify.dart';
+import 'package:expect/expect.dart';
-class Foo {
-}
+class C {}
main() {
- expect('[]', reflectClass(Foo).metadata);
+ Expect.equals(const Symbol(""), reflectClass(C).owner.simpleName);
}
« no previous file with comments | « tests/lib/lib.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698