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

Unified Diff: pkg/analyzer/test/generated/engine_test.dart

Issue 830893003: Remove the Polymer support from the analyzer and analysis_server packages. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analyzer/lib/src/generated/resolver.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/generated/engine_test.dart
diff --git a/pkg/analyzer/test/generated/engine_test.dart b/pkg/analyzer/test/generated/engine_test.dart
index c7e1bb416806926534d2da2a5a6a8bef78df934b..dfb99db8a5fef850f2f54d5e7c4cf85682913648 100644
--- a/pkg/analyzer/test/generated/engine_test.dart
+++ b/pkg/analyzer/test/generated/engine_test.dart
@@ -2248,7 +2248,6 @@ class AnalysisOptionsImplTest extends EngineTestCase {
for (int i = 0; i < 2; i++, booleanValue = !booleanValue) {
AnalysisOptionsImpl options = new AnalysisOptionsImpl();
options.analyzeFunctionBodies = booleanValue;
- options.analyzePolymer = booleanValue;
options.cacheSize = i;
options.dart2jsHint = booleanValue;
options.enableDeferredLoading = booleanValue;
@@ -2258,7 +2257,6 @@ class AnalysisOptionsImplTest extends EngineTestCase {
options.preserveComments = booleanValue;
AnalysisOptionsImpl copy = new AnalysisOptionsImpl.con1(options);
expect(copy.analyzeFunctionBodies, options.analyzeFunctionBodies);
- expect(copy.analyzePolymer, options.analyzePolymer);
expect(copy.cacheSize, options.cacheSize);
expect(copy.dart2jsHint, options.dart2jsHint);
expect(copy.enableDeferredLoading, options.enableDeferredLoading);
@@ -2277,13 +2275,6 @@ class AnalysisOptionsImplTest extends EngineTestCase {
expect(options.analyzeFunctionBodies, value);
}
- void test_getAnalyzePolymer() {
- AnalysisOptionsImpl options = new AnalysisOptionsImpl();
- bool value = !options.analyzePolymer;
- options.analyzePolymer = value;
- expect(options.analyzePolymer, value);
- }
-
void test_getCacheSize() {
AnalysisOptionsImpl options = new AnalysisOptionsImpl();
expect(options.cacheSize, AnalysisOptionsImpl.DEFAULT_CACHE_SIZE);
@@ -4140,28 +4131,14 @@ class HtmlEntryTest extends EngineTestCase {
<AnalysisError>[
new AnalysisError.con1(source, HtmlWarningCode.INVALID_URI, ["-"])]);
entry.setValue(
- HtmlEntry.POLYMER_BUILD_ERRORS,
- <AnalysisError>[
- new AnalysisError.con1(source, PolymerCode.INVALID_ATTRIBUTE_NAME, ["-"])]);
- entry.setValue(
- HtmlEntry.POLYMER_RESOLUTION_ERRORS,
- <AnalysisError>[
- new AnalysisError.con1(source, PolymerCode.INVALID_ATTRIBUTE_NAME, ["-"])]);
- entry.setValue(
HtmlEntry.HINTS,
<AnalysisError>[new AnalysisError.con1(source, HintCode.DEAD_CODE)]);
- expect(entry.allErrors, hasLength(5));
+ expect(entry.allErrors, hasLength(3));
}
void test_invalidateAllResolutionInformation() {
HtmlEntry entry = _entryWithValidState();
entry.invalidateAllResolutionInformation(false);
- expect(
- entry.getState(HtmlEntry.POLYMER_BUILD_ERRORS),
- same(CacheState.INVALID));
- expect(
- entry.getState(HtmlEntry.POLYMER_RESOLUTION_ERRORS),
- same(CacheState.INVALID));
expect(entry.getState(HtmlEntry.ELEMENT), same(CacheState.INVALID));
expect(entry.getState(HtmlEntry.HINTS), same(CacheState.INVALID));
expect(entry.getState(SourceEntry.LINE_INFO), same(CacheState.VALID));
@@ -4178,12 +4155,6 @@ class HtmlEntryTest extends EngineTestCase {
void test_invalidateAllResolutionInformation_includingUris() {
HtmlEntry entry = _entryWithValidState();
entry.invalidateAllResolutionInformation(true);
- expect(
- entry.getState(HtmlEntry.POLYMER_BUILD_ERRORS),
- same(CacheState.INVALID));
- expect(
- entry.getState(HtmlEntry.POLYMER_RESOLUTION_ERRORS),
- same(CacheState.INVALID));
expect(entry.getState(HtmlEntry.ELEMENT), same(CacheState.INVALID));
expect(entry.getState(HtmlEntry.HINTS), same(CacheState.INVALID));
expect(entry.getState(SourceEntry.LINE_INFO), same(CacheState.VALID));
@@ -4217,14 +4188,6 @@ class HtmlEntryTest extends EngineTestCase {
state = HtmlEntry.PARSE_ERRORS;
}
- void test_setState_polymerBuildErrors() {
- state = HtmlEntry.POLYMER_BUILD_ERRORS;
- }
-
- void test_setState_polymerResolutionErrors() {
- state = HtmlEntry.POLYMER_RESOLUTION_ERRORS;
- }
-
void test_setState_referencedLibraries() {
state = HtmlEntry.REFERENCED_LIBRARIES;
}
@@ -4267,20 +4230,6 @@ class HtmlEntryTest extends EngineTestCase {
new AnalysisError.con1(null, HtmlWarningCode.INVALID_URI, ["-"])]);
}
- void test_setValue_polymerBuildErrors() {
- _setValue(
- HtmlEntry.POLYMER_BUILD_ERRORS,
- <AnalysisError>[
- new AnalysisError.con1(null, PolymerCode.INVALID_ATTRIBUTE_NAME, ["-"])]);
- }
-
- void test_setValue_polymerResolutionErrors() {
- _setValue(
- HtmlEntry.POLYMER_RESOLUTION_ERRORS,
- <AnalysisError>[
- new AnalysisError.con1(null, PolymerCode.INVALID_ATTRIBUTE_NAME, ["-"])]);
- }
-
void test_setValue_referencedLibraries() {
_setValue(HtmlEntry.REFERENCED_LIBRARIES, <Source>[new TestSource()]);
}
@@ -4299,8 +4248,6 @@ class HtmlEntryTest extends EngineTestCase {
entry.setValue(SourceEntry.LINE_INFO, null);
entry.setValue(HtmlEntry.PARSE_ERRORS, null);
entry.setValue(HtmlEntry.PARSED_UNIT, null);
- entry.setValue(HtmlEntry.POLYMER_BUILD_ERRORS, null);
- entry.setValue(HtmlEntry.POLYMER_RESOLUTION_ERRORS, null);
entry.setValue(HtmlEntry.REFERENCED_LIBRARIES, null);
entry.setValue(HtmlEntry.RESOLUTION_ERRORS, null);
expect(entry.getState(HtmlEntry.ELEMENT), same(CacheState.VALID));
@@ -4309,12 +4256,6 @@ class HtmlEntryTest extends EngineTestCase {
expect(entry.getState(HtmlEntry.PARSE_ERRORS), same(CacheState.VALID));
expect(entry.getState(HtmlEntry.PARSED_UNIT), same(CacheState.VALID));
expect(
- entry.getState(HtmlEntry.POLYMER_BUILD_ERRORS),
- same(CacheState.VALID));
- expect(
- entry.getState(HtmlEntry.POLYMER_RESOLUTION_ERRORS),
- same(CacheState.VALID));
- expect(
entry.getState(HtmlEntry.REFERENCED_LIBRARIES),
same(CacheState.VALID));
expect(entry.getState(HtmlEntry.RESOLUTION_ERRORS), same(CacheState.VALID));
@@ -6794,16 +6735,6 @@ class TestTaskVisitor<E> implements AnalysisTaskVisitor<E> {
return null;
}
@override
- E visitPolymerBuildHtmlTask(PolymerBuildHtmlTask task) {
- fail("Unexpectedly invoked visitPolymerBuildHtmlTask");
- return null;
- }
- @override
- E visitPolymerResolveHtmlTask(PolymerResolveHtmlTask task) {
- fail("Unexpectedly invoked visitPolymerResolveHtmlTask");
- return null;
- }
- @override
E visitResolveDartLibraryCycleTask(ResolveDartLibraryCycleTask task) {
fail("Unexpectedly invoked visitResolveDartLibraryCycleTask");
return null;
« no previous file with comments | « pkg/analyzer/lib/src/generated/resolver.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698