Граф коммитов

41 Коммитов

Автор SHA1 Сообщение Дата
Rui Marinho a2ae417c21 Merge branch '3.2.0' into 3.3.0 2018-09-20 16:08:21 +01:00
Shane Neuville a23733470f [UITests] wait for element before querying for it (#3791)
* [UITests] wait for element before querying for it

* [Controls] generalize and better represent intended behavior
2018-09-18 12:02:50 +01:00
Rui Marinho ddd914b7a1
Merge branch '3.2.0' 2018-09-11 17:38:29 +01:00
Rui Marinho a67621b21b
[UITest] Update Xamarin.UITest nuget package (#3632)
* [UITests] Update Xamarin.UITest 2.2.5

* [UITests] Try fix Toolbaritems

* [UITest] Update to 2.2.5-1606

* [UITests] Small Fixes and workarounds to make uitest happy

* [UITests ] Add delay to 1733 for API28
2018-09-07 18:14:44 +01:00
Samantha Houts a7b4a47396 [iOS] Implement `ForceUpdateSize` for `TableView` (#3300) fixes #2842
* Add repro for #2842

* [iOS] Implement ForceUpdateSize for TableView

fixes #2842

* Revert changes to TableViewModelRenderer
2018-08-06 15:23:22 +01:00
E.Z. Hart 4edb715f6d
Alternate version of ToolbarButtons_1_Exist to avoid possible race condition 2018-07-23 15:36:26 -06:00
Rui Marinho 317f1533e9 [Build]Fix merge, remove category Aniamtion 2018-06-28 18:30:19 +01:00
Rui Marinho 57994e7d8d Merge branch '3.1.0' 2018-06-28 17:07:59 +01:00
E.Z. Hart 9072a3f332 Clear all previous animations with the same key when starting a new animation (#3101) fixes #2482
* Fix conflict between animations with the same AnimatableKey; fixes #2482

* Fix ambiguous reference

* nameof() all the things
2018-06-28 16:57:07 +01:00
E.Z. Hart d2d1303394 [Android] Force animations to finish immediately when power save mode is on (#3148) fixes #1556
* Repro

* [Android] Force animations to finish immediately when power save mode is on; fixes #1556

* Add intial check for pre-Lollipop

* Return early if using a pre-Lollipop API version
2018-06-28 12:02:36 +01:00
Rui Marinho 9a62f8babf Merge branch '3.0.0' 2018-04-19 17:57:28 +01:00
Rui Marinho b236a4a6f2
[UITests] Fix failing tests (#2500) 2018-04-19 17:31:58 +01:00
Rui Marinho 6d090d100f Merge branch '3.0.0' 2018-03-24 14:13:28 +00:00
Samantha Houts ba43d43532 Reorder ToolbarButtons tests so the primary buttons can't be covered 2018-03-22 10:37:48 -07:00
jcmanke 73fef4c129 [iOS Maps] Pin rendering customization (#1065)
* Changed MapRenderer to pure weak delegate pattern. GetViewForAnnotation
is virtual for pin rendering customization by subclasses.

* Added UI test for pin tap gesture

* Wait for callout before tapping it in UI test
2018-02-23 12:19:12 +00:00
Stephane Delcroix b96f65bdd9 Merge branch '15-5' 2018-02-12 09:34:33 +01:00
Samantha Houts 2fba186574 [Android] Button Border can be set independent of other properties and will not change the size of the Button. fixes #1436 **behavior change** (#1570)
* Revert "Revert "Fix border on android buttons  (#941)""

This reverts commit a4c7f31d1215174aa86d7647bcbce0dd5e719a9a.

* Add repro for 1436

Fix typo

* [Core] Use 2dp for Android default Button BorderRadius

* [Android] Add shadow & padding to ButtonDrawable

* [Android] Set BackgroundDrawable on Button when BorderWidth, BorderRadius, and BorderColor are changed

Also add RippleDrawable when supported for the nice ripple effect on press, and set the PaddingTop for the ButtonDrawable. fixes #1436

* [Android] Default Color for Button is specified for AppCompat and AppAct

* [Android] Check BorderRadius value against proper default

* Fix test case number

* grumble grumble this branch is still vs2015 grumble

* [Android] Get button color from resources

* [Core] Obsolete Button.BorderRadius in favor of CornerRadius

* [Core] Added VisualElement.DefaultBackgroundColor

* Update tests to ignore obsolete prop warning

* [Android] Use Button.CornerRadius instead of BorderRadius

* [iOS] Use Button.CornerRadius instead of BorderRadius

* [macOS] Use Button.CornerRadius instead of BorderRadius

* [UWP] Use Button.CornerRadius instead of BorderRadius

* Update docs

* Fix more cases of BorderRadius obsolete warnings

* [UWP] Use BP.DefaultValue instead of abstracted const

* [Android] Use BP.DefaultValue instead of abstracted const

* [Core] Remove unnecessary abstracted consts from Button

* [Android] Fix default corner radius on ButtonDrawable

* Unit tests for Button.CornerRadius/BorderRadius

* [iOS] Restore default Button.CornerRadius

* [UWP] Add todo
2018-02-08 17:55:08 +00:00
Samantha Houts 33ad9ad9c3 Enable iOS test for AutomationId on ToolbarItems (#1762) 2018-02-01 10:32:51 +00:00
Samantha Houts c18e85ee43 [Internal] Basic performance testing and monitoring (#1329)
* [Core] Extract Performance class to Performance Provider

* [iOS] Add instrumentation

* [Android] Update instrumentation

* [Controls] Add perf gallery

* Update docs

* Get build number from txt file

* Remove unnecessary .bat
2018-01-31 18:09:15 +00:00
E.Z. Hart 647c2198fa
Fix broken cell image test 2017-12-29 11:23:05 -07:00
E.Z. Hart 87a897d42d
Reinstate test; 2017-12-28 16:24:20 -07:00
E.Z. Hart 474ae84907 [UWP] Fix various memory leaks in UWP applications (#1285)
* Starting repro

* Stop CellControl from creating extra unnecessary Cells

* Update repro

* Add missing calls to SuppressFinalize

* Update test

* Possible fix

* Repro for Xaml case with group header

* Consolidate event handler removal

* Clean up outdated todo in PlatformQueries

* Remove Loaded/Unloaded handlers to avoid leaking renderer

* Unparent previous page when popping so resource changed handlers are cleaned up

* When clearing nav stack on MainPage set, also clear modal stack

* Tests for grouped and ungrouped lists

* Prevent list item duplication and leaking

* PR cleanup

* Fix possible exception when ViewCell View measure returns negative height
2017-12-05 18:49:58 +00:00
E.Z. Hart 9073529c28
Attempt at an ActivateContextMenu implementation which will work more consistently across devices 2017-11-20 20:16:39 -07:00
E.Z. Hart f00907ea16 Add more UWP automated testing capabilities (#1252)
* Implement Clear(marked) method

* For Windows tests where we need to query a value we can't get, mark inconclusive

* Fix queries for multi-line "marked" values

* Force frames with text in them to be "tappable"

* Actually rerun queries during retry

* Update images for package deployment

* Allow the tests to restart the Control Gallery if it crashes

* UWP tests can now activate context menus

* Make double-tap (really double click) work for UWP desktop

* Get some basic scroll up/down functions working

* ScrollTo functions

* Modify ListViewRenderer automation peer to prevent freezing on ListViews

* Allow automation to find tabs

* Temporarily ignore some of the tests which don't do much

* Make ListViews with string/value type lists work

* Add note about 29257/60478

* Use toggle button for test 30353 for UWP

* Handle getting screen bounds consistently

* Make test for G2414 use ActivateContextMenu extension method

* Simplify UI test for 31330 and make it runnable on Windows

* Add notes on failing tests

* Add query for MoreButton on G2809 test

* Ignore ActivityIndicator IsRunning test for UWP

* Use ScrollDownTo instead of ScrollForElement method on Windows

* CellsGalleryTestCellList now working on UWP

* Cells tests working on UWP

* Re-add Tap to ScrollAndTap

* Get rid of custom automation peer stuff and just fix the tests

* Viewport caching and multi-monitor support for scroll

* Modified scroll values to hopefully get this running correctly on high density screen

* Clear messages so Appearing tests don't freeze up automation on UWP

* Make test for 32230 compatible with UWP

* Make test 32615 compatible with UWP

* Use ActivateContextMenu to simplify 34561 test

* Add notes for 34912 failure

* Make 36171 test compatible with UWP tests

Add directions for running the tests locally

* PR cleanup
2017-11-10 10:52:25 +00:00
Rui Marinho e004fb034c [iOS11] Fix Secondary toolbar items iOS11 (#1208)
* [iOS]Fix Toolbaritems position on iOS11

* [UITests] Expose iOS Version to UITest
2017-10-19 11:09:55 +01:00
Rui Marinho c07628e263 [iOS11] Fix Secondary toolbar items iOS11 (#1208)
* [iOS]Fix Toolbaritems position on iOS11

* [UITests] Expose iOS Version to UITest
2017-10-19 11:07:39 +01:00
Rui Marinho 5b67a1b6e8 [Packages] Update UITest and consolidate packages (#1201)
* [Packages] Update UITest and consolidate packages

* [Controls] Remove old packages

* [UITest] Try fix UITests iOS11

* [UITests] Use back instead of custom class
2017-10-18 18:08:25 +01:00
Rui Marinho cc47809a2b [Packages] Update UITest and consolidate packages (#1201)
* [Packages] Update UITest and consolidate packages

* [Controls] Remove old packages

* [UITest] Try fix UITests iOS11

* [UITests] Use back instead of custom class
2017-10-18 18:04:03 +01:00
E.Z. Hart 3896c1a7bf [Internal] Stopgap support for running UI Tests on UWP Desktop (#1067)
* First stab at getting UWP app tests running

* Implement a couple more methods (we can get all the way through the first test now)

* Add reset button to UWP Control Gallery; implement WaitForElement

* First pass at WaitForNoElement

* Make layouts available for automation queries; implement Tap(marked)

* Implement some of the keyboard methods

* Checkpoint

* Checkpoint

* More refactoring

* Forgot to save project file

* Put infrastructure for property queries in place

* Fix query parsing bug, add condition for text: query

* Implement Back(); add automation peers to Page and Label

* Implement TapCoordinates

* Fix dismiss button and make test text correct

* Fix incorrect AppRect conversion; add offsets to TapCoordinates

* Better reset

* Fill in missing 'DismissKeyboard' implementation

* Make layout renderers take up space even if they have no children

* Add ability to find TextBoxes by text contents

* DoubleTap
2017-09-19 22:18:24 +01:00
Samantha Houts b47068a21e [iOS] Can activate ContextActions on ListViews reliably again (#1144)
* Add ContextActions test category

* Add repro for 58875

* [iOS] Null check for the Delegate; clear the static WeakRef on dispose
2017-09-15 18:52:24 -07:00
E.Z. Hart 1aab6ff489 Repro 58406; apply effects to fast renderers on Android (#1077) 2017-08-10 10:35:27 -07:00
Rui Marinho ec10a37ff1 Use Xamarin.Forms.Build (#1092)
* Use Xamarin.Forms.Build

* Automatic
2017-08-10 09:50:25 +01:00
E.Z. Hart 31e17cc1e1
Fix ToolBarItemTests for pre-AppCompat 2017-08-08 16:34:32 -06:00
E.Z. Hart 4c15803807
Make platform query for toolbar work with AppCompat/pre-AppCompat 2017-08-08 09:48:02 -06:00
E.Z. Hart 6de1c5c8d7 [Android] Handle fragment removal inside of the RemovePage method (#1053)
* Repro

* Handle fragment removal inside of RemovePage method

* Fix class name for test

* Split long strings
2017-07-19 14:26:46 -07:00
E.Z. Hart f7c943dc77 [iOS] Allow Forms gestures on custom renderers for controls which already have gestures (#990)
* Repro 57114 with UI test; fix for 57114 on iOS

* Repro/UI test for Windows

* Add helpful comment for posterity

* Remove stray TODO

* Only do ShouldReceiveTouch on mobile

* Explicitly require wrapped UIView to have gesture recognizers
2017-06-20 16:38:58 +01:00
E.Z. Hart 7615340cfd
Fix test for 57317 on iOS 2017-06-15 15:26:58 -06:00
E.Z. Hart aa18111265 Verify FragmentContainer created when queueing fragment transaction (Android) (#865)
* Add check for disposed MasterDetailContainer when queueing fragment transaction

* Fix various ObjectDisposedExceptions when setting main page

* Add check for legacy renderers when querying control properties
2017-04-13 16:11:50 +01:00
Rui Marinho 425fafb057 Android fastrenderers (#845)
* Obsolete IVisualElementRenderer.ViewGroup in favor of .View

* Fix NRE

* Changing TContainer in PlatformEffect to View

* Fix "View" type

* new VisualElementRenderer

* First attempt at a fast(er) button renderer

* Fast Label Renderer

* Let's try that again. Behold: Label Fast Renderer

* Move FrameRenderer into Fast Renderers

* Fix Disposable on VisualElementRenderer

* Simplify touch and click handlers

* Drop empty if clause

* [Android] Add initial Image fast renderer

* Split accessibility out to a separate helper class; fix tapgesture bug with label

* [Android] Small fixes to VisualElementRenderer

* Move accessiblity stuff to a separate class (which needs a good name)

* Prevent query from looking to parent for fast renderers

* [Android] ImageRenderer refactoring

* Fix elevation/z-index bugs with Button (e.g., 40173)

* Move SetLabeledBy to Accessibilitizer

* Un-break automation IDs for Labels

* Move gesture handling to its own class

* Split gesture and effect management into separate classes

* Remove unneeded packager from LabelRenderer

* LabelRenderer inherits from FormsTextView

* Batch updates to View

* Fix isOnParentRenderer check for non-Android platforms

* [Controls] Update Xamarin.Forms.ControlGallery.iOS.csproj

* [Android,IOS] Small fixes to rebase and use of Internals

* [Android] Ignroe warning for now

* Fast renderers now passing InputTransparent and IsEnabled tests

* Fast and legacy renderers now pass the Enabled and InputTransparent tests

* Change PlatformEffect back, default container to null

* Fix mangled using directives
2017-04-06 14:19:52 +01:00
E.Z. Hart f27f5a3650 UI tests for InputTransparent and fixes for Android/Windows (#808)
* Set up automated UI tests for InputTransparent

* Pull in Adrian's UI tests from PR 483

* Fix bugs with box/label/image gestures passing through when not transparent

* Fix disabling of layouts on Windows; fix 44096 test for iOS/Windows;

* Automate the 53445 test
2017-03-23 17:18:38 +00:00
Rui Marinho 2be80a55a5 [UITests]Add Xamarin.Forms.Core.UITests.Shared (#711)
* [UITests]Add Xamarin.Forms.Core.UITests.Shared

* fix

* [UITests]Use shared UITest project on macOS

* [UITests] Add correct platform queries

* [Controls] Add missing Preserve
2017-03-23 11:03:48 +00:00