From 656ea666329f48d106ab2f1050f21102f3ba2aca Mon Sep 17 00:00:00 2001 From: Daniel Imhoff Date: Fri, 3 Mar 2017 17:07:19 -0600 Subject: [PATCH] test(e2e): radio/basic --- .../radio/test/basic/app/app.component.ts | 8 +++++ .../radio/test/basic/app/app.module.ts | 24 +++++++++++++++ .../radio/test/basic/{ => app}/main.ts | 0 .../test/basic/{ => pages/main}/main.html | 0 .../test/basic/pages/main/main.module.ts | 17 +++++++++++ .../{app.module.ts => pages/main/main.ts} | 29 ++----------------- 6 files changed, 51 insertions(+), 27 deletions(-) create mode 100644 src/components/radio/test/basic/app/app.component.ts create mode 100644 src/components/radio/test/basic/app/app.module.ts rename src/components/radio/test/basic/{ => app}/main.ts (100%) rename src/components/radio/test/basic/{ => pages/main}/main.html (100%) create mode 100644 src/components/radio/test/basic/pages/main/main.module.ts rename src/components/radio/test/basic/{app.module.ts => pages/main/main.ts} (76%) diff --git a/src/components/radio/test/basic/app/app.component.ts b/src/components/radio/test/basic/app/app.component.ts new file mode 100644 index 0000000000..af92e1d42e --- /dev/null +++ b/src/components/radio/test/basic/app/app.component.ts @@ -0,0 +1,8 @@ +import { Component } from '@angular/core'; + +@Component({ + template: '' +}) +export class E2EApp { + root = 'E2EPage'; +} diff --git a/src/components/radio/test/basic/app/app.module.ts b/src/components/radio/test/basic/app/app.module.ts new file mode 100644 index 0000000000..791669231e --- /dev/null +++ b/src/components/radio/test/basic/app/app.module.ts @@ -0,0 +1,24 @@ +import { NgModule } from '@angular/core'; +import { BrowserModule } from '@angular/platform-browser'; +import { IonicApp, IonicModule } from '../../../../..'; + +import { E2EApp } from './app.component'; + +@NgModule({ + declarations: [ + E2EApp, + ], + imports: [ + BrowserModule, + IonicModule.forRoot(E2EApp, {}, { + links: [ + { loadChildren: '../pages/main/main.module#E2EPageModule', name: 'E2EPage' }, + ] + }) + ], + bootstrap: [IonicApp], + entryComponents: [ + E2EApp, + ] +}) +export class AppModule {} diff --git a/src/components/radio/test/basic/main.ts b/src/components/radio/test/basic/app/main.ts similarity index 100% rename from src/components/radio/test/basic/main.ts rename to src/components/radio/test/basic/app/main.ts diff --git a/src/components/radio/test/basic/main.html b/src/components/radio/test/basic/pages/main/main.html similarity index 100% rename from src/components/radio/test/basic/main.html rename to src/components/radio/test/basic/pages/main/main.html diff --git a/src/components/radio/test/basic/pages/main/main.module.ts b/src/components/radio/test/basic/pages/main/main.module.ts new file mode 100644 index 0000000000..1cc785fd59 --- /dev/null +++ b/src/components/radio/test/basic/pages/main/main.module.ts @@ -0,0 +1,17 @@ +import { NgModule } from '@angular/core'; +import { DeepLinkModule } from '../../../../../..'; + +import { E2EPage } from './main'; + +@NgModule({ + declarations: [ + E2EPage, + ], + imports: [ + DeepLinkModule.forChild(E2EPage) + ], + entryComponents: [ + E2EPage, + ] +}) +export class E2EPageModule {} diff --git a/src/components/radio/test/basic/app.module.ts b/src/components/radio/test/basic/pages/main/main.ts similarity index 76% rename from src/components/radio/test/basic/app.module.ts rename to src/components/radio/test/basic/pages/main/main.ts index f732c39b30..cb19144eda 100644 --- a/src/components/radio/test/basic/app.module.ts +++ b/src/components/radio/test/basic/pages/main/main.ts @@ -1,8 +1,7 @@ -import { Component, NgModule } from '@angular/core'; -import { BrowserModule } from '@angular/platform-browser'; +import { Component } from '@angular/core'; import { FormControl, FormGroup } from '@angular/forms'; -import { IonicApp, IonicModule, RadioButton, RadioGroup } from '../../../..'; +import { RadioButton, RadioGroup } from '../../../../../..'; @Component({ templateUrl: 'main.html' @@ -74,27 +73,3 @@ export class E2EPage { console.log('turtleSelect', radioButton); } } - -@Component({ - template: '' -}) -export class E2EApp { - root = E2EPage; -} - -@NgModule({ - declarations: [ - E2EApp, - E2EPage - ], - imports: [ - BrowserModule, - IonicModule.forRoot(E2EApp) - ], - bootstrap: [IonicApp], - entryComponents: [ - E2EApp, - E2EPage - ] -}) -export class AppModule {}