OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |