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

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

Issue 2669513003: workaround failing windows test (Closed)
Patch Set: Created 3 years, 10 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/src/command_line/arguments.dart'; 9 import 'package:analyzer/src/command_line/arguments.dart';
10 import 'package:analyzer/src/context/builder.dart'; 10 import 'package:analyzer/src/context/builder.dart';
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after
579 resourceProvider 579 resourceProvider
580 .convertPath('/pkg/flutter/lib/analysis_options_user.yaml'), 580 .convertPath('/pkg/flutter/lib/analysis_options_user.yaml'),
581 ''' 581 '''
582 linter: 582 linter:
583 rules: 583 rules:
584 - mock_lint_rule 584 - mock_lint_rule
585 '''); 585 ''');
586 AnalysisOptions options = builder.getAnalysisOptions( 586 AnalysisOptions options = builder.getAnalysisOptions(
587 resourceProvider.convertPath('/some/directory/path')); 587 resourceProvider.convertPath('/some/directory/path'));
588 // TODO(danrubel) fix on Windows 588 // TODO(danrubel) fix on Windows
589 if (resourceProvider.absolutePathContext.separator != r'/') { 589 if (resourceProvider.absolutePathContext.separator != r'\') {
590 _expectEqualOptions(options, expected); 590 _expectEqualOptions(options, expected);
591 } 591 }
592 } 592 }
593 593
594 void test_getAnalysisOptions_default_noOverrides() { 594 void test_getAnalysisOptions_default_noOverrides() {
595 AnalysisOptionsImpl defaultOptions = new AnalysisOptionsImpl(); 595 AnalysisOptionsImpl defaultOptions = new AnalysisOptionsImpl();
596 defaultOptions.enableLazyAssignmentOperators = true; 596 defaultOptions.enableLazyAssignmentOperators = true;
597 builderOptions.defaultOptions = defaultOptions; 597 builderOptions.defaultOptions = defaultOptions;
598 AnalysisOptionsImpl expected = new AnalysisOptionsImpl(); 598 AnalysisOptionsImpl expected = new AnalysisOptionsImpl();
599 expected.enableLazyAssignmentOperators = true; 599 expected.enableLazyAssignmentOperators = true;
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
854 class MockLintRule implements LintRule { 854 class MockLintRule implements LintRule {
855 final String _name; 855 final String _name;
856 856
857 MockLintRule(this._name); 857 MockLintRule(this._name);
858 858
859 @override 859 @override
860 String get name => _name; 860 String get name => _name;
861 861
862 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); 862 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation);
863 } 863 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698