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

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

Issue 10828301: Test mini_parser.dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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
Index: dart/tests/compiler/dart2js/mini_parser_test.dart
diff --git a/dart/tests/compiler/dart2js/mini_parser_test.dart b/dart/tests/compiler/dart2js/mini_parser_test.dart
new file mode 100644
index 0000000000000000000000000000000000000000..5fd37bff98e6172ec39b0ecd042dd367540629df
--- /dev/null
+++ b/dart/tests/compiler/dart2js/mini_parser_test.dart
@@ -0,0 +1,19 @@
+// Copyright (c) 2012, 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.
+
+// Simple test to ensure that mini_parser keeps working.
+
+#import('../../../lib/compiler/implementation/tools/mini_parser.dart',
+ prefix: 'tool');
+
+void main() {
+ // Parse this script itself.
+ tool.toolMain(<String>[ new Options().script ]);
+}
+
+/** This class is unused but used to test mini_parser.dart. */
+class TestClass {
+ foo() {}
+ var i;
+}

Powered by Google App Engine
This is Rietveld 408576698