Add "console" module page to ui-tests-app.

This commit is contained in:
Vasil Chimev
2015-06-02 15:34:03 +03:00
parent 812db046b3
commit 927fdcc6f1
3 changed files with 42 additions and 1 deletions

View File

@@ -0,0 +1,29 @@
export function pageLoaded() {
console.log("### TEST START ###.");
onTapTrue();
onTapFalse();
onTapText();
onTapNull();
onTapUndefined();
console.log("### TEST END ###.");
}
export function onTapTrue() {
console.log(true);
}
export function onTapFalse() {
console.log(false);
}
export function onTapText() {
console.log("text");
}
export function onTapNull() {
console.log(null);
}
export function onTapUndefined() {
console.log(undefined);
}

View File

@@ -0,0 +1,10 @@
<Page xmlns="http://www.nativescript.org/tns.xsd" loaded="pageLoaded">
<StackLayout orientation="vertical">
<Label text="console.log()" id="label" />
<Button text="true" tap="onTapTrue" />
<Button text="false" tap="onTapFalse" />
<Button text="text" tap="onTapText" />
<Button text="null" tap="onTapNull" />
<Button text="undefined" tap="onTapUndefined" />
</StackLayout>
</Page>