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

Unified Diff: pkg/analyzer/test/source/analysis_options_provider_test.dart

Issue 2975253002: Format analyzer, analysis_server, analyzer_plugin, front_end and kernel with the latest dartfmt. (Closed)
Patch Set: Created 3 years, 5 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/test/generated/strong_mode_test.dart ('k') | pkg/analyzer/test/source/sdk_ext_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/source/analysis_options_provider_test.dart
diff --git a/pkg/analyzer/test/source/analysis_options_provider_test.dart b/pkg/analyzer/test/source/analysis_options_provider_test.dart
index 8ada91cfb8aaef067974b5a71101b48ae61b50f9..101d91a629674da7d10ecf1f9d3f00fe6201a620 100644
--- a/pkg/analyzer/test/source/analysis_options_provider_test.dart
+++ b/pkg/analyzer/test/source/analysis_options_provider_test.dart
@@ -33,8 +33,7 @@ main() {
group('merging', () {
test('integration', () {
- expectMergesTo(
- '''
+ expectMergesTo('''
analyzer:
plugins:
- p1
@@ -45,8 +44,7 @@ linter:
rules:
- camel_case_types
- one_member_abstracts
-''',
- '''
+''', '''
analyzer:
plugins:
- p3
@@ -56,8 +54,7 @@ linter:
rules:
one_member_abstracts: false # promotes and disables
always_specify_return_types: true
-''',
- '''
+''', '''
analyzer:
plugins:
- p1
@@ -131,16 +128,12 @@ abstract class AnalysisOptionsProviderTest {
void test_getOptions_crawlUp_hasInFolder() {
pathTranslator.newFolder('/foo/bar');
- pathTranslator.newFile(
- '/foo/$optionsFileName',
- r'''
+ pathTranslator.newFile('/foo/$optionsFileName', r'''
analyzer:
ignore:
- foo
''');
- pathTranslator.newFile(
- '/foo/bar/$optionsFileName',
- r'''
+ pathTranslator.newFile('/foo/bar/$optionsFileName', r'''
analyzer:
ignore:
- bar
@@ -156,16 +149,12 @@ analyzer:
void test_getOptions_crawlUp_hasInParent() {
pathTranslator.newFolder('/foo/bar/baz');
- pathTranslator.newFile(
- '/foo/$optionsFileName',
- r'''
+ pathTranslator.newFile('/foo/$optionsFileName', r'''
analyzer:
ignore:
- foo
''');
- pathTranslator.newFile(
- '/foo/bar/$optionsFileName',
- r'''
+ pathTranslator.newFile('/foo/bar/$optionsFileName', r'''
analyzer:
ignore:
- bar
@@ -193,17 +182,13 @@ analyzer:
}
void test_getOptions_include() {
- pathTranslator.newFile(
- '/foo.include',
- r'''
+ pathTranslator.newFile('/foo.include', r'''
analyzer:
ignore:
- ignoreme.dart
- 'sdk_ext/**'
''');
- pathTranslator.newFile(
- '/$optionsFileName',
- r'''
+ pathTranslator.newFile('/$optionsFileName', r'''
include: foo.include
''');
Map<String, YamlNode> options = _getOptions('/');
@@ -221,9 +206,7 @@ include: foo.include
}
void test_getOptions_include_missing() {
- pathTranslator.newFile(
- '/$optionsFileName',
- r'''
+ pathTranslator.newFile('/$optionsFileName', r'''
include: /foo.include
''');
Map<String, YamlNode> options = _getOptions('/');
@@ -238,9 +221,7 @@ include: /foo.include
}
void test_getOptions_simple() {
- pathTranslator.newFile(
- '/$optionsFileName',
- r'''
+ pathTranslator.newFile('/$optionsFileName', r'''
analyzer:
ignore:
- ignoreme.dart
« no previous file with comments | « pkg/analyzer/test/generated/strong_mode_test.dart ('k') | pkg/analyzer/test/source/sdk_ext_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698