Add UI test for ActionBar page CSS

Verifies #2661
This commit is contained in:
Rossen Hristov
2016-11-07 15:57:00 +02:00
parent 92e47b1e99
commit e502c36f54
7 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,4 @@
ActionBar {
color: blue;
background-color: yellow;
}

View File

@ -0,0 +1,5 @@
import { topmost } from "ui/frame";
export function onTap() {
topmost().goBack();
}

View File

@ -0,0 +1,8 @@
<Page xmlns="http://schemas.nativescript.org/tns.xsd">
<Page.actionBar>
<ActionBar title="blue yellow"/>
</Page.actionBar>
<StackLayout>
<Button text="Back" tap="onTap" />
</StackLayout>
</Page>

View File

@ -0,0 +1,4 @@
ActionBar {
color: red;
background-color: green;
}

View File

@ -0,0 +1,5 @@
import { topmost } from "ui/frame";
export function onTap() {
topmost().navigate("ui-tests-app/issues/issue-2661-second");
}

View File

@ -0,0 +1,8 @@
<Page xmlns="http://schemas.nativescript.org/tns.xsd">
<Page.actionBar>
<ActionBar title="red green"/>
</Page.actionBar>
<StackLayout>
<Button text="Forward" tap="onTap" />
</StackLayout>
</Page>

View File

@ -15,6 +15,7 @@ export function pageLoaded(args: EventData) {
examples.set("2674", "issues/issue-2674");
examples.set("2942", "issues/issue-2942");
examples.set("3007", "issues/issue-3007");
examples.set("2661", "issues/issue-2661");
let viewModel = new SubMainPageViewModel(wrapLayout, examples);
page.bindingContext = viewModel;