mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 13:32:54 +08:00
test(img): update img tests w/ relative urls and external worker
This commit is contained in:
@ -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: [
|
||||
|
@ -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: [
|
||||
|
@ -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: [
|
||||
|
@ -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: [
|
||||
|
@ -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>
|
||||
|
||||
|
Reference in New Issue
Block a user