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

Unified Diff: pkg/analyzer/test/services/formatter_test.dart

Issue 196243003: Formatter space/tab width configuration fixes (dartbug.com/16969). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 9 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/lib/src/services/writer.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/services/formatter_test.dart
===================================================================
--- pkg/analyzer/test/services/formatter_test.dart (revision 33551)
+++ pkg/analyzer/test/services/formatter_test.dart (working copy)
@@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
+library formatter_test;
+
import 'dart:io';
import 'package:path/path.dart';
@@ -64,30 +66,30 @@
original,
original
);
-// expectIndentFormatsTo(3, false,
-// original,
-// 'class A {\n'
-// ' var z;\n'
-// ' inc(int x) => ++x;\n'
-// ' foo(int x) {\n'
-// ' if (x == 0) {\n'
-// ' return true;\n'
-// ' }\n'
-// ' }\n'
-// '}\n'
-// );
-// expectIndentFormatsTo(1, true,
-// original,
-// 'class A {\n'
-// '\tvar z;\n'
-// '\tinc(int x) => ++x;\n'
-// '\tfoo(int x) {\n'
-// '\t\tif (x == 0) {\n'
-// '\t\t\treturn true;\n'
-// '\t\t}\n'
-// '\t}\n'
-// '}\n'
-// );
+ expectIndentFormatsTo(3, false,
+ original,
+ 'class A {\n'
+ ' var z;\n'
+ ' inc(int x) => ++x;\n'
+ ' foo(int x) {\n'
+ ' if (x == 0) {\n'
+ ' return true;\n'
+ ' }\n'
+ ' }\n'
+ '}\n'
+ );
+ expectIndentFormatsTo(1, true,
+ original,
+ 'class A {\n'
+ '\tvar z;\n'
+ '\tinc(int x) => ++x;\n'
+ '\tfoo(int x) {\n'
+ '\t\tif (x == 0) {\n'
+ '\t\t\treturn true;\n'
+ '\t\t}\n'
+ '\t}\n'
+ '}\n'
+ );
});
test('CU (1)', () {
« no previous file with comments | « pkg/analyzer/lib/src/services/writer.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698