--- /dev/null
+/*
+ * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License
+ */
+
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using System;
+using System.Threading.Tasks;
+using Tizen.System;
+
+namespace ElmSharp.Tests {
+
+ [TestFixture]
+ [Description("ElmSharp.Manual Tests")]
+ public class ElmSharpModelName {
+
+ private static string _nameKey = "tizen.org/system/model_name";
+ private static string _name = string.Empty;
+
+ public static string GetModelName()
+ {
+ if(string.IsNullOrEmpty(_name))
+ Information.TryGetValue<string>(_nameKey, out _name);
+
+ return _name;
+ }
+ }
+}
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "UILK")]
[Property("AUTHOR", "Yan Zhao, yan97.zhao@samsung.com")]
- [Precondition(1, "NA")]
+ [Precondition(1, "This test will be automatically passed on TV product due to the difference UX of InputPanel.")]
[Step(1, "Click Run TC")]
[Step(2, "Input Entry.")]
[Step(3, "Check Entry InputPanel is Number type or not.")]
[Postcondition(1, "NA")]
public async Task SetInputPanelLayout_UILK()
{
- CreateEntry();
- _entry.SetInputPanelLayout(InputPanelLayout.NumberOnly);
- // Waits for user confirmation.
- await ManualTest.WaitForConfirm();
+ if ((ElmSharpProfile.GetProfile().CompareTo(ElmSharpProfile.TvProfile) == 0) &&
+ (ElmSharpModelName.GetModelName().CompareTo("xu3") != 0))
+ {
+ _testPage.UnlockUIButton();
+ Assert.Pass("Not Supported");
+ }
+ else
+ {
+ CreateEntry();
+ _entry.SetInputPanelLayout(InputPanelLayout.NumberOnly);
+ // Waits for user confirmation.
+ await ManualTest.WaitForConfirm();
+ }
}
[Test]
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "UILK")]
[Property("AUTHOR", "Yan Zhao, yan97.zhao@samsung.com")]
- [Precondition(1, "NA")]
+ [Precondition(1, "This test will be automatically passed on TV product due to the difference UX of InputPanel.")]
[Step(1, "Click Run TC")]
[Step(2, "Input Entry.")]
[Step(3, "Check the 'return button' in Entry InputPanel shows as 'Done' button")]
[Postcondition(1, "NA")]
public async Task SetInputPanelReturnKeyType_UILK()
{
- CreateEntry();
- _entry.SetInputPanelReturnKeyType(InputPanelReturnKeyType.Done);
- // Waits for user confirmation.
- await ManualTest.WaitForConfirm();
+ if ((ElmSharpProfile.GetProfile().CompareTo(ElmSharpProfile.TvProfile) == 0) &&
+ (ElmSharpModelName.GetModelName().CompareTo("xu3") != 0))
+ {
+ _testPage.UnlockUIButton();
+ Assert.Pass("Not Supported");
+ }
+ else
+ {
+ CreateEntry();
+ _entry.SetInputPanelReturnKeyType(InputPanelReturnKeyType.Done);
+ // Waits for user confirmation.
+ await ManualTest.WaitForConfirm();
+ }
}
[Test]