72 Commits

Author SHA1 Message Date
3e38eb4b2f Increase timeout for HTTP tests (#4775) 2017-08-30 13:30:53 +03:00
075e70e336 cache page on forward navigation (#4652)
* cache page on forward navigation
Still some failing navigation tests

* Current page is kept alive when navigating forward
Refactoring code and removing all hacks and flags
Remove one module circular reference

* Disable Page recycling because when there is transition between pages the nativeView stays animated (e.g. when transition is Fade the hidden page nativeView stays with Alpha 0)
Disable recycling if there is native anitmation

* Fix failing tests on ios & android API17
Fix wrong urls in http tests
Made some timer tests async

* Animations are not stored in BackstackEntry instead of Fragment because fragments could die (activity die) and recreated and we lose animations.

* Fix android crash when activity is recreated.
Refactoring transitionListener.
2017-08-07 17:24:12 +03:00
0f14101238 recycling now happens only if nativeView and android properties are not accessed. (#4627)
recycleNativeView filed now accepts: "always" | "never" | "auto". Always will recycle the nativeView no matter if its nativeView or android proprties are accessed. Never will disable recycling. Auto will recycle it only if nativeView and android properties are not accessed.
2017-08-01 15:04:16 +03:00
661e6cf582 Remove generation of test-results.xml (#4537) 2017-07-11 11:04:36 +03:00
23757e5dfc Enable recycling of nativeView 2 (#4467)
* enable recycling of nativeView

* backgroundInternal is reset if setting new value leads to background.isEmpty() == true.

* android background.getDefault always return copy of the background. Now all controls that mutate the background can be reset to initial state (e.g. Button & ActionBar)
passing resources to copied background so it respect density.
fix properties initNativeView

* reset padding when backgroundInternal is reset.

* Fix text reset
Fix padding reset

* fix tsc errors

* fix ugly text rendering.

* Add unit tests for recycling native views
Fix several issues that came from the above tests
Fix maxLength property missing a converter callback
Remove old files

* Remove old files

* Revert backgroundInternal setter

* change the order of tests so that appium can work again

* Remove suggestion on every TextView & TextField init (strangely it is enabled after view is recycled....)

* Fix function to get parent layout if specified

* Button stateListAnimator restored when button is recycled
zIndex defaultValue is now undefined instead of NaN

* revert zIndex.setNative to always clear stateListAnimator because it was breaking one UI test (setting value=0 was returning the previous stateListAnimator)

* fix search-bar backgound-color recycling

* Fix alignments setters

* Fix imageView recycling
Fix button recycling
Fix edit-text recycling
resetNativeView is called only if recycleNativeView flag is true

* Fix incorrect merge

* Fix text-view & text-field textTransform

* Fix EditText text reset

* Fix runtime crash on ARM emulator API 21

* Fix text-base minHeight. maxHeight reset
Fix reset of isUserInteractionEnabled
2017-06-29 18:01:22 +03:00
f2462158fb Chrome devtools elements tab support for Android (#4351)
* Enable chrome-devtools elemets tab

* Trigger updates when property is chaned form native

* Tslint fixes

* Don't run dom-elemet tests in IOS

* fix tests

* Create package.json

* Update package.json

* domNode changed to field for performance
2017-06-12 16:48:27 +03:00
014e7a8e0f add profile for functions, profile CSS-es on startup, use __time (#4227)
Call native setters once when a page is instantiated.

Fix background not being reset, Label's background is now set to background, not layer

Make the nativeView field instead of property for performance reasons
2017-06-08 09:51:09 +03:00
08db23d613 Profiling utils 2017-05-12 15:30:51 +03:00
9e3222781a backgroundImage property now use Fetcher & Cache as Image component (#4030)
* backgroundImage property now use Fetcher & Cache as Image component
Fix GridLayout tests on iPhone Plus - actualLength wasn’t rounded
ImageCache is closed when activity is stopped

* Fix reset of background drawable.

* additional check for drawable

* imageCache init cache on activity Started
2017-04-21 16:50:12 +03:00
5f14fc6a23 text-decoration won’t be applied to edit-text (#3932)
* text-decoration won’t be applied to edit-text

* stop printing slow tests

* remove console line

* fix failing tests

* fix wrong checks
2017-04-04 13:50:34 +03:00
e6250e718a Disable recycling of native views
createNativeView will set iOS nativeView if it is null/undefined
2017-03-28 18:08:59 +03:00
f2898f84d5 NativeView recycled for android 2017-03-28 18:08:59 +03:00
7b5ef052fd Tests moved into separate folders (#3794)
Fix android crash on application exit
2017-03-15 12:26:54 +02:00
629eb6e683 Use relative imports in tns-core-modules.
Use tns-core-modules/* imports in outside code (apps, tests, etc)
2017-03-13 14:37:59 +02:00
3770f7e636 formatted text fix (#3531)
* Fix formattedText implementation for iOS
Fix typeof undefined checks
Add slow tests message
Improve tests speed

* fix tslint
reduce transitions duration in test

* waitUntilReady will throw if timeout
fix tests that needs to wait without throwing
improve test speed
2017-01-26 18:21:30 +02:00
e34b0f622c fix span (#3510)
* Remove Bindable.
Fix Observable & ObservableArray tests
Fix formattedString text
Change implementation of Span, FormattedString & TextBase
properties valueChange called before native setter

* revetred formattedString tests asserts - formattedText update text property again
properties - when getting value we now use always property name instead of key (using key could return undefined for property that is set to its default value)
updated fontSize & fontInternal properties on all controls
fix font properties so that fontInternal is reset if the new font is the same as Font.default

* fix tslint errors
2017-01-20 16:42:20 +02:00
8e0aeb8ec2 Fix CSS-ANIMATION test failures 2017-01-18 13:21:43 +02:00
01edf37d33 value-source-tests will now use unsetValue instead of undefined when resetting local value 2017-01-17 16:56:56 +02:00
329ba3a2c5 Page tests fix. 2017-01-16 19:28:08 +02:00
9acba3f2b0 Fix TabView navigation tests 2017-01-16 12:30:47 +02:00
a65a491de6 fix listview (#3493) 2017-01-16 10:55:26 +02:00
8cec512397 Fix binding support (#3489)
* Fix binding support

* fix tslint
2017-01-13 18:08:18 +02:00
7f21eb06ac Run navigation tests 2017-01-13 16:02:31 +02:00
ab7cdfe659 Update testRunner.ts 2017-01-13 16:00:27 +02:00
4446cfe233 Run transitions tests 2017-01-13 15:49:05 +02:00
2ec45d0c37 Run animation tests 2017-01-13 15:30:56 +02:00
cd7877dfa0 Text field tests fixed. 2017-01-13 11:41:12 +02:00
b72cdb2be6 Update testRunner.ts 2017-01-13 10:31:52 +02:00
819155fb18 Minor fixes + more green tests 2017-01-12 16:20:38 +02:00
e983295952 Style tests fixes 2017-01-12 14:24:12 +02:00
cd3cd13075 View tests turned green 2017-01-11 17:34:25 +02:00
b4575e1d5b Fixed xml-declaration tests. 2017-01-11 14:36:08 +02:00
f634f29df0 Frame test 2017-01-10 14:08:54 +02:00
5a3cfbeda9 SegmentedBar tests fixed. 2017-01-09 18:24:09 +02:00
14e1da5820 Style-properties tests 2017-01-09 17:24:38 +02:00
6eb1aee4d1 Image tests 2017-01-06 15:43:57 +02:00
899ce1adc8 fix placeholder imports (#3429) 2017-01-06 14:57:21 +02:00
bfab188ba0 clear nativeView field. (#3418)
moved some native setters from TabView to TabViewItem.
shorthand properties converters now accounts for unsetValue.
better formatting for test duration.
2017-01-05 18:08:42 +02:00
5fef8a7bb4 Slider tests 2017-01-05 17:12:30 +02:00
421810c293 TextView tests. 2017-01-05 16:09:13 +02:00
d8db6a2484 Fix flexbox-layout properties 2017-01-04 11:55:05 +02:00
f76eb15e05 tests refactored 2017-01-03 17:33:16 +02:00
011bb82165 Fixed Progress tests. 2016-12-30 16:00:15 +02:00
b73d038f48 Let dock, wrap, absolute and grid tests run 2016-12-30 14:05:17 +02:00
764910be2b Fixed tab-view tests. 2016-12-30 10:55:42 +02:00
773e069681 Run all stack-layout tests 2016-12-29 11:46:04 +02:00
becf428e90 Fix most of the label tests 2016-12-28 17:33:38 +02:00
2bc48f3f1b Merge pull request #3373 from NativeScript/hdeshev/css-selector-parser-tests
Enable css-selector-parser tests (passing).
2016-12-28 15:57:03 +02:00
535a9ba1c2 Switch test fixed. 2016-12-28 15:42:32 +02:00
14bb523ca0 Enable css-selector-parser tests (passing). 2016-12-28 15:32:21 +02:00