mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
UI test added
This commit is contained in:
4
apps/app/ui-tests-app/issues/issue-3354.ts
Normal file
4
apps/app/ui-tests-app/issues/issue-3354.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export function clear(args) {
|
||||
const tv = args.object.page.getViewById("tv");
|
||||
tv.text= "";
|
||||
}
|
||||
6
apps/app/ui-tests-app/issues/issue-3354.xml
Normal file
6
apps/app/ui-tests-app/issues/issue-3354.xml
Normal file
@@ -0,0 +1,6 @@
|
||||
<Page xmlns="http://schemas.nativescript.org/tns.xsd">
|
||||
<StackLayout class="p-20">
|
||||
<TextView id="tv" text="" hint="the hint" ></TextView>
|
||||
<Button text="clear text" tap="clear"></Button>
|
||||
</StackLayout>
|
||||
</Page>
|
||||
@@ -23,6 +23,7 @@ export function pageLoaded(args: EventData) {
|
||||
examples.set("1639", "issues/issue-1639");
|
||||
examples.set("1657-ios", "issues/issue-1657-ios");
|
||||
examples.set("tabview-with-scrollview_4022","issues/tabview-with-scrollview_4022");
|
||||
examples.set("3354-ios", "issues/issue-3354");
|
||||
|
||||
let viewModel = new SubMainPageViewModel(wrapLayout, examples);
|
||||
page.bindingContext = viewModel;
|
||||
|
||||
@@ -71,7 +71,7 @@ export class TextView extends EditableTextBase implements TextViewDefinition {
|
||||
private _ios: UITextView;
|
||||
private _delegate: UITextViewDelegateImpl;
|
||||
private _isShowingHint: boolean;
|
||||
public _isEditing: boolean = false;
|
||||
public _isEditing: boolean;
|
||||
|
||||
constructor() {
|
||||
super();
|
||||
|
||||
Reference in New Issue
Block a user