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

Unified Diff: test/splitting/imports.unit

Issue 1505983005: Upgrade to analyzer 0.27.0. (Closed) Base URL: https://github.com/dart-lang/dart_style.git@master
Patch Set: More upgrades. Created 5 years 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 | « test/comments/top_level.unit ('k') | test/whitespace/directives.unit » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/splitting/imports.unit
diff --git a/test/splitting/imports.unit b/test/splitting/imports.unit
index 64a379ae7a7132d5cedb7909b25407b3eead65c1..0a0a3dfcd95ab44ef371f3333876ecde6a62a5fe 100644
--- a/test/splitting/imports.unit
+++ b/test/splitting/imports.unit
@@ -120,4 +120,25 @@ Second;
import 'foo.dart'
hide
First, //
- Second;
+ Second;
+>>> multiple configurations on one line
+import 'a' if (b) 'b' if (c) 'c';
+<<<
+import 'a' if (b) 'b' if (c) 'c';
+>>> if configurations don't fit, they all split
+import 'long/import/url.dart' if (b) 'b' if (c) 'c';
+<<<
+import 'long/import/url.dart'
+ if (b) 'b'
+ if (c) 'c';
+>>> do not split before uri
+import 'long/import/url.dart' if (config) 'very/long/configured/import/url.dart';
+<<<
+import 'long/import/url.dart'
+ if (config) 'very/long/configured/import/url.dart';
+>>> split before ==
+import 'some/uri.dart' if (config.name.debug == 'string') 'c';
+<<<
+import 'some/uri.dart'
+ if (config.name.debug ==
+ 'string') 'c';
« no previous file with comments | « test/comments/top_level.unit ('k') | test/whitespace/directives.unit » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698