diff options
author | E.Z. Hart <hartez@users.noreply.github.com> | 2016-05-04 08:16:42 -0600 |
---|---|---|
committer | Rui Marinho <me@ruimarinho.net> | 2016-05-04 15:16:42 +0100 |
commit | 8d383746caab00dd3ee0b62dc992a2a99c7a6d06 (patch) | |
tree | 37a7f814bc305bd8b6c44837bdbfc421ee1f9ddf /Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-ListUITests.cs | |
parent | 5b9094241b1d3da5419ed21be30bdcc07c469dbe (diff) | |
download | xamarin-forms-8d383746caab00dd3ee0b62dc992a2a99c7a6d06.tar.gz xamarin-forms-8d383746caab00dd3ee0b62dc992a2a99c7a6d06.tar.bz2 xamarin-forms-8d383746caab00dd3ee0b62dc992a2a99c7a6d06.zip |
Remove empty UI tests (#160)
* Use WaitForElement instead of Thread.Sleep to cut down on idle time
* Remove empty UI tests
Diffstat (limited to 'Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-ListUITests.cs')
-rw-r--r-- | Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-ListUITests.cs | 88 |
1 files changed, 0 insertions, 88 deletions
diff --git a/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-ListUITests.cs b/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-ListUITests.cs deleted file mode 100644 index 17fb1eb8..00000000 --- a/Xamarin.Forms.Core.iOS.UITests/Tests/Legacy-ListUITests.cs +++ /dev/null @@ -1,88 +0,0 @@ -using NUnit.Framework; -using Xamarin.UITest; - -namespace Xamarin.Forms.Core.UITests -{ - [TestFixture] - [Category ("ListView")] - internal class ListGalleryTests : BaseTestFixture - { - // TODO - // TODO: Port to new conventions - - public ListGalleryTests () - { - ShouldResetPerFixture = false; - } - - protected override void NavigateToGallery () - { - App.NavigateToGallery (GalleryQueries.ListViewGalleryLegacy); - } -// void AllElementsExist () -// { -// for (int i = 0; i < 5; i++) -// App.WaitForElement (q => q.Marked (i.ToString ())); - -// App.Screenshot ("List elements exist"); -// } - - [Test] - [Description ("Click 0 - 5 and reset")] - public void ListGalleryClickElementsAndReset () - { -// AllElementsExist (); - -// for (int i = 0; i < 5; i++) { -// App.Tap (q => q.Raw (string.Format ("{0} index:{1}", PlatformStrings.Cell, i))); -// } - -// App.WaitForNoElement (q => q.Marked ("0"), "Timeout : 0"); -// Assert.AreEqual (2, App.Query (q => q.Marked ("5")).Length); - -// App.Screenshot ("Clicked 0 - 5"); - -// App.Tap (q => q.Raw (PlatformStrings.Cell + " index:5")); - -// App.WaitForElement (q => q.Marked ("0"), "Timeout : 0"); -// Assert.AreEqual (1, App.Query (q => q.Marked ("5")).Length); - -// App.Screenshot ("Reset elements"); - } - -// [Test] -// [Description ("Scroll to the end of the list")] -// public void ListGalleryScrollToEndOfList () -// { -// AllElementsExist (); - -// for (int i = 0; i < 50; i++) -// App.ScrollDownForElement (q => q.Marked (i.ToString ()), 2); - -// App.Screenshot ("At the bottom of the list"); -// } - -// [Test] -// [Description ("Click 0 - 5 and reset - Landscape")] -// public void ListGalleryClickElementsAndResetLandscape () -// { -// App.SetOrientationLandscape (); -// App.Screenshot ("Rotated to Landscape"); -// ListGalleryClickElementsAndReset (); -// App.SetOrientationPortrait (); -// App.Screenshot ("Rotated to Portrait"); -// } - -// [Test] -// [Description ("Scroll to the end of the list - Landscape")] -// public void ListGalleryScrollToEndOfListLandscape () -// { -// App.SetOrientationLandscape (); -// App.Screenshot ("Rotated to Landscape"); -// ListGalleryScrollToEndOfList (); -// App.SetOrientationPortrait (); -// App.Screenshot ("Rotated to Portrait"); -// } - - } -} |