| Index: test/formatter_test.dart
|
| diff --git a/test/formatter_test.dart b/test/formatter_test.dart
|
| index 91b01c06fd84ae28a33691c848344a7a08d0b823..13c0dadad230e6955759ee44647ac67d4346e486 100644
|
| --- a/test/formatter_test.dart
|
| +++ b/test/formatter_test.dart
|
| @@ -165,55 +165,3 @@ void testDirectory(String name) {
|
| });
|
| }
|
| }
|
| -
|
| -// TODO(rnystrom): These tests are from when the formatter would make
|
| -// non-whitespace changes. Eventually, when style linting is supported, these
|
| -// should become linting errors.
|
| -/*
|
| ->>> DO use ; instead of {} for empty constructor bodies
|
| -class Point {
|
| - int x, y;
|
| - Point(this.x, this.y) {}
|
| -}
|
| -<<<
|
| -class Point {
|
| - int x, y;
|
| - Point(this.x, this.y);
|
| -}
|
| ->>> DO use curly braces for all flow control structures.
|
| -flow() {
|
| - if (true) print('sanity');
|
| - else
|
| - print('opposite day!');
|
| -}
|
| -<<<
|
| -flow() {
|
| - if (true) {
|
| - print('sanity');
|
| - } else {
|
| - print('opposite day!');
|
| - }
|
| -}
|
| -
|
| - test('CU (empty ctor bodies)', () {
|
| - expectCUFormatsTo(
|
| - 'class A {\n'
|
| - ' A() {\n'
|
| - ' }\n'
|
| - '}\n',
|
| - 'class A {\n'
|
| - ' A();\n'
|
| - '}\n'
|
| - );
|
| - expectCUFormatsTo(
|
| - 'class A {\n'
|
| - ' A() {\n'
|
| - ' }\n'
|
| - '}\n',
|
| - 'class A {\n'
|
| - ' A();\n'
|
| - '}\n'
|
| - );
|
| - });
|
| -
|
| -*/
|
|
|