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

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

Issue 2560323002: Simplify how patch files are specified to analyzer. (Closed)
Patch Set: Created 4 years 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
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 4
5 library analyzer.test.generated.engine_test; 5 library analyzer.test.generated.engine_test;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:analyzer/dart/ast/ast.dart'; 9 import 'package:analyzer/dart/ast/ast.dart';
10 import 'package:analyzer/dart/element/element.dart'; 10 import 'package:analyzer/dart/element/element.dart';
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 modifiedOptions.excludePatterns = ['a']; 51 modifiedOptions.excludePatterns = ['a'];
52 modifiedOptions.finerGrainedInvalidation = true; 52 modifiedOptions.finerGrainedInvalidation = true;
53 modifiedOptions.generateImplicitErrors = false; 53 modifiedOptions.generateImplicitErrors = false;
54 modifiedOptions.generateSdkErrors = true; 54 modifiedOptions.generateSdkErrors = true;
55 modifiedOptions.hint = false; 55 modifiedOptions.hint = false;
56 modifiedOptions.incremental = true; 56 modifiedOptions.incremental = true;
57 modifiedOptions.incrementalApi = true; 57 modifiedOptions.incrementalApi = true;
58 modifiedOptions.incrementalValidation = true; 58 modifiedOptions.incrementalValidation = true;
59 modifiedOptions.lint = true; 59 modifiedOptions.lint = true;
60 modifiedOptions.lintRules = [null]; 60 modifiedOptions.lintRules = [null];
61 modifiedOptions.patchPlatform = 3; 61 modifiedOptions.patchPaths = {
62 'dart:core': ['/dart_core.patch.dart']
63 };
62 modifiedOptions.preserveComments = false; 64 modifiedOptions.preserveComments = false;
63 modifiedOptions.strongMode = true; 65 modifiedOptions.strongMode = true;
64 modifiedOptions.trackCacheDependencies = false; 66 modifiedOptions.trackCacheDependencies = false;
65 67
66 modifiedOptions.resetToDefaults(); 68 modifiedOptions.resetToDefaults();
67 69
68 expect(modifiedOptions.dart2jsHint, defaultOptions.dart2jsHint); 70 expect(modifiedOptions.dart2jsHint, defaultOptions.dart2jsHint);
69 expect(modifiedOptions.disableCacheFlushing, 71 expect(modifiedOptions.disableCacheFlushing,
70 defaultOptions.disableCacheFlushing); 72 defaultOptions.disableCacheFlushing);
71 expect(modifiedOptions.enableAssertInitializer, 73 expect(modifiedOptions.enableAssertInitializer,
(...skipping 12 matching lines...) Expand all
84 expect(modifiedOptions.generateImplicitErrors, 86 expect(modifiedOptions.generateImplicitErrors,
85 defaultOptions.generateImplicitErrors); 87 defaultOptions.generateImplicitErrors);
86 expect(modifiedOptions.generateSdkErrors, defaultOptions.generateSdkErrors); 88 expect(modifiedOptions.generateSdkErrors, defaultOptions.generateSdkErrors);
87 expect(modifiedOptions.hint, defaultOptions.hint); 89 expect(modifiedOptions.hint, defaultOptions.hint);
88 expect(modifiedOptions.incremental, defaultOptions.incremental); 90 expect(modifiedOptions.incremental, defaultOptions.incremental);
89 expect(modifiedOptions.incrementalApi, defaultOptions.incrementalApi); 91 expect(modifiedOptions.incrementalApi, defaultOptions.incrementalApi);
90 expect(modifiedOptions.incrementalValidation, 92 expect(modifiedOptions.incrementalValidation,
91 defaultOptions.incrementalValidation); 93 defaultOptions.incrementalValidation);
92 expect(modifiedOptions.lint, defaultOptions.lint); 94 expect(modifiedOptions.lint, defaultOptions.lint);
93 expect(modifiedOptions.lintRules, defaultOptions.lintRules); 95 expect(modifiedOptions.lintRules, defaultOptions.lintRules);
94 expect(modifiedOptions.patchPlatform, defaultOptions.patchPlatform); 96 expect(modifiedOptions.patchPaths, defaultOptions.patchPaths);
95 expect(modifiedOptions.preserveComments, defaultOptions.preserveComments); 97 expect(modifiedOptions.preserveComments, defaultOptions.preserveComments);
96 expect(modifiedOptions.strongMode, defaultOptions.strongMode); 98 expect(modifiedOptions.strongMode, defaultOptions.strongMode);
97 expect(modifiedOptions.trackCacheDependencies, 99 expect(modifiedOptions.trackCacheDependencies,
98 defaultOptions.trackCacheDependencies); 100 defaultOptions.trackCacheDependencies);
99 } 101 }
100 } 102 }
101 103
102 /** 104 /**
103 * A listener used to gather the [ImplicitAnalysisEvent]s that are produced 105 * A listener used to gather the [ImplicitAnalysisEvent]s that are produced
104 * during analysis. 106 * during analysis.
(...skipping 668 matching lines...) Expand 10 before | Expand all | Expand 10 after
773 @override 775 @override
774 void test_flushAstStructures(Source source) { 776 void test_flushAstStructures(Source source) {
775 fail("Unexpected invocation of test_flushAstStructures"); 777 fail("Unexpected invocation of test_flushAstStructures");
776 } 778 }
777 779
778 @override 780 @override
779 void visitContentCache(ContentCacheVisitor visitor) { 781 void visitContentCache(ContentCacheVisitor visitor) {
780 fail("Unexpected invocation of visitContentCache"); 782 fail("Unexpected invocation of visitContentCache");
781 } 783 }
782 } 784 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698