{\r
Tizen.Log.Fatal("NUI.Components", "Button OnFocusLost!!!!!!!!!!!!!!!!!!!!!");\r
ManualTest.Confirm();\r
- }\r
-\r
- public override bool OnTouch(Touch touch)\r
- {
- Tizen.Log.Fatal("NUI.Components", "Button OnTouch!!!!!!!!!!!!!!!!!!!!!");
- ManualTest.Confirm();
- return true;
}
}\r
await ManualTest.WaitForConfirm();\r
_testPage.ClearTestCase(_view);\r
}
- }\r
-\r
- [Test]
- [Category("P1")]
- [Description("Test: Click. Check whether the event will be triggered when user click the button")]
- [Property("SPEC", "Tizen.NUI.Components.Button.OnTouch M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "Zhou Lei, zhouleon.lei@samsung.com")]
- [Precondition(1, "If test on TV, prepare mouse and connect to TV.")]
- [Step(1, "Click run TC")]
- [Step(2, "Click(Touch) the button.")]
- [Step(3, "TC will pass after touch or click.")]
- [Postcondition(1, "NA")]
- public async Task OnTouch_CB()
- {
- _button = new MyButton(new ButtonStyle());
- CreateMyButton(_button, "Click me!");\r
- if (_isWearable)
- {
- _wearTestPage.ExecuteTC(_view);
- }
- else
- {
- _testPage.ExecuteTC(_view);
- }
- FocusManager.Instance.SetCurrentFocusView(_button);
- await ManualTest.WaitForConfirm();
- if (_isWearable)
- {
- _wearTestPage.ClearTestCase(_view);
- }
- else
- {
- _testPage.ClearTestCase(_view);
- }
}
}
}
return true;
}\r
\r
- public override bool OnTouch(Touch touch)\r
- {
- Tizen.Log.Fatal("NUI.Components", "Button OnTouch!!!!!!!!!!!!!!!!!!!!!");
- ManualTest.Confirm();
- return true;
- }\r
-\r
protected override void OnClicked(ClickedEventArgs eventArgs)
{\r
Tizen.Log.Fatal("NUI.Components", "Button OnClick!!!!!!!!!!!!!!!!!!!!!");\r
\r
[Test]
[Category("P1")]
- [Description("Test: Touch. Check whether the event will be triggered when user click(touch) the Switch")]
- [Property("SPEC", "Tizen.NUI.Components.Switch.OnTouch M")]
- [Property("SPEC_URL", "-")]
- [Property("CRITERIA", "MR")]
- [Property("AUTHOR", "Zhou Lei, zhouleon.lei@samsung.com")]
- [Precondition(1, "If test on TV, prepare mouse and connect to TV.")]
- [Step(1, "Click run TC")]
- [Step(2, "Click(Touch) the Switch.")]
- [Step(3, "TC will pass after touch or click.")]
- [Postcondition(1, "NA")]
- public async Task OnTouch_CB()
- {
- CreateSwitch();
- await ManualTest.WaitForConfirm();
- if (_isWearable)
- {
- _wearTestPage.ClearTestCase(_switch);
- }
- else
- {
- _testPage.ClearTestCase(_switch);
- }
- }\r
-\r
- [Test]
- [Category("P1")]
[Description("Test: Click. Check whether the event will be triggered when user press the key of remote-control")]
[Property("SPEC", "Tizen.NUI.Components.Switch.OnKey M")]
[Property("SPEC_URL", "-")]