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

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

Issue 137533005: Whitespace testing fixes and bit-flip to turn on simple line breaking. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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
« no previous file with comments | « pkg/analyzer/test/services/data/stmt_tests.data ('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 31766)
+++ pkg/analyzer/test/services/formatter_test.dart (working copy)
@@ -1297,6 +1297,19 @@
expect(line, 'foo bar baz\nfoo bar baz');
});
+ test('isWhitespace', () {
+ expect(isWhitespace('foo'), false);
+ expect(isWhitespace(' foo'), false);
+ expect(isWhitespace('foo '), false);
+ expect(isWhitespace(' foo '), false);
+ expect(isWhitespace(' '), true);
+ expect(isWhitespace(' '), true);
+ expect(isWhitespace('\t'), true);
+ expect(isWhitespace('\t\t'), true);
+ expect(isWhitespace('\n'), true);
+ expect(isWhitespace('\r'), true);
+ });
+
});
/// Helper method tests
« no previous file with comments | « pkg/analyzer/test/services/data/stmt_tests.data ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698