--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
To unsubscribe from this group and stop receiving emails from it, send an email to misc+uns...@dartlang.org.
Does Webstorm get this for free or do they have to update something?
DH
class Test {
<- This blank line
/// The first member in this class.
int id;
}
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
To unsubscribe from this group and stop receiving emails from it, send an email to misc+uns...@dartlang.org.
Now it seems that the blank line is removed in 0.2.0-rc.1. Is it intentional? I happen to have relied on the feature to have the single blank line.
I hope to add that I am even sold to Go's extremely strict standar formatting. So prefer stricter formatting rule. The reason I posted the original question is just to check if the observed deviation from the previous behavior was intentional or accidental.
testCase('when router has pathAdapters', forBuilder: () => (new DefaultRouterBuilder('top', routeAdapter: new DefaultRouterAdapter.def( pathAdapter: testPathAdapter('::'))) ..get('foo', testHandler('one')) ..addAll((DefaultRouterBuilder r) => r ..addAll((DefaultRouterBuilder r) => r ..put('sub1sub1', testHandler('sub1sub1')), path: 'subr1subr1', pathAdapter: testPathAdapter(';;')), path: 'subr1')), expectRouter: createRouter('top::', [ simple('foo::', ['GET'], true, 'one'), createRouter('subr1::', [ createRouter( 'subr1subr1;;', [simple('sub1sub1;;', ['PUT'], true, 'sub1sub1')]) ]) ]), expectBehaviour: [ behaviour('a request matching first route', forRequest: () => createRequest('top::/foo::'), expectResult: testResult(result: 'one')), behaviour('a request matching second route', forRequest: () => createRequest('top::/subr1::/subr1subr1;;/sub1sub1;;', 'PUT'), expectResult: testResult(result: 'sub1sub1')) ]);
testCase('when router has pathAdapters',
forBuilder: () => (new DefaultRouterBuilder('top',
routeAdapter: new DefaultRouterAdapter.def(
pathAdapter: testPathAdapter('::')))
..get('foo', testHandler('one'))
..addAll(
(DefaultRouterBuilder r) => r
..addAll((DefaultRouterBuilder r) =>
r..put('sub1sub1', testHandler('sub1sub1')),
path: 'subr1subr1', pathAdapter: testPathAdapter(';;')),
path: 'subr1')),
expectRouter: createRouter(
'top::',
[
simple('foo::', ['GET'], true, 'one'),
createRouter('subr1::', [
createRouter('subr1subr1;;', [
simple('sub1sub1;;', ['PUT'], true, 'sub1sub1')
])
])
]),
expectBehaviour: [
behaviour('a request matching first route',
forRequest: () => createRequest('top::/foo::'),
expectResult: testResult(result: 'one')),
behaviour('a request matching second route',
forRequest: () =>
createRequest('top::/subr1::/subr1subr1;;/sub1sub1;;', 'PUT'),
expectResult: testResult(result: 'sub1sub1'))
]);