mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 20:33:32 +08:00
test(loading): add another page to the loading test
This commit is contained in:
@ -90,8 +90,12 @@ class E2EPage {
|
|||||||
this.nav.present(loading);
|
this.nav.present(loading);
|
||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.goToPage2();
|
this.nav.push(Page2);
|
||||||
}, 1000);
|
}, 3000);
|
||||||
|
|
||||||
|
setTimeout(() => {
|
||||||
|
this.nav.push(Page3);
|
||||||
|
}, 3000);
|
||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
loading.dismiss();
|
loading.dismiss();
|
||||||
@ -109,10 +113,34 @@ class E2EPage {
|
|||||||
<ion-title>Page 2</ion-title>
|
<ion-title>Page 2</ion-title>
|
||||||
</ion-navbar>
|
</ion-navbar>
|
||||||
<ion-content padding>Some content</ion-content>
|
<ion-content padding>Some content</ion-content>
|
||||||
|
<ion-toolbar position="bottom">
|
||||||
|
<ion-buttons end>
|
||||||
|
<button (click)="goToPage3()">
|
||||||
|
Navigate
|
||||||
|
<ion-icon name="arrow-forward"></ion-icon>
|
||||||
|
</button>
|
||||||
|
</ion-buttons>
|
||||||
|
</ion-toolbar>
|
||||||
`
|
`
|
||||||
})
|
})
|
||||||
class Page2 {
|
class Page2 {
|
||||||
constructor(private nav: NavController, private platform: Platform) {}
|
constructor(private nav: NavController, private platform: Platform) {}
|
||||||
|
|
||||||
|
goToPage3() {
|
||||||
|
this.nav.push(Page3);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Page({
|
||||||
|
template: `
|
||||||
|
<ion-navbar *navbar>
|
||||||
|
<ion-title>Page 3</ion-title>
|
||||||
|
</ion-navbar>
|
||||||
|
<ion-content padding>Some content</ion-content>
|
||||||
|
`
|
||||||
|
})
|
||||||
|
class Page3 {
|
||||||
|
constructor(private nav: NavController, private platform: Platform) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
@App({
|
@App({
|
||||||
|
Reference in New Issue
Block a user