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

Unified Diff: test/codegen/lib/mirrors/method_mirror_location_other.dart

Issue 2265533002: Add mirrors tests (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Created 4 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: test/codegen/lib/mirrors/method_mirror_location_other.dart
diff --git a/test/codegen/language/regress_12561_test.dart b/test/codegen/lib/mirrors/method_mirror_location_other.dart
similarity index 55%
copy from test/codegen/language/regress_12561_test.dart
copy to test/codegen/lib/mirrors/method_mirror_location_other.dart
index 21acb0e51951407b03c3d35581944ac4029cb09f..48ebdb53dff0e4454860c091c791a9416fd1fd0b 100644
--- a/test/codegen/language/regress_12561_test.dart
+++ b/test/codegen/lib/mirrors/method_mirror_location_other.dart
@@ -2,14 +2,17 @@
// 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 "package:expect/expect.dart";
+part of test.method_location;
-class C {
- noSuchMethod(int x, int y) => x + y;
-}
+class ClassInOtherFile {
+
+ ClassInOtherFile();
-main() {
- Expect.throws(() => new C().foo, (e) => e is Error);
+ method() {}
}
+topLevelInOtherFile() {}
+
+ spaceIdentedInOtherFile() {}
+ tabIdentedInOtherFile() {}
« no previous file with comments | « test/codegen/lib/mirrors/metadata_test.dart ('k') | test/codegen/lib/mirrors/method_mirror_location_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698