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

Side by Side Diff: pkg/analyzer/test/src/context/builder_test.dart

Issue 2383203003: Add an analysis option to disable cache flushing. (Closed)
Patch Set: Created 4 years, 2 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
OLDNEW
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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.src.context.context_builder_test; 5 library analyzer.test.src.context.context_builder_test;
6 6
7 import 'package:analyzer/file_system/file_system.dart'; 7 import 'package:analyzer/file_system/file_system.dart';
8 import 'package:analyzer/file_system/memory_file_system.dart'; 8 import 'package:analyzer/file_system/memory_file_system.dart';
9 import 'package:analyzer/plugin/options.dart'; 9 import 'package:analyzer/plugin/options.dart';
10 import 'package:analyzer/source/package_map_resolver.dart'; 10 import 'package:analyzer/source/package_map_resolver.dart';
(...skipping 645 matching lines...) Expand 10 before | Expand all | Expand 10 after
656 expect(actual.incremental, expected.incremental); 656 expect(actual.incremental, expected.incremental);
657 expect(actual.incrementalApi, expected.incrementalApi); 657 expect(actual.incrementalApi, expected.incrementalApi);
658 expect(actual.incrementalValidation, expected.incrementalValidation); 658 expect(actual.incrementalValidation, expected.incrementalValidation);
659 expect(actual.lint, expected.lint); 659 expect(actual.lint, expected.lint);
660 expect(actual.preserveComments, expected.preserveComments); 660 expect(actual.preserveComments, expected.preserveComments);
661 expect(actual.strongMode, expected.strongMode); 661 expect(actual.strongMode, expected.strongMode);
662 expect(actual.strongModeHints, expected.strongModeHints); 662 expect(actual.strongModeHints, expected.strongModeHints);
663 expect(actual.implicitCasts, expected.implicitCasts); 663 expect(actual.implicitCasts, expected.implicitCasts);
664 expect(actual.implicitDynamic, expected.implicitDynamic); 664 expect(actual.implicitDynamic, expected.implicitDynamic);
665 expect(actual.trackCacheDependencies, expected.trackCacheDependencies); 665 expect(actual.trackCacheDependencies, expected.trackCacheDependencies);
666 expect(actual.disableCacheFlushing, expected.disableCacheFlushing);
666 expect(actual.finerGrainedInvalidation, expected.finerGrainedInvalidation); 667 expect(actual.finerGrainedInvalidation, expected.finerGrainedInvalidation);
667 } 668 }
668 669
669 Uri _relativeUri(String path, {String from}) { 670 Uri _relativeUri(String path, {String from}) {
670 String relativePath = pathContext.relative(path, from: from); 671 String relativePath = pathContext.relative(path, from: from);
671 return pathContext.toUri(relativePath); 672 return pathContext.toUri(relativePath);
672 } 673 }
673 } 674 }
674 675
675 @reflectiveTest 676 @reflectiveTest
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
711 fail('Unexpected invocation of optionsProcessed'); 712 fail('Unexpected invocation of optionsProcessed');
712 } 713 }
713 expect(options, hasLength(expectedOptions.length)); 714 expect(options, hasLength(expectedOptions.length));
714 for (String key in expectedOptions.keys) { 715 for (String key in expectedOptions.keys) {
715 expect(options.containsKey(key), isTrue, reason: 'missing key $key'); 716 expect(options.containsKey(key), isTrue, reason: 'missing key $key');
716 expect(options[key], expectedOptions[key], 717 expect(options[key], expectedOptions[key],
717 reason: 'values for key $key do not match'); 718 reason: 'values for key $key do not match');
718 } 719 }
719 } 720 }
720 } 721 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/engine.dart ('k') | pkg/analyzer/test/src/context/cache_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698