Chromium Code Reviews| Index: pkg/analyzer/test/generated/parser_test.dart |
| diff --git a/pkg/analyzer/test/generated/parser_test.dart b/pkg/analyzer/test/generated/parser_test.dart |
| index 593892623ca06f2cb7509cc94450c71508a2fb9a..8d5bc82c5bc39fe1ff5f66b4dac979a8a77752b2 100644 |
| --- a/pkg/analyzer/test/generated/parser_test.dart |
| +++ b/pkg/analyzer/test/generated/parser_test.dart |
| @@ -3269,6 +3269,16 @@ class B = Object with A {}''', [ParserErrorCode.EXPECTED_TOKEN]); |
| parseExpression("m(f() => 0);", [ParserErrorCode.EXPECTED_TOKEN]); |
| } |
| + void test_importDirectivePartial() { |
|
Brian Wilkerson
2015/04/07 23:09:14
Seems more common cases would be both
"import 'b
danrubel
2015/04/08 15:39:22
Good point. I'll add tests for those situations.
|
| + CompilationUnit unit = ParserTestCase.parseCompilationUnit( |
| + "import 'b.dart' d as b;", |
| + [ParserErrorCode.UNEXPECTED_TOKEN]); |
| + ImportDirective importDirective = unit.childEntities.first; |
| + expect(importDirective.asKeyword, isNotNull); |
| + expect(unit.directives, hasLength(1)); |
| + expect(unit.declarations, hasLength(0)); |
| + } |
| + |
| void test_incomplete_conditionalExpression() { |
| parseExpression("x ? 0", [ |
| ParserErrorCode.EXPECTED_TOKEN, |