Update ui-tests-app

This commit is contained in:
vchimev
2016-04-13 15:16:33 +03:00
parent 7693e3abb7
commit f68d94cc00
2 changed files with 7 additions and 1 deletions

View File

@ -50,5 +50,11 @@ export function butonTap(args) {
btn.style.textDecoration = "none"; btn.style.textDecoration = "none";
textField.style.textDecoration = "none"; textField.style.textDecoration = "none";
textView.style.textDecoration = "none"; textView.style.textDecoration = "none";
if(lbl.text === "Change text") {
lbl.text = btn.text = textField.text = textView.text = "Text changed";
} else {
lbl.text = btn.text = textField.text = textView.text = "Change text";
}
} }
} }

View File

@ -1,6 +1,6 @@
<Page > <Page >
<StackLayout> <StackLayout>
<Button id="ChangeText" automationText="Change text" text="Change text" tap="changeTextButonTap" /> <!--<Button id="ChangeText" automationText="Change text" text="Change text" tap="changeTextButonTap" />-->
<Button id="Change" automationText="Change" text="Change" tap="butonTap" /> <Button id="Change" automationText="Change" text="Change" tap="butonTap" />
<Label id="Label" automationText="Label" text="Label" style.textDecoration="none" /> <Label id="Label" automationText="Label" text="Label" style.textDecoration="none" />
<Button id="Button" automationText="Button" text="Button" style.textDecoration="none" /> <Button id="Button" automationText="Button" text="Button" style.textDecoration="none" />