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

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

Issue 19501005: Fix a bug that caused a runtime error when attempting to read metadata of a class without metadata. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 5 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 | « dart/sdk/lib/_internal/lib/js_mirrors.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/tests/lib/mirrors/no_metadata_test.dart
diff --git a/dart/tests/standalone/http_launch_data/http_launch_main.dart b/dart/tests/lib/mirrors/no_metadata_test.dart
similarity index 68%
copy from dart/tests/standalone/http_launch_data/http_launch_main.dart
copy to dart/tests/lib/mirrors/no_metadata_test.dart
index bd35bae2c6bc033c1a4ba1e87ee6e428af4853d1..f5c0747a59928a9d4a8c29bc82bedf659940c368 100644
--- a/dart/tests/standalone/http_launch_data/http_launch_main.dart
+++ b/dart/tests/lib/mirrors/no_metadata_test.dart
@@ -2,12 +2,13 @@
// 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.
+import 'dart:mirrors';
-library http_lanuch_main;
+import 'stringify.dart';
-import 'package:simple/simple.dart';
+class Foo {
+}
main() {
- print(getSimpleString());
+ expect('[]', reflectClass(Foo).metadata);
}
-
« no previous file with comments | « dart/sdk/lib/_internal/lib/js_mirrors.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698