diff --git a/modules/angular2/test/router/integration/navigation_spec.ts b/modules/angular2/test/router/integration/navigation_spec.ts
index 13f2a1a571..6268dbff7f 100644
--- a/modules/angular2/test/router/integration/navigation_spec.ts
+++ b/modules/angular2/test/router/integration/navigation_spec.ts
@@ -114,6 +114,18 @@ export function main() {
}));
+ it('should navigate to child routes of async routes', inject([AsyncTestCompleter], (async) => {
+ compile('outer { }')
+ .then((_) => rtr.config([new AsyncRoute({path: '/a/...', loader: parentLoader})]))
+ .then((_) => rtr.navigate('/a/b'))
+ .then((_) => {
+ rootTC.detectChanges();
+ expect(rootTC.nativeElement).toHaveText('outer { inner { hello } }');
+ async.done();
+ });
+ }));
+
+
it('should recognize and apply redirects',
inject([AsyncTestCompleter, Location], (async, location) => {
compile()
@@ -286,6 +298,10 @@ class UserCmp {
}
+function parentLoader() {
+ return PromiseWrapper.resolve(ParentCmp);
+}
+
@Component({selector: 'parent-cmp'})
@View({template: "inner { }", directives: [RouterOutlet]})
@RouteConfig([new Route({path: '/b', component: HelloCmp})])