| 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 // library engine.engine_test; | 6 // library engine.engine_test; |
| 7 // import 'dart:collection'; | 7 // import 'dart:collection'; |
| 8 // import 'package:analyzer/src/generated/ast.dart'; | 8 // import 'package:analyzer/src/generated/ast.dart'; |
| 9 // import 'package:analyzer/src/generated/element.dart'; | 9 // import 'package:analyzer/src/generated/element.dart'; |
| 10 // import 'package:analyzer/src/generated/engine.dart'; | 10 // import 'package:analyzer/src/generated/engine.dart'; |
| (...skipping 5123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5134 // " <script type='application/dart'>", | 5134 // " <script type='application/dart'>", |
| 5135 // " void f() { x = 0; }", | 5135 // " void f() { x = 0; }", |
| 5136 // " </script>", | 5136 // " </script>", |
| 5137 // "</head>", | 5137 // "</head>", |
| 5138 // "<body>", | 5138 // "<body>", |
| 5139 // "</body>", | 5139 // "</body>", |
| 5140 // "</html>"]); | 5140 // "</html>"]); |
| 5141 // Source source = new TestSource.con1(FileUtilities2.createFile("/test.html
"), content); | 5141 // Source source = new TestSource.con1(FileUtilities2.createFile("/test.html
"), content); |
| 5142 // InternalAnalysisContext context = AnalysisContextFactory.contextWithCore(
); | 5142 // InternalAnalysisContext context = AnalysisContextFactory.contextWithCore(
); |
| 5143 // ParseHtmlTask parseTask = new ParseHtmlTask(context, source, modification
Stamp, content); | 5143 // ParseHtmlTask parseTask = new ParseHtmlTask(context, source, modification
Stamp, content); |
| 5144 // parseTask.perform(new TestTaskVisitor_ResolveHtmlTaskTest_test_perform_va
lid_2()); | 5144 // parseTask.perform(new TestTaskVisitor_ResolveHtmlTaskTest_test_perform_va
lid()); |
| 5145 // ResolveHtmlTask task = new ResolveHtmlTask(context, source, parseTask.mod
ificationTime, parseTask.htmlUnit); | 5145 // ResolveHtmlTask task = new ResolveHtmlTask(context, source, parseTask.mod
ificationTime, parseTask.htmlUnit); |
| 5146 // task.perform(new TestTaskVisitor_ResolveHtmlTaskTest_test_perform_valid(m
odificationStamp, source)); | 5146 // task.perform(new TestTaskVisitor_ResolveHtmlTaskTest_test_perform_valid_2
(modificationStamp, source)); |
| 5147 // } | 5147 // } |
| 5148 // static dartSuite() { | 5148 // static dartSuite() { |
| 5149 // _ut.group('ResolveHtmlTaskTest', () { | 5149 // _ut.group('ResolveHtmlTaskTest', () { |
| 5150 // _ut.test('test_accept', () { | 5150 // _ut.test('test_accept', () { |
| 5151 // final __test = new ResolveHtmlTaskTest(); | 5151 // final __test = new ResolveHtmlTaskTest(); |
| 5152 // runJUnitTest(__test, __test.test_accept); | 5152 // runJUnitTest(__test, __test.test_accept); |
| 5153 // }); | 5153 // }); |
| 5154 // _ut.test('test_getElement', () { | 5154 // _ut.test('test_getElement', () { |
| 5155 // final __test = new ResolveHtmlTaskTest(); | 5155 // final __test = new ResolveHtmlTaskTest(); |
| 5156 // runJUnitTest(__test, __test.test_getElement); | 5156 // runJUnitTest(__test, __test.test_getElement); |
| (...skipping 1338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6495 // bool visitResolveHtmlTask(ResolveHtmlTask task) => true; | 6495 // bool visitResolveHtmlTask(ResolveHtmlTask task) => true; |
| 6496 // } | 6496 // } |
| 6497 // class TestTaskVisitor_ResolveHtmlTaskTest_test_perform_exception extends Test
TaskVisitor<Boolean> { | 6497 // class TestTaskVisitor_ResolveHtmlTaskTest_test_perform_exception extends Test
TaskVisitor<Boolean> { |
| 6498 // @override | 6498 // @override |
| 6499 // bool visitResolveHtmlTask(ResolveHtmlTask task) { | 6499 // bool visitResolveHtmlTask(ResolveHtmlTask task) { |
| 6500 // JUnitTestCase.assertNotNull(task.exception); | 6500 // JUnitTestCase.assertNotNull(task.exception); |
| 6501 // return true; | 6501 // return true; |
| 6502 // } | 6502 // } |
| 6503 // } | 6503 // } |
| 6504 // class TestTaskVisitor_ResolveHtmlTaskTest_test_perform_valid extends TestTask
Visitor<Object> { | 6504 // class TestTaskVisitor_ResolveHtmlTaskTest_test_perform_valid extends TestTask
Visitor<Object> { |
| 6505 // @override |
| 6506 // Object visitParseHtmlTask(ParseHtmlTask task) => null; |
| 6507 // } |
| 6508 // class TestTaskVisitor_ResolveHtmlTaskTest_test_perform_valid_2 extends TestTa
skVisitor<Object> { |
| 6505 // long modificationStamp; | 6509 // long modificationStamp; |
| 6506 // Source source; | 6510 // Source source; |
| 6507 // TestTaskVisitor_ResolveHtmlTaskTest_test_perform_valid(this.modificationSta
mp, this.source) : super(); | 6511 // TestTaskVisitor_ResolveHtmlTaskTest_test_perform_valid_2(this.modificationS
tamp, this.source) : super(); |
| 6508 // @override | 6512 // @override |
| 6509 // Object visitResolveHtmlTask(ResolveHtmlTask task) { | 6513 // Object visitResolveHtmlTask(ResolveHtmlTask task) { |
| 6510 // CaughtException exception = task.exception; | 6514 // CaughtException exception = task.exception; |
| 6511 // if (exception != null) { | 6515 // if (exception != null) { |
| 6512 // throw exception; | 6516 // throw exception; |
| 6513 // } | 6517 // } |
| 6514 // JUnitTestCase.assertNotNull(task.element); | 6518 // JUnitTestCase.assertNotNull(task.element); |
| 6515 // JUnitTestCase.assertEquals(modificationStamp, task.modificationTime); | 6519 // JUnitTestCase.assertEquals(modificationStamp, task.modificationTime); |
| 6516 // EngineTestCase.assertLength(1, task.resolutionErrors); | 6520 // EngineTestCase.assertLength(1, task.resolutionErrors); |
| 6517 // JUnitTestCase.assertSame(source, task.source); | 6521 // JUnitTestCase.assertSame(source, task.source); |
| 6518 // return null; | 6522 // return null; |
| 6519 // } | 6523 // } |
| 6520 // } | 6524 // } |
| 6521 // class TestTaskVisitor_ResolveHtmlTaskTest_test_perform_valid_2 extends TestTa
skVisitor<Object> { | |
| 6522 // @override | |
| 6523 // Object visitParseHtmlTask(ParseHtmlTask task) => null; | |
| 6524 // } | |
| 6525 // class TestTaskVisitor_ScanDartTaskTest_test_accept extends TestTaskVisitor<Bo
olean> { | 6525 // class TestTaskVisitor_ScanDartTaskTest_test_accept extends TestTaskVisitor<Bo
olean> { |
| 6526 // @override | 6526 // @override |
| 6527 // bool visitScanDartTask(ScanDartTask task) => true; | 6527 // bool visitScanDartTask(ScanDartTask task) => true; |
| 6528 // } | 6528 // } |
| 6529 // class TestTaskVisitor_ScanDartTaskTest_test_perform_valid extends TestTaskVis
itor<Boolean> { | 6529 // class TestTaskVisitor_ScanDartTaskTest_test_perform_valid extends TestTaskVis
itor<Boolean> { |
| 6530 // InternalAnalysisContext context; | 6530 // InternalAnalysisContext context; |
| 6531 // Source source; | 6531 // Source source; |
| 6532 // TestTaskVisitor_ScanDartTaskTest_test_perform_valid(this.context, this.sour
ce) : super(); | 6532 // TestTaskVisitor_ScanDartTaskTest_test_perform_valid(this.context, this.sour
ce) : super(); |
| 6533 // @override | 6533 // @override |
| 6534 // bool visitScanDartTask(ScanDartTask task) { | 6534 // bool visitScanDartTask(ScanDartTask task) { |
| (...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6770 // AnalysisCacheTest.dartSuite(); | 6770 // AnalysisCacheTest.dartSuite(); |
| 6771 // DartEntryImplTest.dartSuite(); | 6771 // DartEntryImplTest.dartSuite(); |
| 6772 // HtmlEntryImplTest.dartSuite(); | 6772 // HtmlEntryImplTest.dartSuite(); |
| 6773 // PartitionManagerTest.dartSuite(); | 6773 // PartitionManagerTest.dartSuite(); |
| 6774 // SdkCachePartitionTest.dartSuite(); | 6774 // SdkCachePartitionTest.dartSuite(); |
| 6775 // UniversalCachePartitionTest.dartSuite(); | 6775 // UniversalCachePartitionTest.dartSuite(); |
| 6776 // } | 6776 // } |
| 6777 | 6777 |
| 6778 main() { | 6778 main() { |
| 6779 } | 6779 } |
| OLD | NEW |