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'; |