mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 20:11:24 +08:00
Merge pull request #2722 from NativeScript/tsenov/uitests-app-mainpage
Update ui-tests-app
This commit is contained in:
@ -1,5 +1,5 @@
|
|||||||
import pageModule = require("ui/page");
|
import buttonModule = require("ui/button");
|
||||||
import buttonModule = require("ui/button");
|
import pageModule = require("ui/page");
|
||||||
import textFieldModule = require("ui/text-field");
|
import textFieldModule = require("ui/text-field");
|
||||||
import stackLayoutModule = require("ui/layouts/stack-layout");
|
import stackLayoutModule = require("ui/layouts/stack-layout");
|
||||||
import observableModule = require("data/observable");
|
import observableModule = require("data/observable");
|
||||||
@ -20,14 +20,14 @@ export function createPage() {
|
|||||||
targetTwoWay.id = "textFieldTwoWay";
|
targetTwoWay.id = "textFieldTwoWay";
|
||||||
buttonOneWay.id = "buttonOneWay";
|
buttonOneWay.id = "buttonOneWay";
|
||||||
buttonTwoWay.id = "buttonTwoWay";
|
buttonTwoWay.id = "buttonTwoWay";
|
||||||
|
buttonSetText.id = "buttonSetText";
|
||||||
|
|
||||||
targetOneWay.automationText = "textFieldOneWay";
|
targetOneWay.automationText = "textFieldOneWay";
|
||||||
targetTwoWay.automationText = "textFieldTwoWay";
|
targetTwoWay.automationText = "textFieldTwoWay";
|
||||||
buttonOneWay.automationText = "buttonOneWay";
|
|
||||||
buttonTwoWay.automationText = "buttonTwoWay";
|
|
||||||
|
|
||||||
buttonSetText.id = "buttonSetText";
|
|
||||||
buttonSetText.automationText = "buttonSetText";
|
buttonSetText.automationText = "buttonSetText";
|
||||||
|
//buttonOneWay.automationText = "buttonOneWay";
|
||||||
|
//buttonTwoWay.automationText = "buttonTwoWay";
|
||||||
|
|
||||||
buttonSetText.text = "SetText";
|
buttonSetText.text = "SetText";
|
||||||
buttonSetText.on(buttonModule.Button.tapEvent, function () {
|
buttonSetText.on(buttonModule.Button.tapEvent, function () {
|
||||||
targetOneWay.text = "Test";
|
targetOneWay.text = "Test";
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<StackLayout>
|
<StackLayout>
|
||||||
<StackLayout loaded="stack0Loaded" orientation="horizontal">
|
<StackLayout loaded="stack0Loaded" orientation="horizontal">
|
||||||
<TextField id="tf" automationText="tf" text="{{ textSource }}" width="150" />
|
<TextField id="tf" automationText="tf" text="{{ textSource }}" width="150" />
|
||||||
<Button id="btn" automationText="btn" width="150" />
|
<Button id="btn" width="150" />
|
||||||
</StackLayout>
|
</StackLayout>
|
||||||
<StackLayout loaded="stack1Loaded">
|
<StackLayout loaded="stack1Loaded">
|
||||||
<Label id="label" automationText="label" text="{{ text }}" />
|
<Label id="label" automationText="label" text="{{ text }}" />
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
<Page >
|
<Page >
|
||||||
<StackLayout>
|
<StackLayout>
|
||||||
<Button id="ChangeText" automationText="Change text" text="Change text" tap="changeTextButonTap" />
|
<Button id="ChangeText" text="Change text" tap="changeTextButonTap" />
|
||||||
<Button id="Change" automationText="Change" text="Change" tap="butonTap" />
|
<Button id="Change" text="Change" tap="butonTap" />
|
||||||
<Label id="Label" automationText="Label" text="label Label" style.textTransform="none" />
|
<Label id="Label" text="label Label" style.textTransform="none" />
|
||||||
<Button id="Button" automationText="Button" text="button Button" style.textTransform="none" />
|
<Button id="Button" text="button Button" style.textTransform="none" />
|
||||||
<TextField id="TextField" automationText="TextField" text="textField textField" style.textTransform="none" />
|
<TextField id="TextField" text="textField textField" style.textTransform="none" />
|
||||||
<TextView id="TextView" automationText="TextView" text="textView textView" style.textTransform="none" />
|
<TextView id="TextView" text="textView textView" style.textTransform="none" />
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
<Label text="label label" style="text-transform:none" />
|
<Label text="label label" style="text-transform:none" />
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<Page loaded="pageLoaded">
|
<Page loaded="pageLoaded">
|
||||||
<StackLayout>
|
<StackLayout>
|
||||||
<Label text="{{ name }}" id="label" automationText="label" style="text-align:center;" />
|
<Label text="{{ name }}" id="label" style="text-align:center;" />
|
||||||
<Button text="action" tap="{{ actionName }}" />
|
<Button text="action" tap="{{ actionName }}" />
|
||||||
<Button text="alert" tap="{{ alertName }}" />
|
<Button text="alert" tap="{{ alertName }}" />
|
||||||
<Button text="confirm" tap="{{ confirmName }}" />
|
<Button text="confirm" tap="{{ confirmName }}" />
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<Page xmlns="http://schemas.nativescript.org/tns.xsd" loaded="pageLoaded">
|
<Page xmlns="http://schemas.nativescript.org/tns.xsd" loaded="pageLoaded">
|
||||||
<StackLayout>
|
<StackLayout>
|
||||||
<Label id="label" automationText="label" />
|
<Label id="label"/>
|
||||||
<Button text="æøå" />
|
<Button text="æøå" />
|
||||||
</StackLayout>
|
</StackLayout>
|
||||||
</Page>
|
</Page>
|
@ -6,10 +6,10 @@
|
|||||||
"nativescript": {
|
"nativescript": {
|
||||||
"id": "org.nativescript.apps",
|
"id": "org.nativescript.apps",
|
||||||
"tns-ios": {
|
"tns-ios": {
|
||||||
"version": "2.2.1"
|
"version": "2.3.0"
|
||||||
},
|
},
|
||||||
"tns-android": {
|
"tns-android": {
|
||||||
"version": "2.2.0"
|
"version": "2.3.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
Reference in New Issue
Block a user