Commit Graph

304 Commits

Author SHA1 Message Date
Vasil Chimev
677f28054c tests: add list view tests 2018-09-26 18:46:09 +03:00
Vasil Chimev
5df6921635 fix: move _getCurrentLayoutBounds from CustomLayoutView to View as extended by ListViewBase 2018-09-26 17:39:52 +03:00
Martin Yankov
815369b708 fix scrollview as root of tabview 2018-09-25 15:47:05 +03:00
Vasil Chimev
5876aaa914 fix: tslint 2018-09-25 11:43:41 +03:00
Vasil Chimev
badc6bfb2f add list view tests 2018-09-24 17:16:03 +03:00
Vasil Chimev
9ef9ee1f3f test: add scroll view tests 2018-09-21 16:25:56 +03:00
Martin Yankov
2d2144f02e fix safe area calculations with flat action bar 2018-09-20 10:51:58 +03:00
Martin Yankov
c3ee667015 minor fix for page options helper 2018-09-18 17:50:14 +03:00
Martin Yankov
226ab3caa6 add test for page overlay controls 2018-09-18 16:37:59 +03:00
Martin Yankov
8a7d672703 change buildUI function to accept options param 2018-09-18 11:25:28 +03:00
Vasil Chimev
6a07b04df1 test(safe-area): add flexbox layout tests 2018-09-13 15:20:59 +03:00
Vasil Chimev
1f75e944f2 test: refactoring and formatting 2018-09-13 11:27:47 +03:00
Vasil Chimev
b871950f8a test(safe-area): add wrap layout tests 2018-09-12 17:01:25 +03:00
Vasil Chimev
edf2d013d1 test(safe-area): add absolute layout tests 2018-09-12 16:14:06 +03:00
Vasil Chimev
cdcb3549b0 test(safe-area): add stack layout tests 2018-09-12 15:32:06 +03:00
Vasil Chimev
74b84e5c1a test(safe-area): add dock layout tests 2018-09-11 16:13:44 +03:00
Martin Yankov
c9f8de9d7c move safe area tests to a new category 2018-09-10 16:53:52 +03:00
Martin Yankov
16a131f040 Merge branch 'master' into ios-safe-area 2018-09-10 16:13:25 +03:00
Martin Yankov
ce59a3d7a1 wip grid layout tests 2018-09-10 16:12:17 +03:00
Vasil Chimev
131a2248ef test: grid layout safe area 2018-09-07 17:27:35 +03:00
Vasil Chimev
8df6971f35 test: extract layout-tests-helper 2018-09-07 14:45:58 +03:00
Vasil Chimev
1c05c8b45e test: refactor flexbox layout tests 2018-09-07 14:02:04 +03:00
Martin Yankov
9f7bb0f5ae Add WIP Gridlayout tests 2018-09-05 17:59:02 +03:00
Vasil Chimev
acb544b16d tests: add iosOverflowSafeArea=false to Flexbox 2018-09-05 10:19:38 +03:00
Vasil Chimev
d5726b8310 tests: comment out page scroll content tests 2018-09-04 14:16:24 +03:00
Vasil Chimev
9553535d2d tests: throw modalCloseCallback with timeout
This is to avoid failures in tests execution where `modalCloseCallback` throws.
Delete unused imports and a const.
2018-09-03 17:04:53 +03:00
Manol Donev
43f0fd0ffc refactor: remove ununsed Layout class (#6228) 2018-08-31 15:00:16 +03:00
Vasil Chimev
e979139aff test: delete PAGE.test_percent_margin_support
This case has been handled per layout.
2018-08-30 22:19:32 +03:00
Manol Donev
a8d016c6d7 fix(ios): listview scrollToIndex crash with async data (#6182) 2018-08-17 17:09:48 +03:00
Alexander Vakrilov
ec24c5a96f fix(list-view): Layout list-view items on request (#6159)
* test: list items relayout example

* fix(list-view): Layout list-view items on request

* refactor(tests): refactor list-view tests imports
2018-08-09 18:19:56 +03:00
Alexander Vakrilov
9c67d7ba02 chore(tests): increased wait-timeout for tests for slower ad emulators (#6172) 2018-08-09 15:49:19 +03:00
Nathanael Anderson
85b8c018a5 feat(styling): Added 2 functions to control applicationAdditionalSelectors (#6124)
* Added getAdditionalSelectors function so that nativescript-theme can be functional again in NS 4.x

* Change to a better more extensible additional css system.

* removed redunant function on the name.

* Fix lint issues

* Adding mergeSelectors to the remove function

* Added test of new add/remove css functions.

* fix: revert testRunner.ts changes that disabled all tests except style

* refactor: fix typo

* chore: fix typo and change test to no not affect global styles
2018-08-02 11:51:07 +03:00
Vasil Chimev
6ce1d22d9a feat(CSS): import of relative paths (#6023)
* feat(CSS): import of relative paths

* refactor: address comments
2018-07-21 05:54:32 +03:00
Vasil Trifonov
398c9b3f33 feat(typings): Adding Android typings for API levels from 17 to 27 (#5890)
Adding android typings for API levels from 17 to 27

BREAKING CHANGES:
There is no longer added `I` prefix in the names of the interfaces. For example `android.view.IMenuItem` is now `android.view.MenuItem`. This matches the original name of the interface in the android framework.
2018-07-05 18:36:23 +03:00
Martin Yankov
69b3eb70d5 test(): add more timeout to tab navigations tests (#5953) 2018-06-14 13:19:06 +03:00
Morten Sjøgren
0e04cb4ad1 fix(android): NavigationButton was read as "Button" by screenreaders. (#5949)
The navigation button for the vision-impaired users were always read as:
"Button" by the TalkBack service on Android.
2018-06-14 12:54:33 +03:00
Manol Donev
0b9d4aea0a fix(android): label width shrinking on shorter text change (#5917) 2018-06-07 16:44:33 +03:00
Martin Yankov
b122bd4a37 fix(ios): set current tab as topmost frame on load (#5908) 2018-06-06 14:47:42 +03:00
ADjenkov
c3a7c815e5 chore(layout-changed): update layoutChanged event tests delay 2018-05-23 00:54:29 +03:00
Alexander Djenkov
0fc1547a19 feat(view): introduce LayoutChanged event on every View component (#5825)
* feat(view): introduce LayoutChanged event

* test(view): add LayoutChanged event tests

* chore(view-android): attach to onLayoutChange only if listener attached

* feat(view-android): override on/off in order to attach and detach from OnLayoutChangeListener
2018-05-21 17:22:40 +03:00
Manol Donev
1365f13594 fix(modal): innerView.closeModal(...) not passing back context (#5833) 2018-05-18 16:50:27 +03:00
Manol Donev
03cfc0cee3 chore(tslint): update tslint rules and fix errors (#5747)
* chore(tslint): fix tslint config & errors
* chore(tslint): enable double quotes, whitespace, and arrow-return-shorthand rules and fix errors
2018-04-26 18:36:32 +03:00
Manol Donev
451589dbd6 fix(modal): exception when calling ViewBase.showModal(...) (#5737) 2018-04-26 00:19:44 +03:00
Alexander Vakrilov
49ea10b81e fix(layout): IOS Layout not invalidated with custom root (#5724)
* fix(layout): Buuple up layout trough viewControllers

* test: Layout invalidates correctly with different root view

* chore: tslint
2018-04-23 15:47:27 +03:00
Vasil Trifonov
a616dbb9bb Updated weak event listener tests for v8 6.5 (#5697)
* Updated weak event listener tests for v8 6.5

* added missing parentheses
2018-04-18 16:57:26 +03:00
Nikolay Tsonev
a316e53d54 new tabview examples (#5628)
* new tabview exmples

* tabs limit example

* minor code snippet edits
2018-04-05 17:35:36 +03:00
Manol Donev
81a2cbd0fe refactor(ios): clean up iOS8 or lower specific checks in codebase (#5581) 2018-03-26 13:37:21 +03:00
Brendan Ingham
4b244921d4 feat(List-View) : Add the ability to check if an item is visible or not. (#5557)
* feat(list-view): Adds the ability to check whether or not an Item at index is Visible on screen within a listView

* feat(list-view): add the unit-test for checking if list-item is visible.

* clean(list-view): fix invalid reference in list-view-common

* chore(list-view): remove unused logic

* test(list-view) updates the tests for checking if item at index is visible

* chore(ListView Tests): update the test_check_if_item_at_index_is_visible unit test to include 40 children, and test if the last item is visible or not.

* Chore(ListView IOS): Apply requested changes to the for-loop, and replace with Array.some for readability.

* chore(ListView android): Fix TSLint issues.
2018-03-21 07:18:01 +01:00
Martin Yankov
dfa70dd384 feat(frame): rework frame retrieval api (#5527)
Rework the frame api to support working with multiple Frames.
* frameModule.topmost() - now returns the last navigated Frame or
the currently selected tab item's Frame if the tab item's view is a
Frame.
* frameModule.getFrameById(id: string) - returns a navigated Frame by id.
* args.object.page.frame - can be used in page elements event handlers.
Returns the Frame of the current element's page.
* chore: Update madge-android npm script path
2018-03-13 18:10:45 +02:00
Nathan Walker
fa80355464 fix(animations): change throw -> trace to avoid unnecessary app crash (#5475)
* fix(animations): change throw -> trace to avoid unnecessary app crash

Fixes major cause of crashes/bugs in production apps using animation.

* Fix fix animation throw (#1)

* chore(tests): Cleanup code snippets comments

* refactor(animations): Plat-specific cancel and play methods refactored
2018-03-08 20:42:33 +02:00