| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 // This code was auto-generated, is not intended to be edited, and is subject to | 5 // This code was auto-generated, is not intended to be edited, and is subject to |
| 6 // significant change. Please see the README file for more information. | 6 // significant change. Please see the README file for more information. |
| 7 | 7 |
| 8 library engine.parser_test; | 8 library engine.parser_test; |
| 9 | 9 |
| 10 import 'package:analyzer/src/generated/java_core.dart'; | 10 import 'package:analyzer/src/generated/java_core.dart'; |
| (...skipping 2727 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2738 EngineTestCase.assertSizeOfList(3, clause.interfaces); | 2738 EngineTestCase.assertSizeOfList(3, clause.interfaces); |
| 2739 JUnitTestCase.assertNotNull(clause.keyword); | 2739 JUnitTestCase.assertNotNull(clause.keyword); |
| 2740 } | 2740 } |
| 2741 | 2741 |
| 2742 void test_parseImplementsClause_single() { | 2742 void test_parseImplementsClause_single() { |
| 2743 ImplementsClause clause = ParserTestCase.parse4("parseImplementsClause", "im
plements A", []); | 2743 ImplementsClause clause = ParserTestCase.parse4("parseImplementsClause", "im
plements A", []); |
| 2744 EngineTestCase.assertSizeOfList(1, clause.interfaces); | 2744 EngineTestCase.assertSizeOfList(1, clause.interfaces); |
| 2745 JUnitTestCase.assertNotNull(clause.keyword); | 2745 JUnitTestCase.assertNotNull(clause.keyword); |
| 2746 } | 2746 } |
| 2747 | 2747 |
| 2748 void test_parseImportDirective_deferred() { |
| 2749 ImportDirective directive = ParserTestCase.parse("parseImportDirective", <Ob
ject> [emptyCommentAndMetadata()], "import 'lib/lib.dart' deferred as a;"); |
| 2750 JUnitTestCase.assertNotNull(directive.keyword); |
| 2751 JUnitTestCase.assertNotNull(directive.uri); |
| 2752 JUnitTestCase.assertNotNull(directive.deferredToken); |
| 2753 JUnitTestCase.assertNotNull(directive.asToken); |
| 2754 JUnitTestCase.assertNotNull(directive.prefix); |
| 2755 EngineTestCase.assertSizeOfList(0, directive.combinators); |
| 2756 JUnitTestCase.assertNotNull(directive.semicolon); |
| 2757 } |
| 2758 |
| 2748 void test_parseImportDirective_hide() { | 2759 void test_parseImportDirective_hide() { |
| 2749 ImportDirective directive = ParserTestCase.parse("parseImportDirective", <Ob
ject> [emptyCommentAndMetadata()], "import 'lib/lib.dart' hide A, B;"); | 2760 ImportDirective directive = ParserTestCase.parse("parseImportDirective", <Ob
ject> [emptyCommentAndMetadata()], "import 'lib/lib.dart' hide A, B;"); |
| 2750 JUnitTestCase.assertNotNull(directive.keyword); | 2761 JUnitTestCase.assertNotNull(directive.keyword); |
| 2751 JUnitTestCase.assertNotNull(directive.uri); | 2762 JUnitTestCase.assertNotNull(directive.uri); |
| 2763 JUnitTestCase.assertNull(directive.deferredToken); |
| 2752 JUnitTestCase.assertNull(directive.asToken); | 2764 JUnitTestCase.assertNull(directive.asToken); |
| 2753 JUnitTestCase.assertNull(directive.prefix); | 2765 JUnitTestCase.assertNull(directive.prefix); |
| 2754 EngineTestCase.assertSizeOfList(1, directive.combinators); | 2766 EngineTestCase.assertSizeOfList(1, directive.combinators); |
| 2755 JUnitTestCase.assertNotNull(directive.semicolon); | 2767 JUnitTestCase.assertNotNull(directive.semicolon); |
| 2756 } | 2768 } |
| 2757 | 2769 |
| 2758 void test_parseImportDirective_noCombinator() { | 2770 void test_parseImportDirective_noCombinator() { |
| 2759 ImportDirective directive = ParserTestCase.parse("parseImportDirective", <Ob
ject> [emptyCommentAndMetadata()], "import 'lib/lib.dart';"); | 2771 ImportDirective directive = ParserTestCase.parse("parseImportDirective", <Ob
ject> [emptyCommentAndMetadata()], "import 'lib/lib.dart';"); |
| 2760 JUnitTestCase.assertNotNull(directive.keyword); | 2772 JUnitTestCase.assertNotNull(directive.keyword); |
| 2761 JUnitTestCase.assertNotNull(directive.uri); | 2773 JUnitTestCase.assertNotNull(directive.uri); |
| 2774 JUnitTestCase.assertNull(directive.deferredToken); |
| 2762 JUnitTestCase.assertNull(directive.asToken); | 2775 JUnitTestCase.assertNull(directive.asToken); |
| 2763 JUnitTestCase.assertNull(directive.prefix); | 2776 JUnitTestCase.assertNull(directive.prefix); |
| 2764 EngineTestCase.assertSizeOfList(0, directive.combinators); | 2777 EngineTestCase.assertSizeOfList(0, directive.combinators); |
| 2765 JUnitTestCase.assertNotNull(directive.semicolon); | 2778 JUnitTestCase.assertNotNull(directive.semicolon); |
| 2766 } | 2779 } |
| 2767 | 2780 |
| 2768 void test_parseImportDirective_prefix() { | 2781 void test_parseImportDirective_prefix() { |
| 2769 ImportDirective directive = ParserTestCase.parse("parseImportDirective", <Ob
ject> [emptyCommentAndMetadata()], "import 'lib/lib.dart' as a;"); | 2782 ImportDirective directive = ParserTestCase.parse("parseImportDirective", <Ob
ject> [emptyCommentAndMetadata()], "import 'lib/lib.dart' as a;"); |
| 2770 JUnitTestCase.assertNotNull(directive.keyword); | 2783 JUnitTestCase.assertNotNull(directive.keyword); |
| 2771 JUnitTestCase.assertNotNull(directive.uri); | 2784 JUnitTestCase.assertNotNull(directive.uri); |
| 2785 JUnitTestCase.assertNull(directive.deferredToken); |
| 2772 JUnitTestCase.assertNotNull(directive.asToken); | 2786 JUnitTestCase.assertNotNull(directive.asToken); |
| 2773 JUnitTestCase.assertNotNull(directive.prefix); | 2787 JUnitTestCase.assertNotNull(directive.prefix); |
| 2774 EngineTestCase.assertSizeOfList(0, directive.combinators); | 2788 EngineTestCase.assertSizeOfList(0, directive.combinators); |
| 2775 JUnitTestCase.assertNotNull(directive.semicolon); | 2789 JUnitTestCase.assertNotNull(directive.semicolon); |
| 2776 } | 2790 } |
| 2777 | 2791 |
| 2778 void test_parseImportDirective_prefix_hide_show() { | 2792 void test_parseImportDirective_prefix_hide_show() { |
| 2779 ImportDirective directive = ParserTestCase.parse("parseImportDirective", <Ob
ject> [emptyCommentAndMetadata()], "import 'lib/lib.dart' as a hide A show B;"); | 2793 ImportDirective directive = ParserTestCase.parse("parseImportDirective", <Ob
ject> [emptyCommentAndMetadata()], "import 'lib/lib.dart' as a hide A show B;"); |
| 2780 JUnitTestCase.assertNotNull(directive.keyword); | 2794 JUnitTestCase.assertNotNull(directive.keyword); |
| 2781 JUnitTestCase.assertNotNull(directive.uri); | 2795 JUnitTestCase.assertNotNull(directive.uri); |
| 2796 JUnitTestCase.assertNull(directive.deferredToken); |
| 2782 JUnitTestCase.assertNotNull(directive.asToken); | 2797 JUnitTestCase.assertNotNull(directive.asToken); |
| 2783 JUnitTestCase.assertNotNull(directive.prefix); | 2798 JUnitTestCase.assertNotNull(directive.prefix); |
| 2784 EngineTestCase.assertSizeOfList(2, directive.combinators); | 2799 EngineTestCase.assertSizeOfList(2, directive.combinators); |
| 2785 JUnitTestCase.assertNotNull(directive.semicolon); | 2800 JUnitTestCase.assertNotNull(directive.semicolon); |
| 2786 } | 2801 } |
| 2787 | 2802 |
| 2788 void test_parseImportDirective_prefix_show_hide() { | 2803 void test_parseImportDirective_prefix_show_hide() { |
| 2789 ImportDirective directive = ParserTestCase.parse("parseImportDirective", <Ob
ject> [emptyCommentAndMetadata()], "import 'lib/lib.dart' as a show B hide A;"); | 2804 ImportDirective directive = ParserTestCase.parse("parseImportDirective", <Ob
ject> [emptyCommentAndMetadata()], "import 'lib/lib.dart' as a show B hide A;"); |
| 2790 JUnitTestCase.assertNotNull(directive.keyword); | 2805 JUnitTestCase.assertNotNull(directive.keyword); |
| 2791 JUnitTestCase.assertNotNull(directive.uri); | 2806 JUnitTestCase.assertNotNull(directive.uri); |
| 2807 JUnitTestCase.assertNull(directive.deferredToken); |
| 2792 JUnitTestCase.assertNotNull(directive.asToken); | 2808 JUnitTestCase.assertNotNull(directive.asToken); |
| 2793 JUnitTestCase.assertNotNull(directive.prefix); | 2809 JUnitTestCase.assertNotNull(directive.prefix); |
| 2794 EngineTestCase.assertSizeOfList(2, directive.combinators); | 2810 EngineTestCase.assertSizeOfList(2, directive.combinators); |
| 2795 JUnitTestCase.assertNotNull(directive.semicolon); | 2811 JUnitTestCase.assertNotNull(directive.semicolon); |
| 2796 } | 2812 } |
| 2797 | 2813 |
| 2798 void test_parseImportDirective_show() { | 2814 void test_parseImportDirective_show() { |
| 2799 ImportDirective directive = ParserTestCase.parse("parseImportDirective", <Ob
ject> [emptyCommentAndMetadata()], "import 'lib/lib.dart' show A, B;"); | 2815 ImportDirective directive = ParserTestCase.parse("parseImportDirective", <Ob
ject> [emptyCommentAndMetadata()], "import 'lib/lib.dart' show A, B;"); |
| 2800 JUnitTestCase.assertNotNull(directive.keyword); | 2816 JUnitTestCase.assertNotNull(directive.keyword); |
| 2801 JUnitTestCase.assertNotNull(directive.uri); | 2817 JUnitTestCase.assertNotNull(directive.uri); |
| 2818 JUnitTestCase.assertNull(directive.deferredToken); |
| 2802 JUnitTestCase.assertNull(directive.asToken); | 2819 JUnitTestCase.assertNull(directive.asToken); |
| 2803 JUnitTestCase.assertNull(directive.prefix); | 2820 JUnitTestCase.assertNull(directive.prefix); |
| 2804 EngineTestCase.assertSizeOfList(1, directive.combinators); | 2821 EngineTestCase.assertSizeOfList(1, directive.combinators); |
| 2805 JUnitTestCase.assertNotNull(directive.semicolon); | 2822 JUnitTestCase.assertNotNull(directive.semicolon); |
| 2806 } | 2823 } |
| 2807 | 2824 |
| 2808 void test_parseInitializedIdentifierList_type() { | 2825 void test_parseInitializedIdentifierList_type() { |
| 2809 Comment comment = Comment.createDocumentationComment(new List<Token>(0)); | 2826 Comment comment = Comment.createDocumentationComment(new List<Token>(0)); |
| 2810 Token staticKeyword = TokenFactory.tokenFromKeyword(Keyword.STATIC); | 2827 Token staticKeyword = TokenFactory.tokenFromKeyword(Keyword.STATIC); |
| 2811 TypeName type = new TypeName(new SimpleIdentifier(null), null); | 2828 TypeName type = new TypeName(new SimpleIdentifier(null), null); |
| (...skipping 3068 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5880 runJUnitTest(__test, __test.test_parseIfStatement_noElse_statement); | 5897 runJUnitTest(__test, __test.test_parseIfStatement_noElse_statement); |
| 5881 }); | 5898 }); |
| 5882 _ut.test('test_parseImplementsClause_multiple', () { | 5899 _ut.test('test_parseImplementsClause_multiple', () { |
| 5883 final __test = new SimpleParserTest(); | 5900 final __test = new SimpleParserTest(); |
| 5884 runJUnitTest(__test, __test.test_parseImplementsClause_multiple); | 5901 runJUnitTest(__test, __test.test_parseImplementsClause_multiple); |
| 5885 }); | 5902 }); |
| 5886 _ut.test('test_parseImplementsClause_single', () { | 5903 _ut.test('test_parseImplementsClause_single', () { |
| 5887 final __test = new SimpleParserTest(); | 5904 final __test = new SimpleParserTest(); |
| 5888 runJUnitTest(__test, __test.test_parseImplementsClause_single); | 5905 runJUnitTest(__test, __test.test_parseImplementsClause_single); |
| 5889 }); | 5906 }); |
| 5907 _ut.test('test_parseImportDirective_deferred', () { |
| 5908 final __test = new SimpleParserTest(); |
| 5909 runJUnitTest(__test, __test.test_parseImportDirective_deferred); |
| 5910 }); |
| 5890 _ut.test('test_parseImportDirective_hide', () { | 5911 _ut.test('test_parseImportDirective_hide', () { |
| 5891 final __test = new SimpleParserTest(); | 5912 final __test = new SimpleParserTest(); |
| 5892 runJUnitTest(__test, __test.test_parseImportDirective_hide); | 5913 runJUnitTest(__test, __test.test_parseImportDirective_hide); |
| 5893 }); | 5914 }); |
| 5894 _ut.test('test_parseImportDirective_noCombinator', () { | 5915 _ut.test('test_parseImportDirective_noCombinator', () { |
| 5895 final __test = new SimpleParserTest(); | 5916 final __test = new SimpleParserTest(); |
| 5896 runJUnitTest(__test, __test.test_parseImportDirective_noCombinator); | 5917 runJUnitTest(__test, __test.test_parseImportDirective_noCombinator); |
| 5897 }); | 5918 }); |
| 5898 _ut.test('test_parseImportDirective_prefix', () { | 5919 _ut.test('test_parseImportDirective_prefix', () { |
| 5899 final __test = new SimpleParserTest(); | 5920 final __test = new SimpleParserTest(); |
| (...skipping 1406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7306 /** | 7327 /** |
| 7307 * Invoke a parse method in [Parser]. The method is assumed to have the given
number and | 7328 * Invoke a parse method in [Parser]. The method is assumed to have the given
number and |
| 7308 * type of parameters and will be invoked with the given arguments. | 7329 * type of parameters and will be invoked with the given arguments. |
| 7309 * | 7330 * |
| 7310 * The given source is scanned and the parser is initialized to start with the
first token in the | 7331 * The given source is scanned and the parser is initialized to start with the
first token in the |
| 7311 * source before the parse method is invoked. | 7332 * source before the parse method is invoked. |
| 7312 * | 7333 * |
| 7313 * @param methodName the name of the parse method that should be invoked to pa
rse the source | 7334 * @param methodName the name of the parse method that should be invoked to pa
rse the source |
| 7314 * @param objects the values of the arguments to the method | 7335 * @param objects the values of the arguments to the method |
| 7315 * @param source the source to be parsed by the parse method | 7336 * @param source the source to be parsed by the parse method |
| 7316 * @param errorCodes the error codes of the errors that should be generated | 7337 * @param errors the errors that should be generated |
| 7317 * @return the result of invoking the method | 7338 * @return the result of invoking the method |
| 7318 * @throws Exception if the method could not be invoked or throws an exception | 7339 * @throws Exception if the method could not be invoked or throws an exception |
| 7319 * @throws AssertionFailedError if the result is `null` or the errors produced
while | 7340 * @throws AssertionFailedError if the result is `null` or the errors produced
while |
| 7320 * scanning and parsing the source do not match the expected errors | 7341 * scanning and parsing the source do not match the expected errors |
| 7321 */ | 7342 */ |
| 7322 static Object parse2(String methodName, List<Object> objects, String source, L
ist<AnalysisError> errors) { | 7343 static Object parse2(String methodName, List<Object> objects, String source, L
ist<AnalysisError> errors) { |
| 7323 GatheringErrorListener listener = new GatheringErrorListener(); | 7344 GatheringErrorListener listener = new GatheringErrorListener(); |
| 7324 Object result = invokeParserMethod(methodName, objects, source, listener); | 7345 Object result = invokeParserMethod(methodName, objects, source, listener); |
| 7325 listener.assertErrors(errors); | 7346 listener.assertErrors(errors); |
| 7326 return result; | 7347 return result; |
| (...skipping 2661 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9988 } | 10009 } |
| 9989 | 10010 |
| 9990 void test_expectedExecutable_topLevel_beforeType() { | 10011 void test_expectedExecutable_topLevel_beforeType() { |
| 9991 ParserTestCase.parse3("parseCompilationUnitMember", <Object> [emptyCommentAn
dMetadata()], "4 score", [ParserErrorCode.EXPECTED_EXECUTABLE]); | 10012 ParserTestCase.parse3("parseCompilationUnitMember", <Object> [emptyCommentAn
dMetadata()], "4 score", [ParserErrorCode.EXPECTED_EXECUTABLE]); |
| 9992 } | 10013 } |
| 9993 | 10014 |
| 9994 void test_expectedInterpolationIdentifier() { | 10015 void test_expectedInterpolationIdentifier() { |
| 9995 ParserTestCase.parse4("parseStringLiteral", "'\$x\$'", [ParserErrorCode.MISS
ING_IDENTIFIER]); | 10016 ParserTestCase.parse4("parseStringLiteral", "'\$x\$'", [ParserErrorCode.MISS
ING_IDENTIFIER]); |
| 9996 } | 10017 } |
| 9997 | 10018 |
| 10019 void test_expectedInterpolationIdentifier_emptyString() { |
| 10020 // The scanner inserts an empty string token between the two $'s; we need to
make sure that the |
| 10021 // MISSING_IDENTIFIER error that is generated has a nonzero width so that it
will show up in |
| 10022 // the editor UI. |
| 10023 ParserTestCase.parse2("parseStringLiteral", <Object> [], "'\$\$foo'", [new A
nalysisError.con2(null, 2, 1, ParserErrorCode.MISSING_IDENTIFIER, [])]); |
| 10024 } |
| 10025 |
| 9998 void test_expectedStringLiteral() { | 10026 void test_expectedStringLiteral() { |
| 9999 StringLiteral expression = ParserTestCase.parse4("parseStringLiteral", "1",
[ParserErrorCode.EXPECTED_STRING_LITERAL]); | 10027 StringLiteral expression = ParserTestCase.parse4("parseStringLiteral", "1",
[ParserErrorCode.EXPECTED_STRING_LITERAL]); |
| 10000 JUnitTestCase.assertTrue(expression.isSynthetic); | 10028 JUnitTestCase.assertTrue(expression.isSynthetic); |
| 10001 } | 10029 } |
| 10002 | 10030 |
| 10003 void test_expectedToken_commaMissingInArgumentList() { | 10031 void test_expectedToken_commaMissingInArgumentList() { |
| 10004 ParserTestCase.parse4("parseArgumentList", "(x, y z)", [ParserErrorCode.EXPE
CTED_TOKEN]); | 10032 ParserTestCase.parse4("parseArgumentList", "(x, y z)", [ParserErrorCode.EXPE
CTED_TOKEN]); |
| 10005 } | 10033 } |
| 10006 | 10034 |
| 10007 void test_expectedToken_parseStatement_afterVoid() { | 10035 void test_expectedToken_parseStatement_afterVoid() { |
| (...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10415 void test_missingNameInLibraryDirective() { | 10443 void test_missingNameInLibraryDirective() { |
| 10416 CompilationUnit unit = ParserTestCase.parseCompilationUnit("library;", [Pars
erErrorCode.MISSING_NAME_IN_LIBRARY_DIRECTIVE]); | 10444 CompilationUnit unit = ParserTestCase.parseCompilationUnit("library;", [Pars
erErrorCode.MISSING_NAME_IN_LIBRARY_DIRECTIVE]); |
| 10417 JUnitTestCase.assertNotNull(unit); | 10445 JUnitTestCase.assertNotNull(unit); |
| 10418 } | 10446 } |
| 10419 | 10447 |
| 10420 void test_missingNameInPartOfDirective() { | 10448 void test_missingNameInPartOfDirective() { |
| 10421 CompilationUnit unit = ParserTestCase.parseCompilationUnit("part of;", [Pars
erErrorCode.MISSING_NAME_IN_PART_OF_DIRECTIVE]); | 10449 CompilationUnit unit = ParserTestCase.parseCompilationUnit("part of;", [Pars
erErrorCode.MISSING_NAME_IN_PART_OF_DIRECTIVE]); |
| 10422 JUnitTestCase.assertNotNull(unit); | 10450 JUnitTestCase.assertNotNull(unit); |
| 10423 } | 10451 } |
| 10424 | 10452 |
| 10453 void test_missingPrefixInDeferredImport() { |
| 10454 ParserTestCase.parseCompilationUnit("import 'foo.dart' deferred;", [ParserEr
rorCode.MISSING_PREFIX_IN_DEFERRED_IMPORT]); |
| 10455 } |
| 10456 |
| 10425 void test_missingStatement() { | 10457 void test_missingStatement() { |
| 10426 ParserTestCase.parseStatement("is", [ParserErrorCode.MISSING_STATEMENT]); | 10458 ParserTestCase.parseStatement("is", [ParserErrorCode.MISSING_STATEMENT]); |
| 10427 } | 10459 } |
| 10428 | 10460 |
| 10429 void test_missingStatement_afterVoid() { | 10461 void test_missingStatement_afterVoid() { |
| 10430 ParserTestCase.parseStatement("void;", [ParserErrorCode.MISSING_STATEMENT]); | 10462 ParserTestCase.parseStatement("void;", [ParserErrorCode.MISSING_STATEMENT]); |
| 10431 } | 10463 } |
| 10432 | 10464 |
| 10433 void test_missingTerminatorForParameterGroup_named() { | 10465 void test_missingTerminatorForParameterGroup_named() { |
| 10434 ParserTestCase.parse4("parseFormalParameterList", "(a, {b: 0)", [ParserError
Code.MISSING_TERMINATOR_FOR_PARAMETER_GROUP]); | 10466 ParserTestCase.parse4("parseFormalParameterList", "(a, {b: 0)", [ParserError
Code.MISSING_TERMINATOR_FOR_PARAMETER_GROUP]); |
| (...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10996 runJUnitTest(__test, __test.test_expectedExecutable_topLevel_afterVoid); | 11028 runJUnitTest(__test, __test.test_expectedExecutable_topLevel_afterVoid); |
| 10997 }); | 11029 }); |
| 10998 _ut.test('test_expectedExecutable_topLevel_beforeType', () { | 11030 _ut.test('test_expectedExecutable_topLevel_beforeType', () { |
| 10999 final __test = new ErrorParserTest(); | 11031 final __test = new ErrorParserTest(); |
| 11000 runJUnitTest(__test, __test.test_expectedExecutable_topLevel_beforeType)
; | 11032 runJUnitTest(__test, __test.test_expectedExecutable_topLevel_beforeType)
; |
| 11001 }); | 11033 }); |
| 11002 _ut.test('test_expectedInterpolationIdentifier', () { | 11034 _ut.test('test_expectedInterpolationIdentifier', () { |
| 11003 final __test = new ErrorParserTest(); | 11035 final __test = new ErrorParserTest(); |
| 11004 runJUnitTest(__test, __test.test_expectedInterpolationIdentifier); | 11036 runJUnitTest(__test, __test.test_expectedInterpolationIdentifier); |
| 11005 }); | 11037 }); |
| 11038 _ut.test('test_expectedInterpolationIdentifier_emptyString', () { |
| 11039 final __test = new ErrorParserTest(); |
| 11040 runJUnitTest(__test, __test.test_expectedInterpolationIdentifier_emptySt
ring); |
| 11041 }); |
| 11006 _ut.test('test_expectedStringLiteral', () { | 11042 _ut.test('test_expectedStringLiteral', () { |
| 11007 final __test = new ErrorParserTest(); | 11043 final __test = new ErrorParserTest(); |
| 11008 runJUnitTest(__test, __test.test_expectedStringLiteral); | 11044 runJUnitTest(__test, __test.test_expectedStringLiteral); |
| 11009 }); | 11045 }); |
| 11010 _ut.test('test_expectedToken_commaMissingInArgumentList', () { | 11046 _ut.test('test_expectedToken_commaMissingInArgumentList', () { |
| 11011 final __test = new ErrorParserTest(); | 11047 final __test = new ErrorParserTest(); |
| 11012 runJUnitTest(__test, __test.test_expectedToken_commaMissingInArgumentLis
t); | 11048 runJUnitTest(__test, __test.test_expectedToken_commaMissingInArgumentLis
t); |
| 11013 }); | 11049 }); |
| 11014 _ut.test('test_expectedToken_parseStatement_afterVoid', () { | 11050 _ut.test('test_expectedToken_parseStatement_afterVoid', () { |
| 11015 final __test = new ErrorParserTest(); | 11051 final __test = new ErrorParserTest(); |
| (...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11396 runJUnitTest(__test, __test.test_missingKeywordOperator_parseClassMember
_afterVoid); | 11432 runJUnitTest(__test, __test.test_missingKeywordOperator_parseClassMember
_afterVoid); |
| 11397 }); | 11433 }); |
| 11398 _ut.test('test_missingNameInLibraryDirective', () { | 11434 _ut.test('test_missingNameInLibraryDirective', () { |
| 11399 final __test = new ErrorParserTest(); | 11435 final __test = new ErrorParserTest(); |
| 11400 runJUnitTest(__test, __test.test_missingNameInLibraryDirective); | 11436 runJUnitTest(__test, __test.test_missingNameInLibraryDirective); |
| 11401 }); | 11437 }); |
| 11402 _ut.test('test_missingNameInPartOfDirective', () { | 11438 _ut.test('test_missingNameInPartOfDirective', () { |
| 11403 final __test = new ErrorParserTest(); | 11439 final __test = new ErrorParserTest(); |
| 11404 runJUnitTest(__test, __test.test_missingNameInPartOfDirective); | 11440 runJUnitTest(__test, __test.test_missingNameInPartOfDirective); |
| 11405 }); | 11441 }); |
| 11442 _ut.test('test_missingPrefixInDeferredImport', () { |
| 11443 final __test = new ErrorParserTest(); |
| 11444 runJUnitTest(__test, __test.test_missingPrefixInDeferredImport); |
| 11445 }); |
| 11406 _ut.test('test_missingStatement', () { | 11446 _ut.test('test_missingStatement', () { |
| 11407 final __test = new ErrorParserTest(); | 11447 final __test = new ErrorParserTest(); |
| 11408 runJUnitTest(__test, __test.test_missingStatement); | 11448 runJUnitTest(__test, __test.test_missingStatement); |
| 11409 }); | 11449 }); |
| 11410 _ut.test('test_missingStatement_afterVoid', () { | 11450 _ut.test('test_missingStatement_afterVoid', () { |
| 11411 final __test = new ErrorParserTest(); | 11451 final __test = new ErrorParserTest(); |
| 11412 runJUnitTest(__test, __test.test_missingStatement_afterVoid); | 11452 runJUnitTest(__test, __test.test_missingStatement_afterVoid); |
| 11413 }); | 11453 }); |
| 11414 _ut.test('test_missingTerminatorForParameterGroup_named', () { | 11454 _ut.test('test_missingTerminatorForParameterGroup_named', () { |
| 11415 final __test = new ErrorParserTest(); | 11455 final __test = new ErrorParserTest(); |
| (...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11725 | 11765 |
| 11726 main() { | 11766 main() { |
| 11727 ComplexParserTest.dartSuite(); | 11767 ComplexParserTest.dartSuite(); |
| 11728 ErrorParserTest.dartSuite(); | 11768 ErrorParserTest.dartSuite(); |
| 11729 IncrementalParserTest.dartSuite(); | 11769 IncrementalParserTest.dartSuite(); |
| 11730 NonErrorParserTest.dartSuite(); | 11770 NonErrorParserTest.dartSuite(); |
| 11731 RecoveryParserTest.dartSuite(); | 11771 RecoveryParserTest.dartSuite(); |
| 11732 ResolutionCopierTest.dartSuite(); | 11772 ResolutionCopierTest.dartSuite(); |
| 11733 SimpleParserTest.dartSuite(); | 11773 SimpleParserTest.dartSuite(); |
| 11734 } | 11774 } |
| OLD | NEW |