Skip to content

Commit

Permalink
test(): add apple-mobile-web-app-capable metatag
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdbradley committed Jun 9, 2016
1 parent 1188730 commit 14c7bc2
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
1 change: 1 addition & 0 deletions scripts/e2e/e2e.template.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<title>Ionic E2E</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="yes">

<!-- using relative paths in order for snapshot e2e tests to also work -->
<link id="iosLink" ios-href="../../../bundles/ionic.ios.css" rel="stylesheet">
Expand Down
16 changes: 13 additions & 3 deletions src/components/virtual-scroll/test/basic/index.ts
Original file line number Diff line number Diff line change
@@ -1,24 +1,34 @@
import {Component, ViewChild, ElementRef} from '@angular/core';
import {ionicBootstrap} from '../../../../../src';
import {ionicBootstrap, Platform} from '../../../../../src';


@Component({
templateUrl: 'main.html'
})
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[]) {
Expand Down
2 changes: 1 addition & 1 deletion src/components/virtual-scroll/test/basic/main.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<ion-navbar *navbar>
<ion-title>Virtual Scroll</ion-title>
<ion-title>Virtual Scroll{{webview}}</ion-title>
<ion-buttons end>
<button (click)="reload()">
Reload
Expand Down
2 changes: 1 addition & 1 deletion src/components/virtual-scroll/virtual-scroll.ts
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ export class VirtualScroll implements DoCheck, AfterContentInit, OnDestroy {

if (madeChanges) {
// do not update images while scrolling
this._imgs.toArray().forEach(img => {
this._imgs.forEach(img => {
img.enable(false);
});

Expand Down

0 comments on commit 14c7bc2

Please sign in to comment.