summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Core.UnitTests
AgeCommit message (Collapse)AuthorFilesLines
2017-10-23force sync with upstream 2.4.0-sr2Kangho Hur2-141/+2
Change-Id: I36f0de33d03e804afd17f7ab2c60ae6f435ec402
2017-10-23[C] MergedRD: new tests and minor fixesStephane Delcroix1-0/+57
2017-10-23Merged DictionariesAdam Pedley1-2/+54
2017-10-23[C] Use ReferenceEquals to compare BindingContext (#1150)Stephane Delcroix1-0/+30
2017-09-16Add iOS prototypical cell cache for LV RowHeight calcs (#1143)kingces951-0/+65
2017-07-24Remove InternalsVisibleTo from Maps (#1019)Kangho1-2/+2
2017-07-06[Tests] Add nunit test adapter (#1038)Rui Marinho2-5/+6
* [Tests] Add nunit test adapter * [Tests] Add nunit vs adapter to Xaml and Pages unit tests project * [Tests] See if this works for TestSource * [vsts] Add ignore for now on generic tests  
2017-06-27Use built-in Nunit method for waiting;E.Z. Hart1-5/+5
Avoid problems with Assert.Success throwing exception on wrong thread
2017-06-26Fix (hopefully) for occasional failures in ↵E.Z. Hart1-5/+6
PropertyChangeBindingsOccurThroughMainThread test
2017-06-22Breaking; Make Grid.AddHz/Vt span ortho dim (#984)kingces951-0/+158
2017-06-21[test] passing test for 32896Stephane Delcroix1-0/+29
2017-06-21[C] reset the BindingContext on template change (#998)Stephane Delcroix1-1/+27
* [C] reset the BindingContext on template change * fix test
2017-06-08[C] reset children animation on repeat (#974)Stephane Delcroix2-0/+34
2017-06-01[C] use defaultValueCreator to set Frame default Padding (#943)Stephane Delcroix1-2/+17
* [C] use defaultValueCreator to set Frame default Padding * [docs] update docs * change to internal * fix docs
2017-06-01[C] use picker creation date as default Date (#944)Stephane Delcroix1-1/+1
* [C] use picker creation date as default Date * fix test
2017-05-26Fix bz56030; DynamicResource overriding (#924)kingces951-0/+34
* Fix bz56030; DynamicResource overriding * add comment about KVP 'inversion'
2017-05-16Remove VisualElement finalizer (#918)E.Z. Hart1-37/+0
* [Controls] Add repo for bugzilla 55365 * Remove finalizer from VisualElement * Remove unused using directive * Removing test for 44074 * Update docs
2017-05-04Fix bugzilla55542 (#898)Rui Marinho1-0/+17
* [Controls] Add repo for bugzilla 55542 * [Core] Fix caching null renderer for ViewCell view
2017-04-13Update ListProxyTest.WeakToWeak so it works in Release mode (#866)E.Z. Hart1-10/+13
* Update ListProxyTest.WeakToWeak so it works in Release mode * Disable CS0414 for test
2017-04-12[Test]Ignore Weak reference test, failing only on releaseRui Marinho1-0/+2
2017-04-11[C] Lookup in RD also lookup in merged RDs (#861)Stephane Delcroix1-1/+52
2017-04-11Implicit impl of controller ifaces (#807)kingces954-8/+8
* Simplify ICtrl callsites * Rebase fix
2017-04-07[Xaml] Set the TargetProperty on ServiceProvider (#847)Stephane Delcroix1-1/+3
2017-04-06Fix 54334 (#855)Stephane Delcroix1-1/+57
* [C] unset the FromStyle flag on manual setting * [C] Do not reset overriden values to default * complete the fix
2017-03-24Setup a ConditionalWeakTable in ListProxy to hold weak references so that a ↵Shane Neuville1-0/+92
ListView will work when connected to a Weak Source (#802)
2017-03-20[Core] Fix internal children clear logic (#820)wplong115-1/+97
* Fix InternalChildren clear logic * Improve InternalChildren clear logic * Add test code to verify InternalChildren clear logic * Add missing test cases * Improve time complexity of clear logic * Fix the test case where InvalidOperationException occurs. * Correct the name casing of the test case * Modify a wrong test code
2017-03-07Remove InternalsVisibleTo from Core to XF.Platforms.* (#782)kingces9519-17/+32
* Remove InternalsVisibleTo from Core to XF.Platforms.* * Changes per Jason's code review * Move LockableObservableListWrapper to internals namespace * Changes per Stephane's code review * update docs * Touch code to get CI to run tests * Rebase; Update documentation
2017-03-02[Xaml] Fallback to App.Current for DynResources (Previewer) (#793)Stephane Delcroix1-1/+21
* [Xaml] Fallback to App.Current for DynResources (Previewer) * [C] avoid NRE and ensure setting the style
2017-03-01[C] support more color format in ColorTypeConverter (#784)Stephane Delcroix1-14/+27
* [C] support more color format in ColorTypeConverter * [C] Parse numbers in InvariantCulture * more tests
2017-02-17Split Windows RuntimePlatform into UWP and WinRT (#748)E.Z. Hart1-1/+2
* Split RuntimePlatform Windows into UWP and WinRT * Update docs * Backward compatible targetPlatform=Windows for native XAML views on WinRT/UWP
2017-02-02Update RelativeLayout to make it respond to constraint changes (#425)Philippe Leybaert1-0/+41
* Update RelativeLayout to make it respond to constraint changes Constraints of a RelativeLayout are bindable properties but the layout does not update when the constraints are updated. This change will invalidate the layout whenever XConstraint, YConstraint, WidthConstraint or HeightConstraint is changed (either in code or through a change in the bound property) * Specified changed handler as named property * Adding attached property accessors for layout properties Since the constraint attached properties can now be updated at runtime, setters are required for those properties. Also, when adding a child view at runtime using the Add() method with x/y/w/h constraints, generating the bounds constraints is deferred to the layout phase. * Unit tests for runtime constraints updates in RelativeLayout * Rename unit test method Rename LayoutChangesAtRuntim() to LayoutIsUpdatedWhenConstraintsChange() * Wrap RelativeLayout update setters in BatchBegin/Commit * Update documentation of RelativeLayout Added SetXConstraint(), SetYConstraint(), SetWidthConstraint() and SetHeightConstraint()
2017-02-02Add pressed and released events to Button (#446)Kangho1-1/+27
* Add pressed and released events to Button * Update ButtonRenderer.cs * Apply safely casting to android button renderer * Use safety casting for Android buttin renderer * [Windows] Fix modal pages being laid out below soft buttons (#395) * Add sample HanselForms and TwitterDemo to ControlGallery (#651) * [Controls] Add Hanselforms sample * Remove extra twitter sample * [Controls]Add TwitterDemo sample * [Controls] Fix build * Slider should show user-set value on initial load (#378) * [UWP] Use toolbar foreground color on primary items (#640) * Avoid duplicating code in OmPlatform (#591) * [iOS] Entry should not pass a newline to the next responder (#397) * UITextField should not return so that the next field does not get passed a newline * Added code sample * [XamlC] import members on x:Static and factories (#642) * [Xaml] support short Properties for PropertyCondition (#645) * Xamlc compile data triggers (#648) * [Xaml] DataTrigger and PropertyCondition no longer use a ServiceProvider * [XamlC] avoid generating ServiceProvider for unused ProvideValue * fix tests * Fix comment typo * [UWP] Fix TextBox style for foreground focus color (#618) * Adding image to use for CellsGalleryImageUrlCellList UI test * Update ImageCellListPage to use an image we control; Update CellsGalleryImageUrlCellList test to wait longer than 1s for images to load if necessary * fix nre when changing content in datepickerselected (#494) * Make CellsGalleryImageUrlCellList test finish early if possible * [iOS] Change keyboard type while keyboard is visible (#443) * Change keyboard while changing text * add sample code * [Android] Fix NavigationPage dispose crash when it parents a MasterDetailPage (#577) * fix navigation page dispose crash * changes after review * [XamlC] detect duplicate x:Name at compile time (#655) * [XamlC] detect duplicate x:Name at compile time * invoking methods with the right arguments produces better results * Make UWP toolbar display rules consistent with other platforms (#638) * Allow subscriber to be collected if MessagingCenter is the only reference to it (#617) * Repro * Make messaging center callbacks weak references * Preserve attribute * Fix test method name * Watch for collection of actual delegate target instead of wrapper delegate * Preserve the original platform instance when changing main page * Better tests for lambda situations * Update tests, make callback target a weakreference if it's the subscriber * Ensure old Platform MessagingCenter subs are gone before creating new Platform * [iOS] Prevent multiple ListView cells from being swiped simultaneously (#578) * disable multiple cell swipe * add sample code * refactored * convert to weakreference * remove null setting * change weakreference setting place * remove if * revert isopen changes * add instructions * [WinRT/UWP] Apply BackgroundColor to Stepper buttons (#581) * [WinRT/UWP] Apply BackgroundColor to Stepper buttons * Add explanatory text; use nameof * Move explanatory text to a label * Return group instead of internal class (#461) * [iOS/Android] Move Map camera to correct region on layout change (#548) * Move to region on layout change * remove visibility check * [iOS] Platform specifics for controlling Picker SelectedIndex change behavior (#540) * picker selected index could change when picker view is dismissed * use enum * [iOS] Ignore intermittent failing test on XTC (#666) * [UITest] Update to UITest 2.0.5 (#665) * Rebase the current branch onto upstream latest
2017-02-02[Core] Added RootPage to NavigationPage (#464)adrianknight891-6/+97
* d * removed whitespace * Using ArgumentNullException * changes
2017-02-01[C] throw meaningful exception on duplicate RD key (#716)Stephane Delcroix1-0/+14
2017-01-31Make MessagingCenter testable (#723)E.Z. Hart1-5/+70
* Make MessagingCenter testable * Eagerly create MessagingCenter instancef * More succinct version
2017-01-24Fix overeager subscription cleanup (#712)E.Z. Hart1-0/+18
2017-01-23Add default parameter value of zero to INavigationPageController.Peek() (#708)E.Z. Hart1-0/+1
2017-01-23Reduce overhead of pushing existing navigation stack (#672)E.Z. Hart1-12/+77
* Make StackCopy less awkward * Clean up comment * Update docs * Update docs * Replace SecondToLast with an arbitrarily deep Peek method * Update docs * Handle negative depths in Peek()
2017-01-12Fix test failures in Release modeE.Z. Hart1-6/+8
2017-01-12[C] new OnPlatform mechanism (#658)Stephane Delcroix4-26/+42
* [C] Obsolete TargetPlatform * [Xaml] support and test the new syntax * blind fix windows platforms
2017-01-10iOS and Android timers should be runnable from any thread and execute… (#374)adrianknight891-51/+0
* iOS and Android timers should be runnable from any thread and executed on the main thread * removing unused Timer class declarations with minor refactoring efforts * iOS and Android timers should be runnable from any thread and executed on the main thread * removing bak file * switch to v7 * add test code
2017-01-03Allow subscriber to be collected if MessagingCenter is the only reference to ↵E.Z. Hart1-1/+166
it (#617) * Repro * Make messaging center callbacks weak references * Preserve attribute * Fix test method name * Watch for collection of actual delegate target instead of wrapper delegate * Preserve the original platform instance when changing main page * Better tests for lambda situations * Update tests, make callback target a weakreference if it's the subscriber * Ensure old Platform MessagingCenter subs are gone before creating new Platform
2016-12-23Xamlc compile data triggers (#648)Stephane Delcroix2-0/+28
* [Xaml] DataTrigger and PropertyCondition no longer use a ServiceProvider * [XamlC] avoid generating ServiceProvider for unused ProvideValue * fix tests
2016-12-07remove the noise while running nunit from consoleStephane Delcroix1-2/+0
2016-12-06[C] detach Behaviors and Triggers on VE finalization (#555)Stephane Delcroix1-1/+41
* [C] detach Behaviors and Triggers on VE finalization * update docs
2016-12-06[Android] ScrollView should send correct ScrollX and ScrollY (#394)adrianknight891-0/+31
* Android should show correct ScrollX and ScrollY when scrolling in both directions * Adding sample code to demonstrate scrolling * Orientation fix * ScrollTo should work for horizontal + vertical scrolling * Get correct scroll x and y values for ScrollOrientation.Both * Convert positions to pixels * Adding unit test to watch out for incorrect animation positioning * automated test * improvements * fixed texts
2016-12-06ResourceDictionary fixes (#536)Stephane Delcroix1-9/+40
* [C] avoid leaking RDs, remove reflection call, validate arguments * [C,Xaml] The only way to get merged values are internal
2016-12-01Don't run Command CanExecute on incorrect inherited binding context type (#572)E.Z. Hart1-1/+99
* Allow Command CanExecute to recover when run on inherited bindingcontext * Make exception handler more generic * Checking types in Command delegates to avoid exception in the first place * Adding type chekc to other Command constructor * Use nameof for ArgumentNullExceptions * Add unit tests for null parameters, handle value types and Nullable<T>
2016-11-16[W] Support 0 as valid BorderWidth (#537)Stephane Delcroix1-1/+1
2016-11-16[C] Use a Binding for ItemsSource object selectionStephane Delcroix1-96/+68