From 0b62016f7882879115fa6dc9fe16d5d4c7222ce4 Mon Sep 17 00:00:00 2001 From: Seungkeun Lee Date: Tue, 7 Aug 2018 17:26:55 +0900 Subject: [PATCH] [Xamarin.Manual][Non-ACR] Fix MasterDetail/TextCell TC - Fix teardown code on MasterDetail TC - Add more items for space on TextCell TC Change-Id: Ia0e8a27f0a4ae9c9252c02860429f0d483da9f1d --- .../testcase/TSMasterDetailPage.cs | 9 ++++++--- .../testcase/TSTextCell.cs | 16 ++++++++++++++-- 2 files changed, 20 insertions(+), 5 deletions(-) mode change 100755 => 100644 tct-suite-vs/Tizen.XamarinForms.Manual.Tests/testcase/TSMasterDetailPage.cs mode change 100755 => 100644 tct-suite-vs/Tizen.XamarinForms.Manual.Tests/testcase/TSTextCell.cs diff --git a/tct-suite-vs/Tizen.XamarinForms.Manual.Tests/testcase/TSMasterDetailPage.cs b/tct-suite-vs/Tizen.XamarinForms.Manual.Tests/testcase/TSMasterDetailPage.cs old mode 100755 new mode 100644 index 96e6fde..08ac9a2 --- a/tct-suite-vs/Tizen.XamarinForms.Manual.Tests/testcase/TSMasterDetailPage.cs +++ b/tct-suite-vs/Tizen.XamarinForms.Manual.Tests/testcase/TSMasterDetailPage.cs @@ -139,8 +139,11 @@ namespace Xamarin.Forms.Core.UnitTests [TearDown] public void TearDown() { - _masterpage.IsGestureEnabled = true; - _masterpage = null; + if (_masterpage != null) + { + _masterpage.IsGestureEnabled = true; + _masterpage = null; + } Console.WriteLine("MasterDetailPageTests --------------- TearDown()"); } @@ -584,4 +587,4 @@ namespace Xamarin.Forms.Core.UnitTests ManualTest.Confirm(); } } -} \ No newline at end of file +} diff --git a/tct-suite-vs/Tizen.XamarinForms.Manual.Tests/testcase/TSTextCell.cs b/tct-suite-vs/Tizen.XamarinForms.Manual.Tests/testcase/TSTextCell.cs old mode 100755 new mode 100644 index 7d8f555..f7083e3 --- a/tct-suite-vs/Tizen.XamarinForms.Manual.Tests/testcase/TSTextCell.cs +++ b/tct-suite-vs/Tizen.XamarinForms.Manual.Tests/testcase/TSTextCell.cs @@ -504,12 +504,18 @@ namespace Xamarin.Forms.Core.UnitTests Text = "Tap this text.", }; + var _textCell0 = new TextCell + { + Text = "dummy for space", + }; + _tableView1 = new TableView { Intent = TableIntent.Settings, Root = new TableRoot("Table View Form") { new TableSection ("Section 1 Title") { - _textCell1 + _textCell0, + _textCell1 } } }; @@ -554,12 +560,18 @@ namespace Xamarin.Forms.Core.UnitTests Text = "Tap this text.", }; + var _textCell0 = new TextCell + { + Text = "dummy for space", + }; + _tableView1 = new TableView { Intent = TableIntent.Settings, Root = new TableRoot("Table View Form") { new TableSection ("Section 1 Title") { - _textCell1 + _textCell0, + _textCell1 } } }; -- 2.7.4