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

Unified Diff: pkg/code_transformers/test/entry_point_test.dart

Issue 204033003: Updating code_transformers to not fail on syntax errors (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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 | « pkg/code_transformers/pubspec.yaml ('k') | pkg/polymer/pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/code_transformers/test/entry_point_test.dart
diff --git a/pkg/code_transformers/test/entry_point_test.dart b/pkg/code_transformers/test/entry_point_test.dart
index 1000aceca62ec2c97e528938efd082f72c5060af..a3844445681574a58f9b5c2b3640ab89b889bc0e 100644
--- a/pkg/code_transformers/test/entry_point_test.dart
+++ b/pkg/code_transformers/test/entry_point_test.dart
@@ -76,6 +76,22 @@ main() {
},
expectation: true);
});
+
+ test('is tolerant of syntax errors with main', () {
+ return checkDartEntry(
+ inputs: {
+ 'a|web/main.dart': 'main() {} {',
+ },
+ expectation: true);
+ });
+
+ test('is tolerant of syntax errors without main', () {
+ return checkDartEntry(
+ inputs: {
+ 'a|web/main.dart': 'class Foo {',
+ },
+ expectation: false);
+ });
});
}
« no previous file with comments | « pkg/code_transformers/pubspec.yaml ('k') | pkg/polymer/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698