| 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 // // This code was auto-generated, is not intended to be edited, and is subject
to | 4 // // This code was auto-generated, is not intended to be edited, and is subject
to |
| 5 // // significant change. Please see the README file for more information. | 5 // // significant change. Please see the README file for more information. |
| 6 // abstract class AbstractScannerTest extends JUnitTestCase { | 6 // abstract class AbstractScannerTest extends JUnitTestCase { |
| 7 // void test_tokenize_attribute() { | 7 // void test_tokenize_attribute() { |
| 8 // _tokenize("<html bob=\"one two\">", <Object> [LT, "html", "bob", EQ, "\"o
ne two\"", GT]); | 8 // _tokenize("<html bob=\"one two\">", <Object> [LT, "html", "bob", EQ, "\"o
ne two\"", GT]); |
| 9 // } | 9 // } |
| 10 // void test_tokenize_comment() { | 10 // void test_tokenize_comment() { |
| (...skipping 9415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9426 // } | 9426 // } |
| 9427 // } | 9427 // } |
| 9428 // class EnumMemberBuilderTest extends EngineTestCase { | 9428 // class EnumMemberBuilderTest extends EngineTestCase { |
| 9429 // void test_visitEnumDeclaration_multiple() { | 9429 // void test_visitEnumDeclaration_multiple() { |
| 9430 // String firstName = "ONE"; | 9430 // String firstName = "ONE"; |
| 9431 // String secondName = "TWO"; | 9431 // String secondName = "TWO"; |
| 9432 // String thirdName = "THREE"; | 9432 // String thirdName = "THREE"; |
| 9433 // EnumDeclaration enumDeclaration = AstFactory.enumDeclaration2("E", [first
Name, secondName, thirdName]); | 9433 // EnumDeclaration enumDeclaration = AstFactory.enumDeclaration2("E", [first
Name, secondName, thirdName]); |
| 9434 // ClassElement enumElement = _buildElement(enumDeclaration); | 9434 // ClassElement enumElement = _buildElement(enumDeclaration); |
| 9435 // List<FieldElement> fields = enumElement.fields; | 9435 // List<FieldElement> fields = enumElement.fields; |
| 9436 // EngineTestCase.assertLength(6, fields); | 9436 // EngineTestCase.assertLength(5, fields); |
| 9437 // FieldElement constant = fields[3]; | 9437 // FieldElement constant = fields[2]; |
| 9438 // JUnitTestCase.assertNotNull(constant); | 9438 // JUnitTestCase.assertNotNull(constant); |
| 9439 // JUnitTestCase.assertEquals(firstName, constant.name); | 9439 // JUnitTestCase.assertEquals(firstName, constant.name); |
| 9440 // JUnitTestCase.assertTrue(constant.isStatic); |
| 9441 // constant = fields[3]; |
| 9442 // JUnitTestCase.assertNotNull(constant); |
| 9443 // JUnitTestCase.assertEquals(secondName, constant.name); |
| 9444 // JUnitTestCase.assertTrue(constant.isStatic); |
| 9440 // constant = fields[4]; | 9445 // constant = fields[4]; |
| 9441 // JUnitTestCase.assertNotNull(constant); | 9446 // JUnitTestCase.assertNotNull(constant); |
| 9442 // JUnitTestCase.assertEquals(secondName, constant.name); | |
| 9443 // constant = fields[5]; | |
| 9444 // JUnitTestCase.assertNotNull(constant); | |
| 9445 // JUnitTestCase.assertEquals(thirdName, constant.name); | 9447 // JUnitTestCase.assertEquals(thirdName, constant.name); |
| 9448 // JUnitTestCase.assertTrue(constant.isStatic); |
| 9446 // } | 9449 // } |
| 9447 // void test_visitEnumDeclaration_single() { | 9450 // void test_visitEnumDeclaration_single() { |
| 9448 // String firstName = "ONE"; | 9451 // String firstName = "ONE"; |
| 9449 // EnumDeclaration enumDeclaration = AstFactory.enumDeclaration2("E", [first
Name]); | 9452 // EnumDeclaration enumDeclaration = AstFactory.enumDeclaration2("E", [first
Name]); |
| 9450 // ClassElement enumElement = _buildElement(enumDeclaration); | 9453 // ClassElement enumElement = _buildElement(enumDeclaration); |
| 9451 // List<FieldElement> fields = enumElement.fields; | 9454 // List<FieldElement> fields = enumElement.fields; |
| 9452 // EngineTestCase.assertLength(4, fields); | 9455 // EngineTestCase.assertLength(3, fields); |
| 9453 // FieldElement field = fields[0]; | 9456 // FieldElement field = fields[0]; |
| 9454 // JUnitTestCase.assertNotNull(field); | 9457 // JUnitTestCase.assertNotNull(field); |
| 9455 // JUnitTestCase.assertEquals("index", field.name); | 9458 // JUnitTestCase.assertEquals("index", field.name); |
| 9456 // JUnitTestCase.assertFalse(field.isStatic); | 9459 // JUnitTestCase.assertFalse(field.isStatic); |
| 9460 // JUnitTestCase.assertTrue(field.isSynthetic); |
| 9457 // field = fields[1]; | 9461 // field = fields[1]; |
| 9458 // JUnitTestCase.assertNotNull(field); | 9462 // JUnitTestCase.assertNotNull(field); |
| 9459 // JUnitTestCase.assertEquals("_name", field.name); | |
| 9460 // JUnitTestCase.assertFalse(field.isStatic); | |
| 9461 // field = fields[2]; | |
| 9462 // JUnitTestCase.assertNotNull(field); | |
| 9463 // JUnitTestCase.assertEquals("values", field.name); | 9463 // JUnitTestCase.assertEquals("values", field.name); |
| 9464 // JUnitTestCase.assertTrue(field.isStatic); | 9464 // JUnitTestCase.assertTrue(field.isStatic); |
| 9465 // FieldElement constant = fields[3]; | 9465 // JUnitTestCase.assertTrue(field.isSynthetic); |
| 9466 // FieldElement constant = fields[2]; |
| 9466 // JUnitTestCase.assertNotNull(constant); | 9467 // JUnitTestCase.assertNotNull(constant); |
| 9467 // JUnitTestCase.assertEquals(firstName, constant.name); | 9468 // JUnitTestCase.assertEquals(firstName, constant.name); |
| 9469 // JUnitTestCase.assertTrue(constant.isStatic); |
| 9468 // } | 9470 // } |
| 9469 // ClassElement _buildElement(EnumDeclaration enumDeclaration) { | 9471 // ClassElement _buildElement(EnumDeclaration enumDeclaration) { |
| 9470 // ElementHolder holder = new ElementHolder(); | 9472 // ElementHolder holder = new ElementHolder(); |
| 9471 // ElementBuilder elementBuilder = new ElementBuilder(holder); | 9473 // ElementBuilder elementBuilder = new ElementBuilder(holder); |
| 9472 // enumDeclaration.accept(elementBuilder); | 9474 // enumDeclaration.accept(elementBuilder); |
| 9473 // EnumMemberBuilder memberBuilder = new EnumMemberBuilder(new TestTypeProvi
der()); | 9475 // EnumMemberBuilder memberBuilder = new EnumMemberBuilder(new TestTypeProvi
der()); |
| 9474 // enumDeclaration.accept(memberBuilder); | 9476 // enumDeclaration.accept(memberBuilder); |
| 9475 // List<ClassElement> enums = holder.enums; | 9477 // List<ClassElement> enums = holder.enums; |
| 9476 // EngineTestCase.assertLength(1, enums); | 9478 // EngineTestCase.assertLength(1, enums); |
| 9477 // return enums[0]; | 9479 // return enums[0]; |
| (...skipping 3900 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13378 // suite.addTestSuite(ScanDartTaskTest); | 13380 // suite.addTestSuite(ScanDartTaskTest); |
| 13379 // return suite; | 13381 // return suite; |
| 13380 // } | 13382 // } |
| 13381 // } | 13383 // } |
| 13382 // class TestAll { | 13384 // class TestAll { |
| 13383 // static Test suite() { | 13385 // static Test suite() { |
| 13384 // TestSuite suite = new ExtendedTestSuite("Tests in ${TestAll.getPackage().
getName()}"); | 13386 // TestSuite suite = new ExtendedTestSuite("Tests in ${TestAll.getPackage().
getName()}"); |
| 13385 // suite.addTestSuite(FunctionTypeImplTest); | 13387 // suite.addTestSuite(FunctionTypeImplTest); |
| 13386 // suite.addTestSuite(InterfaceTypeImplTest); | 13388 // suite.addTestSuite(InterfaceTypeImplTest); |
| 13387 // suite.addTestSuite(TypeParameterTypeImplTest); | 13389 // suite.addTestSuite(TypeParameterTypeImplTest); |
| 13390 // suite.addTestSuite(UnionTypeImplTest); |
| 13388 // suite.addTestSuite(VoidTypeImplTest); | 13391 // suite.addTestSuite(VoidTypeImplTest); |
| 13389 // return suite; | 13392 // return suite; |
| 13390 // } | 13393 // } |
| 13391 // } | 13394 // } |
| 13392 // class TestAll { | 13395 // class TestAll { |
| 13393 // static Test suite() { | 13396 // static Test suite() { |
| 13394 // TestSuite suite = new ExtendedTestSuite("Tests in ${TestAll.getPackage().
getName()}"); | 13397 // TestSuite suite = new ExtendedTestSuite("Tests in ${TestAll.getPackage().
getName()}"); |
| 13395 // suite.addTestSuite(ComplexParserTest); | 13398 // suite.addTestSuite(ComplexParserTest); |
| 13396 // suite.addTestSuite(ErrorParserTest); | 13399 // suite.addTestSuite(ErrorParserTest); |
| 13397 // suite.addTestSuite(IncrementalParserTest); | 13400 // suite.addTestSuite(IncrementalParserTest); |
| (...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13934 // final List<String> _keyValuePairs; | 13937 // final List<String> _keyValuePairs; |
| 13935 // XmlValidator_Attributes(this._keyValuePairs); | 13938 // XmlValidator_Attributes(this._keyValuePairs); |
| 13936 // } | 13939 // } |
| 13937 // class XmlValidator_Tag { | 13940 // class XmlValidator_Tag { |
| 13938 // final String _tag; | 13941 // final String _tag; |
| 13939 // final XmlValidator_Attributes _attributes; | 13942 // final XmlValidator_Attributes _attributes; |
| 13940 // final String _content; | 13943 // final String _content; |
| 13941 // final List<XmlValidator_Tag> _children; | 13944 // final List<XmlValidator_Tag> _children; |
| 13942 // XmlValidator_Tag(this._tag, this._attributes, this._content, this._children
); | 13945 // XmlValidator_Tag(this._tag, this._attributes, this._content, this._children
); |
| 13943 // } | 13946 // } |
| OLD | NEW |