test(img): update img tests w/ relative urls and external worker

This commit is contained in:
Adam Bradley
2016-12-08 22:35:17 -06:00
parent 975eaa8aeb
commit ac9e9eff7e
13 changed files with 137 additions and 121 deletions

View File

@ -60,7 +60,9 @@ export class E2EApp {
E2EPage
],
imports: [
IonicModule.forRoot(E2EApp)
IonicModule.forRoot(E2EApp, {
imgWorkerUrl: '/dist/e2e/workers/ion-img-worker.js'
})
],
bootstrap: [IonicApp],
entryComponents: [

View File

@ -41,7 +41,9 @@ export class E2EApp {
E2EPage
],
imports: [
IonicModule.forRoot(E2EApp)
IonicModule.forRoot(E2EApp, {
imgWorkerUrl: '/dist/e2e/workers/ion-img-worker.js'
})
],
bootstrap: [IonicApp],
entryComponents: [

View File

@ -87,7 +87,9 @@ export class E2EApp {
E2EPage
],
imports: [
IonicModule.forRoot(E2EApp)
IonicModule.forRoot(E2EApp, {
imgWorkerUrl: '/dist/e2e/workers/ion-img-worker.js'
})
],
bootstrap: [IonicApp],
entryComponents: [

View File

@ -116,7 +116,9 @@ export class E2EApp {
E2EPage
],
imports: [
IonicModule.forRoot(E2EApp)
IonicModule.forRoot(E2EApp, {
imgWorkerUrl: '/dist/e2e/workers/ion-img-worker.js'
})
],
bootstrap: [IonicApp],
entryComponents: [

View File

@ -26,13 +26,13 @@
<ion-item class="item-text-wrap" *virtualItem="let item; let itemBounds = bounds;">
<ion-thumbnail item-left>
<ion-img src="{{item.url}}" [bounds]="itemBounds"></ion-img>
<ion-img [src]="item.url" [bounds]="itemBounds"></ion-img>
</ion-thumbnail>
<h2 class="text-wrap">{{item.id}}, top: {{itemBounds.top}}, bottom: {{itemBounds.bottom}}, height: {{itemBounds.height}}</h2>
<!--<ion-thumbnail item-right>
<ion-img src="{{item.gif}}" [bounds]="itemBounds"></ion-img>
<ion-img [src]="item.gif" [bounds]="itemBounds"></ion-img>
</ion-thumbnail>-->
</ion-item>