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

Unified Diff: test/formatter_test.dart

Issue 834353002: camelCase constants. Down with ALL_CAPS! (Closed) Base URL: https://github.com/dart-lang/dart_style.git@master
Patch Set: Created 5 years, 11 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
« example/format.dart ('K') | « lib/src/whitespace.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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'
- );
- });
-
-*/
« example/format.dart ('K') | « lib/src/whitespace.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698