Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(141)

Side by Side Diff: pkg/analyzer/test/generated/engine_test.dart

Issue 489173002: New analyzer snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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()); 5144 // parseTask.perform(new TestTaskVisitor_ResolveHtmlTaskTest_test_perform_va lid_2());
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_2 (modificationStamp, source)); 5146 // task.perform(new TestTaskVisitor_ResolveHtmlTaskTest_test_perform_valid(m odificationStamp, 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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
5286 // SourceContainer_AnalysisContextImplTest_test_applyChanges_removeContainer(t his.libB); 5286 // SourceContainer_AnalysisContextImplTest_test_applyChanges_removeContainer(t his.libB);
5287 // @override 5287 // @override
5288 // bool contains(Source source) => source == libB; 5288 // bool contains(Source source) => source == libB;
5289 // } 5289 // }
5290 // /** 5290 // /**
5291 // * Instances of the class `TestAnalysisContext` implement an analysis context in which every 5291 // * Instances of the class `TestAnalysisContext` implement an analysis context in which every
5292 // * method will cause a test to fail when invoked. 5292 // * method will cause a test to fail when invoked.
5293 // */ 5293 // */
5294 // class TestAnalysisContext implements InternalAnalysisContext { 5294 // class TestAnalysisContext implements InternalAnalysisContext {
5295 // @override 5295 // @override
5296 // void addListener(AnalysisListener listener) {
5297 // JUnitTestCase.fail("Unexpected invocation of addListener");
5298 // }
5299 // @override
5296 // void addSourceInfo(Source source, SourceEntry info) { 5300 // void addSourceInfo(Source source, SourceEntry info) {
5297 // JUnitTestCase.fail("Unexpected invocation of addSourceInfo"); 5301 // JUnitTestCase.fail("Unexpected invocation of addSourceInfo");
5298 // } 5302 // }
5299 // @override 5303 // @override
5300 // void applyAnalysisDelta(AnalysisDelta delta) { 5304 // void applyAnalysisDelta(AnalysisDelta delta) {
5301 // JUnitTestCase.fail("Unexpected invocation of applyAnalysisDelta"); 5305 // JUnitTestCase.fail("Unexpected invocation of applyAnalysisDelta");
5302 // } 5306 // }
5303 // @override 5307 // @override
5304 // void applyChanges(ChangeSet changeSet) { 5308 // void applyChanges(ChangeSet changeSet) {
5305 // JUnitTestCase.fail("Unexpected invocation of applyChanges"); 5309 // JUnitTestCase.fail("Unexpected invocation of applyChanges");
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
5549 // @override 5553 // @override
5550 // AnalysisResult performAnalysisTask() { 5554 // AnalysisResult performAnalysisTask() {
5551 // JUnitTestCase.fail("Unexpected invocation of performAnalysisTask"); 5555 // JUnitTestCase.fail("Unexpected invocation of performAnalysisTask");
5552 // return null; 5556 // return null;
5553 // } 5557 // }
5554 // @override 5558 // @override
5555 // void recordLibraryElements(Map<Source, LibraryElement> elementMap) { 5559 // void recordLibraryElements(Map<Source, LibraryElement> elementMap) {
5556 // JUnitTestCase.fail("Unexpected invocation of recordLibraryElements"); 5560 // JUnitTestCase.fail("Unexpected invocation of recordLibraryElements");
5557 // } 5561 // }
5558 // @override 5562 // @override
5563 // void removeListener(AnalysisListener listener) {
5564 // JUnitTestCase.fail("Unexpected invocation of removeListener");
5565 // }
5566 // @override
5559 // CompilationUnit resolveCompilationUnit(Source unitSource, LibraryElement li brary) { 5567 // CompilationUnit resolveCompilationUnit(Source unitSource, LibraryElement li brary) {
5560 // JUnitTestCase.fail("Unexpected invocation of resolveCompilationUnit"); 5568 // JUnitTestCase.fail("Unexpected invocation of resolveCompilationUnit");
5561 // return null; 5569 // return null;
5562 // } 5570 // }
5563 // @override 5571 // @override
5564 // CompilationUnit resolveCompilationUnit2(Source unitSource, Source librarySo urce) { 5572 // CompilationUnit resolveCompilationUnit2(Source unitSource, Source librarySo urce) {
5565 // JUnitTestCase.fail("Unexpected invocation of resolveCompilationUnit"); 5573 // JUnitTestCase.fail("Unexpected invocation of resolveCompilationUnit");
5566 // return null; 5574 // return null;
5567 // } 5575 // }
5568 // @override 5576 // @override
(...skipping 913 matching lines...) Expand 10 before | Expand all | Expand 10 after
6482 // bool visitResolveHtmlTask(ResolveHtmlTask task) => true; 6490 // bool visitResolveHtmlTask(ResolveHtmlTask task) => true;
6483 // } 6491 // }
6484 // class TestTaskVisitor_ResolveHtmlTaskTest_test_perform_exception extends Test TaskVisitor<Boolean> { 6492 // class TestTaskVisitor_ResolveHtmlTaskTest_test_perform_exception extends Test TaskVisitor<Boolean> {
6485 // @override 6493 // @override
6486 // bool visitResolveHtmlTask(ResolveHtmlTask task) { 6494 // bool visitResolveHtmlTask(ResolveHtmlTask task) {
6487 // JUnitTestCase.assertNotNull(task.exception); 6495 // JUnitTestCase.assertNotNull(task.exception);
6488 // return true; 6496 // return true;
6489 // } 6497 // }
6490 // } 6498 // }
6491 // class TestTaskVisitor_ResolveHtmlTaskTest_test_perform_valid extends TestTask Visitor<Object> { 6499 // class TestTaskVisitor_ResolveHtmlTaskTest_test_perform_valid extends TestTask Visitor<Object> {
6492 // @override
6493 // Object visitParseHtmlTask(ParseHtmlTask task) => null;
6494 // }
6495 // class TestTaskVisitor_ResolveHtmlTaskTest_test_perform_valid_2 extends TestTa skVisitor<Object> {
6496 // long modificationStamp; 6500 // long modificationStamp;
6497 // Source source; 6501 // Source source;
6498 // TestTaskVisitor_ResolveHtmlTaskTest_test_perform_valid_2(this.modificationS tamp, this.source) : super(); 6502 // TestTaskVisitor_ResolveHtmlTaskTest_test_perform_valid(this.modificationSta mp, this.source) : super();
6499 // @override 6503 // @override
6500 // Object visitResolveHtmlTask(ResolveHtmlTask task) { 6504 // Object visitResolveHtmlTask(ResolveHtmlTask task) {
6501 // CaughtException exception = task.exception; 6505 // CaughtException exception = task.exception;
6502 // if (exception != null) { 6506 // if (exception != null) {
6503 // throw exception; 6507 // throw exception;
6504 // } 6508 // }
6505 // JUnitTestCase.assertNotNull(task.element); 6509 // JUnitTestCase.assertNotNull(task.element);
6506 // JUnitTestCase.assertEquals(modificationStamp, task.modificationTime); 6510 // JUnitTestCase.assertEquals(modificationStamp, task.modificationTime);
6507 // EngineTestCase.assertLength(1, task.resolutionErrors); 6511 // EngineTestCase.assertLength(1, task.resolutionErrors);
6508 // JUnitTestCase.assertSame(source, task.source); 6512 // JUnitTestCase.assertSame(source, task.source);
6509 // return null; 6513 // return null;
6510 // } 6514 // }
6511 // } 6515 // }
6516 // class TestTaskVisitor_ResolveHtmlTaskTest_test_perform_valid_2 extends TestTa skVisitor<Object> {
6517 // @override
6518 // Object visitParseHtmlTask(ParseHtmlTask task) => null;
6519 // }
6512 // class TestTaskVisitor_ScanDartTaskTest_test_accept extends TestTaskVisitor<Bo olean> { 6520 // class TestTaskVisitor_ScanDartTaskTest_test_accept extends TestTaskVisitor<Bo olean> {
6513 // @override 6521 // @override
6514 // bool visitScanDartTask(ScanDartTask task) => true; 6522 // bool visitScanDartTask(ScanDartTask task) => true;
6515 // } 6523 // }
6516 // class TestTaskVisitor_ScanDartTaskTest_test_perform_valid extends TestTaskVis itor<Boolean> { 6524 // class TestTaskVisitor_ScanDartTaskTest_test_perform_valid extends TestTaskVis itor<Boolean> {
6517 // InternalAnalysisContext context; 6525 // InternalAnalysisContext context;
6518 // Source source; 6526 // Source source;
6519 // TestTaskVisitor_ScanDartTaskTest_test_perform_valid(this.context, this.sour ce) : super(); 6527 // TestTaskVisitor_ScanDartTaskTest_test_perform_valid(this.context, this.sour ce) : super();
6520 // @override 6528 // @override
6521 // bool visitScanDartTask(ScanDartTask task) { 6529 // bool visitScanDartTask(ScanDartTask task) {
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
6757 // AnalysisCacheTest.dartSuite(); 6765 // AnalysisCacheTest.dartSuite();
6758 // DartEntryImplTest.dartSuite(); 6766 // DartEntryImplTest.dartSuite();
6759 // HtmlEntryImplTest.dartSuite(); 6767 // HtmlEntryImplTest.dartSuite();
6760 // PartitionManagerTest.dartSuite(); 6768 // PartitionManagerTest.dartSuite();
6761 // SdkCachePartitionTest.dartSuite(); 6769 // SdkCachePartitionTest.dartSuite();
6762 // UniversalCachePartitionTest.dartSuite(); 6770 // UniversalCachePartitionTest.dartSuite();
6763 // } 6771 // }
6764 6772
6765 main() { 6773 main() {
6766 } 6774 }
OLDNEW
« no previous file with comments | « pkg/analyzer/test/generated/element_test.dart ('k') | pkg/analyzer/test/generated/parser_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698