diff --git a/scripts/e2e/e2e.template.html b/scripts/e2e/e2e.template.html index 6994aa6893..3e8ceed0b2 100644 --- a/scripts/e2e/e2e.template.html +++ b/scripts/e2e/e2e.template.html @@ -4,6 +4,7 @@ Ionic E2E + diff --git a/src/components/virtual-scroll/test/basic/index.ts b/src/components/virtual-scroll/test/basic/index.ts index 5467475bd2..0e2196f2d4 100644 --- a/src/components/virtual-scroll/test/basic/index.ts +++ b/src/components/virtual-scroll/test/basic/index.ts @@ -1,5 +1,5 @@ import {Component, ViewChild, ElementRef} from '@angular/core'; -import {ionicBootstrap} from '../../../../../src'; +import {ionicBootstrap, Platform} from '../../../../../src'; @Component({ @@ -7,18 +7,28 @@ import {ionicBootstrap} from '../../../../../src'; }) class E2EPage { items: any[] = []; + webview: string; @ViewChild('content') content: ElementRef; - constructor() { + constructor(platform: Platform) { for (var i = 0; i < 200; i++) { this.items.push({ value: i, someMethod: function() { - return `!!` + return '!!'; } }); } + + if (platform.is('ios')) { + if (window.indexedDB) { + this.webview = ': WKWebView'; + + } else { + this.webview = ': UIWebView'; + } + } } headerFn(record: any, index: number, records: any[]) { diff --git a/src/components/virtual-scroll/test/basic/main.html b/src/components/virtual-scroll/test/basic/main.html index 920548c175..af0c7a7446 100644 --- a/src/components/virtual-scroll/test/basic/main.html +++ b/src/components/virtual-scroll/test/basic/main.html @@ -1,5 +1,5 @@ - Virtual Scroll + Virtual Scroll{{webview}}