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

Unified Diff: test/comments/top_level.unit

Issue 1180443003: Don't allow inline block comments to eat pending newlines. (Closed) Base URL: https://github.com/dart-lang/dart_style.git@master
Patch Set: Add a test. Created 5 years, 6 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 | « lib/src/whitespace.dart ('k') | test/regression/178.unit » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/comments/top_level.unit
diff --git a/test/comments/top_level.unit b/test/comments/top_level.unit
index 6eb7405422732c2d97c84edfdd9bf767608ff030..95be10f5debc77cb67adce821538c1b5c3d45252 100644
--- a/test/comments/top_level.unit
+++ b/test/comments/top_level.unit
@@ -184,4 +184,23 @@ library a.//
b.c;
<<<
library a. //
- b.c;
+ b.c;
+>>> inline block comment between different kinds of directives
+library a; /* comment */ import 'b.dart';
+<<<
+library a;
+
+/* comment */
+import 'b.dart';
+>>> inline block comment between directives
+import 'a.dart'; /* comment */ import 'b.dart';
+<<<
+import 'a.dart';
+/* comment */
+import 'b.dart';
+>>> block comment between directives
+import 'a.dart'; /* comment */
+import 'b.dart';
+<<<
+import 'a.dart'; /* comment */
+import 'b.dart';
« no previous file with comments | « lib/src/whitespace.dart ('k') | test/regression/178.unit » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698