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

Unified Diff: dart/tests/compiler/dart2js/compiler_helper.dart

Issue 10876036: Extend testing of metadata. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fixed missing import Created 8 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 | « dart/lib/compiler/implementation/patch_parser.dart ('k') | dart/tests/compiler/dart2js/metadata_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/tests/compiler/dart2js/compiler_helper.dart
diff --git a/dart/tests/compiler/dart2js/compiler_helper.dart b/dart/tests/compiler/dart2js/compiler_helper.dart
index 02d38465a3abad01d99ec15e92c13d20aa77e055..1c8751821ba5fd6a559dbfda518a09d19474193e 100644
--- a/dart/tests/compiler/dart2js/compiler_helper.dart
+++ b/dart/tests/compiler/dart2js/compiler_helper.dart
@@ -6,13 +6,16 @@
#library("compiler_helper");
#import("dart:uri");
-#import("../../../lib/compiler/implementation/leg.dart", prefix: "leg");
-#import("../../../lib/compiler/implementation/js_backend/js_backend.dart", prefix: "js");
+
#import("../../../lib/compiler/implementation/elements/elements.dart", prefix: "lego");
-#import('../../../lib/compiler/implementation/source_file.dart');
+#import("../../../lib/compiler/implementation/js_backend/js_backend.dart", prefix: "js");
+#import("../../../lib/compiler/implementation/leg.dart", prefix: "leg");
#import("../../../lib/compiler/implementation/ssa/ssa.dart", prefix: "ssa");
-#import("parser_helper.dart");
+#import("../../../lib/compiler/implementation/util/util.dart");
+#import('../../../lib/compiler/implementation/source_file.dart');
+
#import("mock_compiler.dart");
+#import("parser_helper.dart");
String compile(String code, [String entry = 'main']) {
MockCompiler compiler = new MockCompiler();
@@ -86,3 +89,5 @@ void compileAndDoNotMatch(String code, String entry, RegExp regexp) {
Expect.isFalse(regexp.hasMatch(generated),
'"$generated" has a match in /$regexp/');
}
+
+int length(Link link) => link.isEmpty() ? 0 : length(link.tail) + 1;
« no previous file with comments | « dart/lib/compiler/implementation/patch_parser.dart ('k') | dart/tests/compiler/dart2js/metadata_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698