From 8c2f0b448c688c8f015f949a7b18ab20437c79d6 Mon Sep 17 00:00:00 2001 From: Adam Bradley Date: Mon, 11 Jul 2016 23:22:01 -0500 Subject: [PATCH] test(nav): remove unused tests --- src/components/nav/nav-router.ts | 11 ---- src/components/nav/test/routing/index.ts | 67 ---------------------- src/components/nav/test/routing/view1.html | 31 ---------- src/components/nav/test/routing/view2.html | 33 ----------- src/components/nav/test/routing/view3.html | 31 ---------- 5 files changed, 173 deletions(-) delete mode 100644 src/components/nav/nav-router.ts delete mode 100644 src/components/nav/test/routing/index.ts delete mode 100644 src/components/nav/test/routing/view1.html delete mode 100644 src/components/nav/test/routing/view2.html delete mode 100644 src/components/nav/test/routing/view3.html diff --git a/src/components/nav/nav-router.ts b/src/components/nav/nav-router.ts deleted file mode 100644 index 88c72b94cb..0000000000 --- a/src/components/nav/nav-router.ts +++ /dev/null @@ -1,11 +0,0 @@ -import {Directive} from '@angular/core'; - -/** - * @private - */ -@Directive({ - selector: 'ion-nav' -}) -export class NavRouter { - -} diff --git a/src/components/nav/test/routing/index.ts b/src/components/nav/test/routing/index.ts deleted file mode 100644 index 705bb5a5e6..0000000000 --- a/src/components/nav/test/routing/index.ts +++ /dev/null @@ -1,67 +0,0 @@ -import {Component} from '@angular/core'; -import {Routes} from '@angular/router'; -import {Location} from '@angular/common'; -import {ionicBootstrap, NavParams, ViewController} from '../../../../../src'; - - -@Component({templateUrl: 'view1.html'}) -class View1Cmp { - path: string; - windowHash: string; - - constructor(location: Location, private viewCtrl: ViewController) { - this.path = location.path(); - console.log(`View1Cmp, path: ${this.path}`); - } - - ionViewDidEnter() { - this.windowHash = window.location.hash; - } -} - - -@Component({templateUrl: 'view2.html'}) -class View2Cmp { - path: string; - windowHash: string; - - constructor(location: Location, private viewCtrl: ViewController) { - this.path = location.path(); - console.log(`View2Cmp, path: ${this.path}`); - } - - ionViewDidEnter() { - this.windowHash = window.location.hash; - } -} - - -@Component({templateUrl: 'view3.html'}) -class View3Cmp { - id: string; - path: string; - windowHash: string; - - constructor(params: NavParams, location: Location, private viewCtrl: ViewController) { - this.id = params.get('id'); - this.path = location.path(); - console.log(`View3Cmp, path: ${this.path}, param id: ${this.id}`); - } - - ionViewDidEnter() { - this.windowHash = window.location.hash; - } -} - - -@Component({}) -@Routes([ - { path: '/', component: View1Cmp }, - { path: '/2', component: View2Cmp }, - { path: '/3/:id', component: View3Cmp } -]) -class E2EApp { - constructor(private location: Location) {} -} - -ionicBootstrap(E2EApp); diff --git a/src/components/nav/test/routing/view1.html b/src/components/nav/test/routing/view1.html deleted file mode 100644 index 16ceb4588b..0000000000 --- a/src/components/nav/test/routing/view1.html +++ /dev/null @@ -1,31 +0,0 @@ - - - - - First View - - - - - - - -

- Window Hash: {{windowHash}} -

-

- Location Path: {{path}} -

-

- ViewController Id: {{viewCtrl.id}} -

-

- Second View via href -

-

- Third View via href, 151 as id param -

- -
diff --git a/src/components/nav/test/routing/view2.html b/src/components/nav/test/routing/view2.html deleted file mode 100644 index ccf068da75..0000000000 --- a/src/components/nav/test/routing/view2.html +++ /dev/null @@ -1,33 +0,0 @@ - - - - Second View - - - - - - - - - - -

- Window Hash: {{windowHash}} -

-

- Location Path: {{path}} -

-

- ViewController Id: {{viewCtrl.id}} -

-

- Third View via href, 27 as id param -

-

- First View via href -

- -
diff --git a/src/components/nav/test/routing/view3.html b/src/components/nav/test/routing/view3.html deleted file mode 100644 index 935a5e8de2..0000000000 --- a/src/components/nav/test/routing/view3.html +++ /dev/null @@ -1,31 +0,0 @@ - - - - Third View - - - - - - - -

- Window Hash: {{windowHash}} -

-

- Location Path: {{path}} -

-

- NavParams, id: {{id}} -

-

- ViewController Id: {{viewCtrl.id}} -

-

- Second View via href -

-

- First View via href -

- -