From 14c7bc29a13f5c77bb9f7861164b3414bb11aa82 Mon Sep 17 00:00:00 2001 From: Adam Bradley Date: Wed, 8 Jun 2016 23:19:57 -0500 Subject: [PATCH] test(): add apple-mobile-web-app-capable metatag --- scripts/e2e/e2e.template.html | 1 + .../virtual-scroll/test/basic/index.ts | 16 +++++++++++++--- .../virtual-scroll/test/basic/main.html | 2 +- src/components/virtual-scroll/virtual-scroll.ts | 2 +- 4 files changed, 16 insertions(+), 5 deletions(-) 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}}