btn.Focusable = true;\r
btn.Text = text;
btn.Name = position.ToString();\r
- btn.PointSize = (Window.Instance.Size.Width / Window.Instance.Dpi.Length()) * 1.06f;\r
- btn.Size = new Size(Window.Instance.Size.Width * 0.4f, Window.Instance.Size.Height * 0.046f);
+ btn.PointSize = ManualTest.GetPointSize();\r
+ btn.Size = new Size(Window.Instance.Size.Width, Window.Instance.Size.Height * 0.046f);
btn.Style.Text.TextColor = new Color(0, 0, 0, 1);\r
btn.Style.ImageShadow = new ImageShadow\r
{
private const string STEP_ATTRIBUTE_NAME = "NUnit.Framework.StepAttribute";
private const string PRECONDITION_ATTRIBUTE_NAME = "NUnit.Framework.PreconditionAttribute";
private const string POSTCONDITION_ATTRIBUTE_NAME = "NUnit.Framework.PostconditionAttribute";
- private List<string> _listNotPass;
private ToastMessage _toastMessage;
- //For TV KantM
- //private static float PointSize = 30.0f;
- //private static float ButtonSizeWidth = 200;
+ //For TV
private float _pointSize = 20.0f;
//Save the information of every single test case
private List<TestcaseInfo> _tcInfoList;
private List<string> _currentTCInfo;
+ private List<string> _listNotPass;
private static ManualTestComponents _instance;
private static Object _lockObject = new object();
Window.Instance.BackgroundColor = Color.White;
_toastMessage = new ToastMessage();
- _pointSize = (Window.Instance.Size.Width / Window.Instance.Dpi.Length()) * 1.06f;
+ _pointSize = ManualTest.GetPointSize();
RunType.Value = RunType.MANUAL;
_tRunner = new TRunner();
_tRunner.LoadTestsuite();
_tRunner.SingleTestDone += OnSingleTestDone;
- _listNotPass = new List<string>();
_tcIDList = new List<string>();
_listItem = new List<ItemData>();
- _listNotPass = TSettings.GetInstance().GetNotPassListManual();
- int count = 0;
- foreach (var tc in _listNotPass)
- {
- _listItem.Add(new ItemData { No = count, TCName = tc, Result = StrResult.NOTRUN });
- _tcIDList.Add(tc);
- count++;
+ _listNotPass = TSettings.GetInstance().GetNotPassListManual();\r
+ int count = 0;\r
+ if (_listNotPass.Count == 0)\r
+ {\r
+ foreach (KeyValuePair<string, ITest> pair in _tRunner.GetTestList())\r
+ {\r
+ count++;\r
+ _listItem.Add(new ItemData { No = count, TCName = pair.Key, Result = StrResult.NOTRUN });\r
+ _tcIDList.Add(pair.Key);\r
+ }\r
+ }\r
+ else\r
+ {\r
+ foreach (var tc in _listNotPass)\r
+ {\r
+ count++;\r
+ _listItem.Add(new ItemData { No = count, TCName = tc, Result = StrResult.NOTRUN });\r
+ _tcIDList.Add(tc);\r
+ }\r
}
+
Tizen.Log.Fatal("NUI.Components", "TCT : count:" + count.ToString());
foreach (String nameTc in _tcIDList)
{
btn.Focusable = true;
btn.Text = text;\r
btn.PointSize = _pointSize;\r
- btn.Size = new Size(Window.Instance.Size.Width * 0.06f, Window.Instance.Size.Height * 0.046f);\r
+ float buttonWidth = ManualTest.IsMobile() ? Window.Instance.Size.Width * 0.18f : Window.Instance.Size.Width * 0.06f;\r
+ btn.Size = new Size(buttonWidth, Window.Instance.Size.Height * 0.046f);\r
btn.Style.Text.TextColor = new Color(0, 0, 0, 1);\r
btn.Style.ImageShadow = new ImageShadow
{\r
\r
//To show all the test case information(Number _className._TCName [result]).\r
_initList = new FlexibleView();\r
- _initList.Size = new Size(Window.Instance.Size.Width * 0.4f, Window.Instance.Size.Height * 0.74f);\r
+ _initList.Size = new Size(Window.Instance.Size.Width, Window.Instance.Size.Height * 0.74f);\r
_adapter = new ListBridge(_tcIDList, _listItem);\r
_initList.SetAdapter(_adapter);\r
LinearLayoutManager layoutManager = new LinearLayoutManager(LinearLayoutManager.VERTICAL);\r
void CreateButtons()
{
_notRun = new TextLabel();
- _notRun.HorizontalAlignment = HorizontalAlignment.Begin;
+ _notRun.HorizontalAlignment = HorizontalAlignment.Center;
+ _notRun.VerticalAlignment = VerticalAlignment.Center;
_notRun.PointSize = _pointSize;
_notRun.Text = "Not Run";
- _notRun.Size = new Size(Window.Instance.Size.Width * 0.06f, Window.Instance.Size.Height * 0.046f);
+ float buttonWidth = ManualTest.IsMobile() ? Window.Instance.Size.Width * 0.18f : Window.Instance.Size.Width * 0.06f;
+ _notRun.Size = new Size(buttonWidth, Window.Instance.Size.Height * 0.046f);
_passButton = new Button();
SetCommonButtonStyle(_passButton, "Pass");
}
};
- _runButton.DownFocusableView = _homeButton;
- _homeButton.UpFocusableView = _runButton;
+ _passButton.RightFocusableView = _failButton;
+ _passButton.DownFocusableView = _homeButton;
+ _failButton.LeftFocusableView = _passButton;
+ _failButton.RightFocusableView = _blockButton;\r
+ _blockButton.LeftFocusableView = _failButton;
+ _blockButton.RightFocusableView = _runButton;
+ _blockButton.DownFocusableView = _preButton;
+ _runButton.LeftFocusableView = _blockButton;
+ _runButton.DownFocusableView = _nextButton;\r
+ _homeButton.UpFocusableView = _passButton;
_homeButton.RightFocusableView = _preButton;
- _preButton.UpFocusableView = _runButton;
+ _preButton.UpFocusableView = _blockButton;
_preButton.LeftFocusableView = _homeButton;
_preButton.RightFocusableView = _nextButton;
_nextButton.UpFocusableView = _runButton;
ResultNumber.Fail = 0;
ResultNumber.Block = 0;
_tcInfoList = new List<TestcaseInfo>();
- foreach (var testcaseItem in _listItem)
- {
- foreach (KeyValuePair<string, ITest> pair in _tRunner.GetTestList())
- {
- if (testcaseItem.TCName.Equals(pair.Key))
- {
- List<string> preconditions = new List<string>();
- preconditions.Add("Preconditions:");
- List<string> steps = new List<string>();
- steps.Add("Steps:");
- List<string> postconditions = new List<string>();
- postconditions.Add("Postconditions:\n");
- IEnumerator<CustomAttributeData> customAttributes = pair.Value.Method.MethodInfo.CustomAttributes.GetEnumerator();
- while (customAttributes.MoveNext())
- {
- if (customAttributes.Current.AttributeType.FullName.Equals(STEP_ATTRIBUTE_NAME))
- {
- steps.Add(customAttributes.Current.ConstructorArguments[0].Value + "." + customAttributes.Current.ConstructorArguments[1].Value);
- }
- else if (customAttributes.Current.AttributeType.FullName.Equals(PRECONDITION_ATTRIBUTE_NAME))
- {
- preconditions.Add(customAttributes.Current.ConstructorArguments[0].Value + "." + customAttributes.Current.ConstructorArguments[1].Value);
- }
- else if (customAttributes.Current.AttributeType.FullName.Equals(POSTCONDITION_ATTRIBUTE_NAME))
- {
- postconditions.Add(customAttributes.Current.ConstructorArguments[0].Value + "." + customAttributes.Current.ConstructorArguments[1].Value);
- }
- }
- _tcInfoList.Add(new TestcaseInfo
- {
- TestcaseName = pair.Key,
- Preconditions = preconditions,
- Steps = steps,
- Postconditions = postconditions,
- });
- break;
- }
- }
- UpdateCurrentTCInfo();
+ foreach (var testcaseItem in _listItem)\r
+ {\r
+ foreach (KeyValuePair<string, ITest> pair in _tRunner.GetTestList())\r
+ {\r
+ if (testcaseItem.TCName.Equals(pair.Key))\r
+ {\r
+ IEnumerator<CustomAttributeData> customAttributes = pair.Value.Method.MethodInfo.CustomAttributes.GetEnumerator();\r
+ List<string> preconditions = new List<string>();\r
+ preconditions.Add("Preconditions:");\r
+ List<string> steps = new List<string>();\r
+ steps.Add("Steps:");\r
+ List<string> postconditions = new List<string>();\r
+ postconditions.Add("Postconditions:\n");\r
+\r
+ while (customAttributes.MoveNext())\r
+ {\r
+ if (customAttributes.Current.AttributeType.FullName.Equals(STEP_ATTRIBUTE_NAME))\r
+ {\r
+ steps.Add(customAttributes.Current.ConstructorArguments[0].Value + "." + customAttributes.Current.ConstructorArguments[1].Value);\r
+ }\r
+ else if (customAttributes.Current.AttributeType.FullName.Equals(PRECONDITION_ATTRIBUTE_NAME))\r
+ {\r
+ preconditions.Add(customAttributes.Current.ConstructorArguments[0].Value + "." + customAttributes.Current.ConstructorArguments[1].Value);\r
+ }\r
+ else if (customAttributes.Current.AttributeType.FullName.Equals(POSTCONDITION_ATTRIBUTE_NAME))\r
+ {\r
+ postconditions.Add(customAttributes.Current.ConstructorArguments[0].Value + "." + customAttributes.Current.ConstructorArguments[1].Value);\r
+ }\r
+ }\r
+\r
+ _tcInfoList.Add(new TestcaseInfo\r
+ {\r
+ TestcaseName = pair.Key,\r
+ Preconditions = preconditions,\r
+ Steps = steps,\r
+ Postconditions = postconditions,\r
+ });\r
+ break;\r
+ }\r
+ }\r
}
+ UpdateCurrentTCInfo();
}
//The data in CurrentTCInfo list will be show in _detailList.
return false;
}
+ public static float GetPointSize()\r
+ {
+ float retValue = 10.0f; //default
+ string value;
+ Tizen.System.Information.TryGetValue("tizen.org/feature/profile", out value);
+ switch (value)\r
+ {
+ case "wearable":
+ retValue = 4.0f;
+ break;\r
+ case "mobile":
+ retValue = 5.0f;
+ break;\r
+ case "tv":
+ retValue = 20.0f;
+ break;
+ }
+ return retValue;
+ }
+
public static TextLabel CreateLabel(string information)
{
TextLabel mLabel = new TextLabel();
private ManualTestComponents _testPage;
private WearableManualTestNUI _wearTestPage;
private Components.Button _button;
- private float _pointSize = (Window.Instance.Size.Width / Window.Instance.Dpi.Length()) * 1.06f;
+ private float _pointSize = 20.0f;
[SetUp]
public void Init()
}
else
{
+ _pointSize = ManualTest.GetPointSize();
_testPage = ManualTestComponents.GetInstance();
}
}
private WearableManualTestNUI _wearTestPage;
private Popup _popup;
- private float _pointSize = (Window.Instance.Size.Width / Window.Instance.Dpi.Length()) * 1.06f;
+ private float _pointSize = 20.0f;
private string _resourcePath = Tizen.Applications.Application.Current.DirectoryInfo.Resource;
[SetUp]
}
else
{
+ _pointSize = ManualTest.GetPointSize();
_testPage = ManualTestComponents.GetInstance();
}
}
private Window _window;
private View _view;
private Button _button;
- private float _pointSize = (Window.Instance.Size.Width / Window.Instance.Dpi.Length()) * 1.06f;
+ private float _pointSize = 20.0f;
private TextLabel _label;
private Slider _slider;
if (ManualTest.IsWearable())
{
_label = ManualTest.CreateLabel("This case is unsuitable for wearable, please press PASS button to continue!");
- _pointSize = (Window.Instance.Size.Width / Window.Instance.Dpi.Length()) * 0.28f;
_wearTestPage = WearableManualTestNUI.GetInstance();
}
else
{
_testPage = ManualTestComponents.GetInstance();
}\r
+ _pointSize = ManualTest.GetPointSize();\r
\r
_view = new View();
_view.Size = new Size2D(Window.Instance.Size.Width, (int)(Window.Instance.Size.Height * 0.8));\r
btn.Focusable = true;
btn.Text = text;
btn.Name = position.ToString();
- btn.PointSize = (Window.Instance.Size.Width / Window.Instance.Dpi.Length()) * 1.06f;
- btn.Size = new Size(Window.Instance.Size.Width * 0.4f, Window.Instance.Size.Height * 0.046f);
+ btn.PointSize = ManualTest.GetPointSize();
+ btn.Size = new Size(Window.Instance.Size.Width, Window.Instance.Size.Height * 0.046f);
btn.Style.Text.TextColor = new Color(0, 0, 0, 1);
btn.Style.ImageShadow = new ImageShadow
{
private const string POSTCONDITION_ATTRIBUTE_NAME = "NUnit.Framework.PostconditionAttribute";
private List<string> _listNotPass;
private ToastMessage _toastMessage;
- //For TV KantM
- //private static float PointSize = 30.0f;
- //private static float ButtonSizeWidth = 200;
+ //For TV
private float _pointSize = 20.0f;
//Save the information of every single test case
Window.Instance.BackgroundColor = Color.White;
_toastMessage = new ToastMessage();
- _pointSize = (Window.Instance.Size.Width / Window.Instance.Dpi.Length()) * 1.06f;
+ _pointSize = ManualTest.GetPointSize();
RunType.Value = RunType.MANUAL;
_tRunner = new TRunner();
_tRunner.LoadTestsuite();
_tRunner.SingleTestDone += OnSingleTestDone;
- _listNotPass = new List<string>();
_tcIDList = new List<string>();
_listItem = new List<ItemData>();
_listNotPass = TSettings.GetInstance().GetNotPassListManual();
int count = 0;
- foreach (var tc in _listNotPass)
+ if (_listNotPass.Count == 0)
{
- _listItem.Add(new ItemData { No = count, TCName = tc, Result = StrResult.NOTRUN });
- _tcIDList.Add(tc);
- count++;
+ foreach (KeyValuePair<string, ITest> pair in _tRunner.GetTestList())
+ {
+ count++;
+ _listItem.Add(new ItemData { No = count, TCName = pair.Key, Result = StrResult.NOTRUN });
+ _tcIDList.Add(pair.Key);
+ }
+ }
+ else
+ {
+ foreach (var tc in _listNotPass)
+ {
+ count++;
+ _listItem.Add(new ItemData { No = count, TCName = tc, Result = StrResult.NOTRUN });
+ _tcIDList.Add(tc);
+ }
}
Tizen.Log.Fatal("NUI", "TCT : count:" + count.ToString());
foreach (String nameTc in _tcIDList)
btn.Focusable = true;
btn.Text = text;
btn.PointSize = _pointSize;
- btn.Size = new Size(Window.Instance.Size.Width * 0.06f, Window.Instance.Size.Height * 0.046f);
+ float buttonWidth = ManualTest.IsMobile() ? Window.Instance.Size.Width * 0.18f : Window.Instance.Size.Width * 0.06f;
+ btn.Size = new Size(buttonWidth, Window.Instance.Size.Height * 0.046f);
btn.Style.Text.TextColor = new Color(0, 0, 0, 1);
btn.Style.ImageShadow = new ImageShadow
{
//To show all the test case information(Number _className._TCName [result]).
_initList = new FlexibleView();
_initList.Position = new Position(0, Window.Instance.Size.Height * 0.0925f);
- _initList.Size = new Size(Window.Instance.Size.Width * 0.5f, Window.Instance.Size.Height * 0.79f);
+ _initList.Size = new Size(Window.Instance.Size.Width, Window.Instance.Size.Height * 0.74f);
_adapter = new ListBridge(_tcIDList, _listItem);
_initList.SetAdapter(_adapter);
LinearLayoutManager layoutManager = new LinearLayoutManager(LinearLayoutManager.VERTICAL);
void CreateButtons()
{
_notRun = new TextLabel();
- _notRun.HorizontalAlignment = HorizontalAlignment.Begin;
+ _notRun.HorizontalAlignment = HorizontalAlignment.Center;
+ _notRun.VerticalAlignment = VerticalAlignment.Center;
_notRun.PointSize = _pointSize;
_notRun.Text = "Not Run";
- _notRun.Size = new Size(Window.Instance.Size.Width * 0.06f, Window.Instance.Size.Height * 0.046f);
+ float buttonWidth = ManualTest.IsMobile() ? Window.Instance.Size.Width * 0.18f : Window.Instance.Size.Width * 0.06f;
+ _notRun.Size = new Size(buttonWidth, Window.Instance.Size.Height * 0.046f);
_passButton = new Button();
SetCommonButtonStyle(_passButton, "Pass");
}
};
- _runButton.DownFocusableView = _homeButton;
- _homeButton.UpFocusableView = _runButton;
+ _passButton.RightFocusableView = _failButton;
+ _passButton.DownFocusableView = _homeButton;
+ _failButton.LeftFocusableView = _passButton;
+ _failButton.RightFocusableView = _blockButton;\r
+ _blockButton.LeftFocusableView = _failButton;
+ _blockButton.RightFocusableView = _runButton;
+ _blockButton.DownFocusableView = _preButton;
+ _runButton.LeftFocusableView = _blockButton;
+ _runButton.DownFocusableView = _nextButton;
+ _homeButton.UpFocusableView = _passButton;
_homeButton.RightFocusableView = _preButton;
- _preButton.UpFocusableView = _runButton;
+ _preButton.UpFocusableView = _blockButton;
_preButton.LeftFocusableView = _homeButton;
_preButton.RightFocusableView = _nextButton;
_nextButton.UpFocusableView = _runButton;
ResultNumber.Fail = 0;
ResultNumber.Block = 0;
_tcInfoList = new List<TestcaseInfo>();
- foreach (var testcaseItem in _listItem)
- {
- foreach (KeyValuePair<string, ITest> pair in _tRunner.GetTestList())
- {
- if (testcaseItem.TCName.Equals(pair.Key))
- {
- List<string> preconditions = new List<string>();
+ foreach (var testcaseItem in _listItem)\r
+ {\r
+ foreach (KeyValuePair<string, ITest> pair in _tRunner.GetTestList())\r
+ {\r
+ if (testcaseItem.TCName.Equals(pair.Key))\r
+ {\r
+ IEnumerator<CustomAttributeData> customAttributes = pair.Value.Method.MethodInfo.CustomAttributes.GetEnumerator();\r
+ List<string> preconditions = new List<string>();\r
preconditions.Add("Preconditions:");
- List<string> steps = new List<string>();
+ List<string> steps = new List<string>();\r
steps.Add("Steps:");
- List<string> postconditions = new List<string>();
+ List<string> postconditions = new List<string>();\r
postconditions.Add("Postconditions:\n");
- IEnumerator<CustomAttributeData> customAttributes = pair.Value.Method.MethodInfo.CustomAttributes.GetEnumerator();
- while (customAttributes.MoveNext())
- {
- if (customAttributes.Current.AttributeType.FullName.Equals(STEP_ATTRIBUTE_NAME))
- {
- steps.Add(customAttributes.Current.ConstructorArguments[0].Value + "." + customAttributes.Current.ConstructorArguments[1].Value);
- }
- else if (customAttributes.Current.AttributeType.FullName.Equals(PRECONDITION_ATTRIBUTE_NAME))
- {
- preconditions.Add(customAttributes.Current.ConstructorArguments[0].Value + "." + customAttributes.Current.ConstructorArguments[1].Value);
- }
- else if (customAttributes.Current.AttributeType.FullName.Equals(POSTCONDITION_ATTRIBUTE_NAME))
- {
- postconditions.Add(customAttributes.Current.ConstructorArguments[0].Value + "." + customAttributes.Current.ConstructorArguments[1].Value);
- }
- }
- _tcInfoList.Add(new TestcaseInfo
- {
- TestcaseName = pair.Key,
- Preconditions = preconditions,
- Steps = steps,
- Postconditions = postconditions,
- });
- break;
- }
- }
- UpdateCurrentTCInfo();
+\r
+ while (customAttributes.MoveNext())\r
+ {\r
+ if (customAttributes.Current.AttributeType.FullName.Equals(STEP_ATTRIBUTE_NAME))\r
+ {\r
+ steps.Add(customAttributes.Current.ConstructorArguments[0].Value + "." + customAttributes.Current.ConstructorArguments[1].Value);\r
+ }\r
+ else if (customAttributes.Current.AttributeType.FullName.Equals(PRECONDITION_ATTRIBUTE_NAME))\r
+ {\r
+ preconditions.Add(customAttributes.Current.ConstructorArguments[0].Value + "." + customAttributes.Current.ConstructorArguments[1].Value);\r
+ }\r
+ else if (customAttributes.Current.AttributeType.FullName.Equals(POSTCONDITION_ATTRIBUTE_NAME))\r
+ {\r
+ postconditions.Add(customAttributes.Current.ConstructorArguments[0].Value + "." + customAttributes.Current.ConstructorArguments[1].Value);\r
+ }\r
+ }\r
+\r
+ _tcInfoList.Add(new TestcaseInfo\r
+ {\r
+ TestcaseName = pair.Key,\r
+ Preconditions = preconditions,\r
+ Steps = steps,\r
+ Postconditions = postconditions,\r
+ });\r
+ break;\r
+ }\r
+ }\r
}
+ UpdateCurrentTCInfo();
}
//The data in CurrentTCInfo list will be show in _detailList.
}
return false;
+ }\r
+\r
+ public static float GetPointSize()
+ {
+ float retValue = 10.0f; //default
+ string value;
+ Tizen.System.Information.TryGetValue("tizen.org/feature/profile", out value);
+ switch (value)
+ {
+ case "wearable":
+ retValue = 4.0f;
+ break;
+ case "mobile":
+ retValue = 5.0f;
+ break;
+ case "tv":
+ retValue = 20.0f;
+ break;
+ }
+ return retValue;
}
public static TextLabel CreateLabel(string information)
private WearableManualTestNUI _wearTestPage;
private Button _button1;
private FocusManager _focusManager;
- private float _pointSize = (Window.Instance.Size.Width / Window.Instance.Dpi.Length()) * 1.06f;
+ private float _pointSize = 20.0f;
private TextLabel _label;
[SetUp]
}
else
{
+ _pointSize = ManualTest.GetPointSize();
_testPage = ManualTestNUI.GetInstance();
}
}
private WearableManualTestNUI _wearTestPage;
private Window _window;
private Button _button;
- private float _pointSize = (Window.Instance.Size.Width / Window.Instance.Dpi.Length()) * 1.06f;
+ private float _pointSize = 20.0f;
private TextLabel _label;
private TextEditor _textEditor;
}
else
{
+ _pointSize = ManualTest.GetPointSize();
_testPage = ManualTestNUI.GetInstance();
}
}
{
private ManualTestNUI _testPage;
private WearableManualTestNUI _wearTestPage;
- private float _pointSize = (Window.Instance.Size.Width / Window.Instance.Dpi.Length()) * 1.06f;
private bool _isMobile = false;
private bool _isWearable = false;
private bool _isEmulator = false;
if(ManualTest.IsWearable())
{
- _pointSize = 4.0f;
_wearTestPage = WearableManualTestNUI.GetInstance();
}
else
private WearableManualTestNUI _wearTestPage;
private Window _window;
private Button _button;
- private float _pointSize = (Window.Instance.Size.Width / Window.Instance.Dpi.Length()) * 1.06f;
+ private float _pointSize = 20.0f;
private TextLabel _label;
[SetUp]
}
else
{
+ _pointSize = ManualTest.GetPointSize();
_testPage = ManualTestNUI.GetInstance();
}
}
private ManualTestNUI _testPage;
private WearableManualTestNUI _wearTestPage;
private Button _button;
- private float _pointSize = (Window.Instance.Size.Width / Window.Instance.Dpi.Length()) * 1.06f;
+ private float _pointSize = 20.0f;
private TextLabel _label;
[SetUp]
}
else
{
+ _pointSize = ManualTest.GetPointSize();
_testPage = ManualTestNUI.GetInstance();
}
}
{
private ManualTestNUI _testPage;
private WearableManualTestNUI _wearTestPage;
- private float _pointSize = (Window.Instance.Size.Width / Window.Instance.Dpi.Length()) * 1.06f;
[SetUp]
public void Init()
AppControl.SendLaunchRequest(myAppControl);
if(ManualTest.IsWearable())
{
- _pointSize = 4.0f;
_wearTestPage = WearableManualTestNUI.GetInstance();
}
else
{
private ManualTestNUI _testPage;
private WearableManualTestNUI _wearTestPage;
- private float _pointSize = (Window.Instance.Size.Width / Window.Instance.Dpi.Length()) * 1.06f;
[SetUp]
public void Init()
if (ManualTest.IsWearable())
{
- _pointSize = 4.0f;
_wearTestPage = WearableManualTestNUI.GetInstance();
}
else
private WearableManualTestNUI _wearTestPage;
private Window _window;
private Button _button;
- private float _pointSize = (Window.Instance.Size.Width / Window.Instance.Dpi.Length()) * 1.06f;
+ private float _pointSize = 20.0f;
private TextLabel _label;
[SetUp]
}
else
{
+ _pointSize = ManualTest.GetPointSize();
_testPage = ManualTestNUI.GetInstance();
}
}