From 8df924f7d3853c21e71a9aab3afaefb838269371 Mon Sep 17 00:00:00 2001 From: Adam Bradley Date: Mon, 23 Nov 2015 13:37:17 -0600 Subject: [PATCH] test(nav): added setRoot tests --- ionic/components/nav/test/basic/index.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/ionic/components/nav/test/basic/index.ts b/ionic/components/nav/test/basic/index.ts index 7b2941b8b8..70dce48428 100644 --- a/ionic/components/nav/test/basic/index.ts +++ b/ionic/components/nav/test/basic/index.ts @@ -37,6 +37,7 @@ class MyCmpTest{} + @@ -70,6 +71,10 @@ class FirstPage { this.nav.setViews(items); } + setRoot(PrimaryHeaderPage) { + + } + pushPrimaryHeaderPage() { this.nav.push(PrimaryHeaderPage); } @@ -140,6 +145,7 @@ class FullPage {

+

@@ -169,6 +175,10 @@ class PrimaryHeaderPage { this.nav.remove(1); } + setRoot() { + this.nav.setRoot(AnotherPage); + } + } @@ -183,6 +193,7 @@ class PrimaryHeaderPage {

+

` @@ -209,6 +220,10 @@ class AnotherPage { this.nav.push(FirstPage); } + setRoot() { + this.nav.setRoot(FirstPage); + } + toggleBackButton() { this.bbHideToggleVal = !this.bbHideToggleVal this.viewCtrl.hideBackButton(this.bbHideToggleVal);