mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 13:32:54 +08:00
test(img): fix img tests
This commit is contained in:
@ -64,9 +64,7 @@ export class E2EApp {
|
||||
E2EPage
|
||||
],
|
||||
imports: [
|
||||
IonicModule.forRoot(E2EApp, {
|
||||
imgWorkerUrl: '/dist/e2e/workers/ion-img-worker.js'
|
||||
})
|
||||
IonicModule.forRoot(E2EApp)
|
||||
],
|
||||
bootstrap: [IonicApp],
|
||||
entryComponents: [
|
||||
|
@ -41,9 +41,7 @@ export class E2EApp {
|
||||
E2EPage
|
||||
],
|
||||
imports: [
|
||||
IonicModule.forRoot(E2EApp, {
|
||||
imgWorkerUrl: '/dist/e2e/workers/ion-img-worker.js'
|
||||
})
|
||||
IonicModule.forRoot(E2EApp)
|
||||
],
|
||||
bootstrap: [IonicApp],
|
||||
entryComponents: [
|
||||
@ -69,7 +67,7 @@ const images = [
|
||||
];
|
||||
|
||||
function getImgSrc() {
|
||||
let src = `../../img/img/${images[rotateImg]}.jpg?${Math.round(Math.random() * 10000000)}`;
|
||||
let src = `../img/${images[rotateImg]}.jpg?${Math.round(Math.random() * 10000000)}`;
|
||||
rotateImg++;
|
||||
if (rotateImg === images.length) rotateImg = 0;
|
||||
return src;
|
||||
|
@ -87,9 +87,7 @@ export class E2EApp {
|
||||
E2EPage
|
||||
],
|
||||
imports: [
|
||||
IonicModule.forRoot(E2EApp, {
|
||||
imgWorkerUrl: '/dist/e2e/workers/ion-img-worker.js'
|
||||
})
|
||||
IonicModule.forRoot(E2EApp)
|
||||
],
|
||||
bootstrap: [IonicApp],
|
||||
entryComponents: [
|
||||
|
@ -116,9 +116,7 @@ export class E2EApp {
|
||||
E2EPage
|
||||
],
|
||||
imports: [
|
||||
IonicModule.forRoot(E2EApp, {
|
||||
imgWorkerUrl: '/dist/e2e/workers/ion-img-worker.js'
|
||||
})
|
||||
IonicModule.forRoot(E2EApp)
|
||||
],
|
||||
bootstrap: [IonicApp],
|
||||
entryComponents: [
|
||||
|
Reference in New Issue
Block a user