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

Side by Side Diff: test/regression/other/angular.unit

Issue 1493553002: Smarter splitting around named collection arguments. (Closed) Base URL: https://github.com/dart-lang/dart_style.git@master
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « test/regression/0400/0421.unit ('k') | test/splitting/list_arguments.stmt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 >>> (indent 4) 1 >>> (indent 4)
2 main() { 2 main() {
3 it('should expose traverse locals', () { 3 it('should expose traverse locals', () {
4 expect(parser('a.b').bind({ 4 expect(parser('a.b').bind({
5 'a': {'b': 6} 5 'a': {'b': 6}
6 }, ContextLocals.wrapper)({ 6 }, ContextLocals.wrapper)({
7 'a': {'b': 1} 7 'a': {'b': 1}
8 })) 8 }))
9 .toEqual(1); 9 .toEqual(1);
10 }); 10 });
11 } 11 }
12 <<< 12 <<<
13 main() { 13 main() {
14 it('should expose traverse locals', () { 14 it('should expose traverse locals', () {
15 expect(parser('a.b').bind({ 15 expect(parser('a.b').bind({
16 'a': {'b': 6} 16 'a': {'b': 6}
17 }, ContextLocals.wrapper)({ 17 }, ContextLocals.wrapper)({
18 'a': {'b': 1} 18 'a': {'b': 1}
19 })).toEqual(1); 19 })).toEqual(1);
20 }); 20 });
21 } 21 }
22 >>>
23 @Component(
24 selector: 'io-controller',
25 template: r'<content></content>',
26 map: const {
27 'attr': '@attr',
28 'expr': '<=>expr',
29 'once': '=>!exprOnce',
30 'ondone': '&onDone',
31 'on-optional': '&onOptional'
32 })
33 class IoControllerComponent implements ScopeAware {}
34 <<<
35 @Component(
36 selector: 'io-controller',
37 template: r'<content></content>',
38 map: const {
39 'attr': '@attr',
40 'expr': '<=>expr',
41 'once': '=>!exprOnce',
42 'ondone': '&onDone',
43 'on-optional': '&onOptional'
44 })
45 class IoControllerComponent implements ScopeAware {}
OLDNEW
« no previous file with comments | « test/regression/0400/0421.unit ('k') | test/splitting/list_arguments.stmt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698