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

Unified Diff: packages/dart_style/test/selections/selections.stmt

Issue 1400473008: Roll Observatory packages and add a roll script (Closed) Base URL: git@github.com:dart-lang/observatory_pub_packages.git@master
Patch Set: Created 5 years, 2 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/selections/selections.stmt
diff --git a/packages/dart_style/test/selections/selections.stmt b/packages/dart_style/test/selections/selections.stmt
new file mode 100644
index 0000000000000000000000000000000000000000..32afa7acda3c982b532fe9c7be82644d8dfae763
--- /dev/null
+++ b/packages/dart_style/test/selections/selections.stmt
@@ -0,0 +1,81 @@
+40 columns |
+>>> start at beginning
+‹123›45;
+<<<
+‹123›45;
+>>> start at end
+12345;‹›
+<<<
+12345;‹›
+>>> zero length
+123‹›45;
+<<<
+123‹›45;
+>>> length at end
+12‹345;›
+<<<
+12‹345;›
+>>> unchanged
+f‹oo(a, b›, c);
+<<<
+f‹oo(a, b›, c);
+>>> includes added whitespace
+a+f‹irst+se›cond;
+<<<
+a + f‹irst + se›cond;
+>>> inside comment
+foo( /* ‹ */ bar/*›*/);
+<<<
+foo(/* ‹ */ bar /*›*/);
+>>> in beginning of multi-line string literal
+ """f‹irs›t
+second""";
+<<<
+"""f‹irs›t
+second""";
+>>> in middle of multi-line string literal
+ """first
+se‹cond
+thi›rd
+fourth""";
+<<<
+"""first
+se‹cond
+thi›rd
+fourth""";
+>>> in end of multi-line string literal
+ """first
+sec‹ond""" ;›
+<<<
+"""first
+sec‹ond""";›
+>>> in string interpolation
+foo( "$fi‹rst", "$sec›ond" );
+<<<
+foo("$fi‹rst", "$sec›ond");
+>>> in moved comment
+someMethod(argument /* long com‹ment that wraps */, other /* last com›ment */);
+<<<
+someMethod(
+ argument /* long com‹ment that wraps */,
+ other /* last com›ment */);
+>>> before comments
+1 ‹ /* */ + › /* */ 2;
+<<<
+1 ‹/* */ +› /* */ 2;
+>>> after comments
+1/* */ ‹ +/* */ › 2;
+<<<
+1 /* */ ‹+ /* */› 2;
+>>> between adjacent comments
+1/* */ ‹ /* */ › /* */ + 2;
+<<<
+1 /* */ ‹/* */› /* */ + 2;
+>>> only whitespace in zero space selected
+foo( ‹ › argument);
+<<<
+foo(‹›argument);
+>>> only whitespace in space selected
+foo(argument, ‹ › argument);
+<<<
+foo(argument, ‹›argument);
« no previous file with comments | « packages/dart_style/test/selections/._selections.stmt ('k') | packages/dart_style/test/selections/selections.unit » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698