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

Unified Diff: packages/dart_style/test/splitting/imports.unit

Issue 2990843002: Removed fixed dependencies (Closed)
Patch Set: Created 3 years, 5 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
Index: packages/dart_style/test/splitting/imports.unit
diff --git a/packages/dart_style/test/splitting/imports.unit b/packages/dart_style/test/splitting/imports.unit
index 64a379ae7a7132d5cedb7909b25407b3eead65c1..0a0a3dfcd95ab44ef371f3333876ecde6a62a5fe 100644
--- a/packages/dart_style/test/splitting/imports.unit
+++ b/packages/dart_style/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 | « packages/dart_style/test/splitting/generic_method_parameters.unit ('k') | packages/dart_style/test/splitting/lists.stmt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698