mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Add "console" module page to ui-tests-app.
This commit is contained in:
29
apps/ui-tests-app/pages/console.ts
Normal file
29
apps/ui-tests-app/pages/console.ts
Normal 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);
|
||||
}
|
||||
10
apps/ui-tests-app/pages/console.xml
Normal file
10
apps/ui-tests-app/pages/console.xml
Normal 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>
|
||||
Reference in New Issue
Block a user