Skip to content

Commit 0090017

Browse files
committed
test(e2e): fix examples for iOS
Content views (Pages) cannot have multiple children and throw in iOS.
1 parent 16dea30 commit 0090017

File tree

3 files changed

+9
-11
lines changed

3 files changed

+9
-11
lines changed

e2e/renderer/app/content-view.component.ts

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,16 @@ import { Component } from "@angular/core";
99
</ActionItem>
1010
</ActionBar>
1111
12-
<Placeholder *ngIf="show; then thenTemplate else elseTemplate">
13-
</Placeholder>
12+
<StackLayout *ngIf="show; then thenTemplate else elseTemplate">
13+
</StackLayout>
1414
15-
<ContentView>
16-
<ng-template #thenTemplate>
17-
<Label text="Then"></Label>
18-
</ng-template>
15+
<ng-template #thenTemplate>
16+
<Label text="Then"></Label>
17+
</ng-template>
1918
20-
<ng-template #elseTemplate>
21-
<Label text="Else"></Label>
22-
</ng-template>
23-
</ContentView>
19+
<ng-template #elseTemplate>
20+
<Label text="Else"></Label>
21+
</ng-template>
2422
`
2523
})
2624
export class ContentViewComponent {

e2e/renderer/app/images/apple.jpg

-270 KB
Binary file not shown.

e2e/renderer/app/ngif-no-layout.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { Component } from "@angular/core";
88
</ActionItem>
99
</ActionBar>
1010
11-
<Button text="false"></Button>
11+
<Button *ngIf="!show" text="false"></Button>
1212
<ng-template [ngIf]="show">
1313
<Button text="true"></Button>
1414
</ng-template>

0 commit comments

Comments
 (0)