test(img): fix img tests

This commit is contained in:
Adam Bradley
2016-12-14 15:35:11 -06:00
parent 97ec20e422
commit c38bc42425
12 changed files with 121 additions and 133 deletions

View File

@ -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: [

View File

@ -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;

View File

@ -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: [

View File

@ -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: [