| 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 7643 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7654 JUnitTestCase.assertNotNull(functionBody.stringLiteral); | 7654 JUnitTestCase.assertNotNull(functionBody.stringLiteral); |
| 7655 JUnitTestCase.assertNotNull(functionBody.semicolon); | 7655 JUnitTestCase.assertNotNull(functionBody.semicolon); |
| 7656 } | 7656 } |
| 7657 | 7657 |
| 7658 void test_parseFunctionBody_skip_block() { | 7658 void test_parseFunctionBody_skip_block() { |
| 7659 ParserTestCase.parseFunctionBodies = false; | 7659 ParserTestCase.parseFunctionBodies = false; |
| 7660 FunctionBody functionBody = ParserTestCase.parse("parseFunctionBody", <Objec
t> [false, null, false], "{}"); | 7660 FunctionBody functionBody = ParserTestCase.parse("parseFunctionBody", <Objec
t> [false, null, false], "{}"); |
| 7661 EngineTestCase.assertInstanceOf((obj) => obj is EmptyFunctionBody, EmptyFunc
tionBody, functionBody); | 7661 EngineTestCase.assertInstanceOf((obj) => obj is EmptyFunctionBody, EmptyFunc
tionBody, functionBody); |
| 7662 } | 7662 } |
| 7663 | 7663 |
| 7664 void test_parseFunctionBody_skip_block_invalid() { |
| 7665 ParserTestCase.parseFunctionBodies = false; |
| 7666 FunctionBody functionBody = ParserTestCase.parse3("parseFunctionBody", <Obje
ct> [false, null, false], "{", [ParserErrorCode.EXPECTED_TOKEN]); |
| 7667 EngineTestCase.assertInstanceOf((obj) => obj is EmptyFunctionBody, EmptyFunc
tionBody, functionBody); |
| 7668 } |
| 7669 |
| 7664 void test_parseFunctionBody_skip_blocks() { | 7670 void test_parseFunctionBody_skip_blocks() { |
| 7665 ParserTestCase.parseFunctionBodies = false; | 7671 ParserTestCase.parseFunctionBodies = false; |
| 7666 FunctionBody functionBody = ParserTestCase.parse("parseFunctionBody", <Objec
t> [false, null, false], "{ {} }"); | 7672 FunctionBody functionBody = ParserTestCase.parse("parseFunctionBody", <Objec
t> [false, null, false], "{ {} }"); |
| 7667 EngineTestCase.assertInstanceOf((obj) => obj is EmptyFunctionBody, EmptyFunc
tionBody, functionBody); | 7673 EngineTestCase.assertInstanceOf((obj) => obj is EmptyFunctionBody, EmptyFunc
tionBody, functionBody); |
| 7668 } | 7674 } |
| 7669 | 7675 |
| 7670 void test_parseFunctionBody_skip_expression() { | 7676 void test_parseFunctionBody_skip_expression() { |
| 7671 ParserTestCase.parseFunctionBodies = false; | 7677 ParserTestCase.parseFunctionBodies = false; |
| 7672 FunctionBody functionBody = ParserTestCase.parse("parseFunctionBody", <Objec
t> [false, null, false], "=> y;"); | 7678 FunctionBody functionBody = ParserTestCase.parse("parseFunctionBody", <Objec
t> [false, null, false], "=> y;"); |
| 7673 EngineTestCase.assertInstanceOf((obj) => obj is EmptyFunctionBody, EmptyFunc
tionBody, functionBody); | 7679 EngineTestCase.assertInstanceOf((obj) => obj is EmptyFunctionBody, EmptyFunc
tionBody, functionBody); |
| (...skipping 3314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10988 runJUnitTest(__test, __test.test_parseFunctionBody_expression); | 10994 runJUnitTest(__test, __test.test_parseFunctionBody_expression); |
| 10989 }); | 10995 }); |
| 10990 _ut.test('test_parseFunctionBody_nativeFunctionBody', () { | 10996 _ut.test('test_parseFunctionBody_nativeFunctionBody', () { |
| 10991 final __test = new SimpleParserTest(); | 10997 final __test = new SimpleParserTest(); |
| 10992 runJUnitTest(__test, __test.test_parseFunctionBody_nativeFunctionBody); | 10998 runJUnitTest(__test, __test.test_parseFunctionBody_nativeFunctionBody); |
| 10993 }); | 10999 }); |
| 10994 _ut.test('test_parseFunctionBody_skip_block', () { | 11000 _ut.test('test_parseFunctionBody_skip_block', () { |
| 10995 final __test = new SimpleParserTest(); | 11001 final __test = new SimpleParserTest(); |
| 10996 runJUnitTest(__test, __test.test_parseFunctionBody_skip_block); | 11002 runJUnitTest(__test, __test.test_parseFunctionBody_skip_block); |
| 10997 }); | 11003 }); |
| 11004 _ut.test('test_parseFunctionBody_skip_block_invalid', () { |
| 11005 final __test = new SimpleParserTest(); |
| 11006 runJUnitTest(__test, __test.test_parseFunctionBody_skip_block_invalid); |
| 11007 }); |
| 10998 _ut.test('test_parseFunctionBody_skip_blocks', () { | 11008 _ut.test('test_parseFunctionBody_skip_blocks', () { |
| 10999 final __test = new SimpleParserTest(); | 11009 final __test = new SimpleParserTest(); |
| 11000 runJUnitTest(__test, __test.test_parseFunctionBody_skip_blocks); | 11010 runJUnitTest(__test, __test.test_parseFunctionBody_skip_blocks); |
| 11001 }); | 11011 }); |
| 11002 _ut.test('test_parseFunctionBody_skip_expression', () { | 11012 _ut.test('test_parseFunctionBody_skip_expression', () { |
| 11003 final __test = new SimpleParserTest(); | 11013 final __test = new SimpleParserTest(); |
| 11004 runJUnitTest(__test, __test.test_parseFunctionBody_skip_expression); | 11014 runJUnitTest(__test, __test.test_parseFunctionBody_skip_expression); |
| 11005 }); | 11015 }); |
| 11006 _ut.test('test_parseFunctionDeclarationStatement', () { | 11016 _ut.test('test_parseFunctionDeclarationStatement', () { |
| 11007 final __test = new SimpleParserTest(); | 11017 final __test = new SimpleParserTest(); |
| (...skipping 953 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11961 | 11971 |
| 11962 main() { | 11972 main() { |
| 11963 ComplexParserTest.dartSuite(); | 11973 ComplexParserTest.dartSuite(); |
| 11964 ErrorParserTest.dartSuite(); | 11974 ErrorParserTest.dartSuite(); |
| 11965 IncrementalParserTest.dartSuite(); | 11975 IncrementalParserTest.dartSuite(); |
| 11966 NonErrorParserTest.dartSuite(); | 11976 NonErrorParserTest.dartSuite(); |
| 11967 RecoveryParserTest.dartSuite(); | 11977 RecoveryParserTest.dartSuite(); |
| 11968 ResolutionCopierTest.dartSuite(); | 11978 ResolutionCopierTest.dartSuite(); |
| 11969 SimpleParserTest.dartSuite(); | 11979 SimpleParserTest.dartSuite(); |
| 11970 } | 11980 } |
| OLD | NEW |