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

Unified Diff: test/regression/189.stmt

Issue 1183633004: Harden named arguments if a hard split occurs in the positional ones. (Closed) Base URL: https://github.com/dart-lang/dart_style.git@master
Patch Set: Update changelog. 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 | « test/comments/expressions.stmt ('k') | test/splitting/function_arguments.stmt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/regression/189.stmt
diff --git a/test/regression/189.stmt b/test/regression/189.stmt
new file mode 100644
index 0000000000000000000000000000000000000000..38ff589bbb319309e862ab81681ee918cd19d1b9
--- /dev/null
+++ b/test/regression/189.stmt
@@ -0,0 +1,32 @@
+>>> (indent 2)
+ nestedSelect(currency, amount) => Intl.select(currency,
+ {
+ "CDN" : """${Intl.plural(amount, one: '$amount Canadian dollar',
+ other: '$amount Canadian dollars')}""",
+ "other" : "Whatever",
+ },
+ name: "nestedSelect",
+ args: [currency, amount]);
+<<<
+ nestedSelect(currency, amount) => Intl.select(
+ currency,
+ {
+ "CDN": """${Intl.plural(amount, one: '$amount Canadian dollar',
+ other: '$amount Canadian dollars')}""",
+ "other": "Whatever",
+ },
+ name: "nestedSelect",
+ args: [currency, amount]);
+>>> (indent 2)
+ expect(
+ Bidi.estimateDirectionOfText('CAPTCHA \u05de\u05e9\u05d5\u05db\u05dc\u05dc '
+ '\u05de\u05d3\u05d9?').value,
+ equals(TextDirection.RTL.value));
+<<<
+ expect(
+ Bidi
+ .estimateDirectionOfText(
+ 'CAPTCHA \u05de\u05e9\u05d5\u05db\u05dc\u05dc '
+ '\u05de\u05d3\u05d9?')
+ .value,
+ equals(TextDirection.RTL.value));
« no previous file with comments | « test/comments/expressions.stmt ('k') | test/splitting/function_arguments.stmt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698