Levi McCallum
197a31f636
Fix mistakenly renamed method in unit test
2015-11-30 06:44:53 -08:00
Levi McCallum
a0c05ebffc
Rename CK classes to AS classes
2015-11-30 06:44:53 -08:00
appleguy
d132416d90
Merge pull request #848 from nguyenhuy/JustifyContentSpaceBetweenAndAround
...
Implement "space between" and "space around" justify content options for stack layout
2015-11-29 21:46:42 -08:00
Huy Nguyen
0077c3eec6
Implement horizontal and vertical alignments for stack layout
2015-11-24 20:57:19 +02:00
Huy Nguyen
1162e02b06
Implement "space between" and "space around" options of stack layout justify content
2015-11-16 19:34:08 +02:00
appleguy
2c8626e1f6
Merge pull request #753 from nguyenhuy/DataControllerSortedTransaction
...
Sort edit commands during batch updating of table and collection views
2015-10-26 13:40:06 -07:00
Huy Nguyen
72fca5395f
Inject an ASDataController class to ASTableView, for testing purposes
...
- Injection can be done via a new internal initializer. The class will be used by ASTableView to create (and configure) a new data controller.
- ASTableViewTests now injects its own type of ASDataController. This facilitates new ways for testing ASTableView-specific behaviours. The first application is counting the number of times relayoutAllNodes is called on the data controller.
2015-10-26 13:52:49 +02:00
Huy Nguyen
048566aed5
Fix unstable tests related to relayoutAllNodes in ASTableViewTests
...
- After node constrained sizes were changed (because the table view width was changed, for example) and before relayoutAllNodes is executed (on main), if there is any layout tasks being executed on background, the new sizes will be used immediately. Therefore, by the time relayoutAllNodes is performed, some nodes already have an up-to-date layout and don't need to remeasure.
- As a result, after relayoutAllNodes is completed, the number of layout passes performed on main thread for each node increased between 0 and 1 (i.e some nodes were remeasured, others weren't). ASTableViewTests is updated to assert this behaviour.
2015-10-26 13:47:08 +02:00
Huy Nguyen
53a3b76d6d
Add read-only names to UIView and CALayer
...
- Backed by name of the underlying ASDisplayNode.
- Remove goofy usages of `setValue:forKey:` in ASDisplayNodeTests and ASDisplayNodeAppearanceTests.
2015-10-26 07:44:05 +02:00
Huy Nguyen
fd0b3aaf52
Revert "Revert "Make ASDisplayNode.name Thread Safe""
...
This reverts commit 906d7c759b471eda67b95574199b6f91d46b6782.
2015-10-26 06:29:01 +02:00
appleguy
7d013a70ac
Merge pull request #762 from levi/supplementary-views
...
Respond to supplementary node feedback
2015-10-25 19:45:00 -07:00
appleguy
906d7c759b
Revert "Make ASDisplayNode.name Thread Safe"
2015-10-25 19:40:47 -07:00
appleguy
61429357af
Merge pull request #768 from Adlai-Holler/ThreadSafeName
...
Make ASDisplayNode.name Thread Safe
2015-10-25 12:47:07 -07:00
Huy Nguyen
7b71462763
Refactor ASTableViewTests
...
- Add -triggerFirstLayoutMeasurementForTableView:
- Move -triggerSizeChangeAndAssertRelayoutAllRowsForTableView:newSize to the end of the file.
2015-10-25 18:54:39 +02:00
Adlai Holler
99113388a8
Make tests use CALayer.asyncdisplaykit_node.name rather than CALayer.asyncdisplaykit_name as needed
2015-10-24 10:58:09 -07:00
Levi McCallum
d9ea1b52ea
Fix unit tests
2015-10-22 15:27:48 -07:00
Huy Nguyen
938cd468b3
Add snapshot tests for ASStaticLayoutSpec.
2015-10-19 20:37:20 +03:00
Levi McCallum
31f184b32d
Clear collection view delegate/dataSource on test tear down
2015-10-15 11:40:53 -07:00
Levi McCallum
9a37538582
Clean up and test registration of internal supplementary node kinds
2015-10-15 11:40:53 -07:00
Levi McCallum
12194199cd
Clean up layout delegate protocol API
2015-10-15 11:40:53 -07:00
Levi McCallum
ba72c73779
Clarify default value behavior of the layoutDelegate for flow layouts
2015-10-15 11:40:52 -07:00
Levi McCallum
8a9720dd12
Add tests for constrained size method of flow layout inspector
2015-10-15 11:40:52 -07:00
Levi McCallum
1216d748a1
Test number of supplementary views in section inspector method
2015-10-15 11:40:52 -07:00
Levi McCallum
8a77072e3c
Add tests for flow layout inspector section calculation
2015-10-15 11:40:51 -07:00
Garrett Moon
1a8f66919b
Add tests for enabling / disabling shouldRasterize
2015-10-06 11:47:13 -07:00
Adlai Holler
ac8b224d9b
Fix broken ASPhotosFrameworkImageRequest test
2015-10-02 13:04:48 -07:00
Adlai Holler
de1f9788f3
Simplify creation of Photos Framework NSURLs in ASMultiplexImageNode
2015-10-02 12:44:21 -07:00
Adlai Holler
bf88bd8e19
Rename image request class, add deliveryMode into the request params
2015-09-26 13:40:00 -07:00
Adlai Holler
ee0c027ba6
Build photos image request class and tests
2015-09-25 15:25:37 -07:00
Steven Ramkumar
d09888f9c2
Add a indexPathForNode: to ASTableView
2015-09-22 12:09:56 -07:00
appleguy
21bdbbe12f
Merge pull request #665 from jflinter/jack-build-phase-cleanup
...
Clean up Cocoa Touch framework target
2015-09-17 10:15:21 +02:00
Jack Flintermann
b84c371211
fix breaking test imports
2015-09-16 23:39:19 -04:00
Huy Nguyen
dfbaa35706
Disable an unstable test in ASTableViewTests.
2015-09-16 23:04:18 +03:00
Huy Nguyen
2d575fcafc
Relayout table view cell nodes if there is a mismatch between content view size and the node's constrained size
...
- Above is the generic case. Correctly handling it means relayout when the table view enters or leaves editing mode is solved as well.
- Async data source API removal: In a table view, cell nodes should always fill its content view and table view widths. Thus async data source can no longer provide custom constrained size for cell nodes. This removal allows table view to better handle relayout.
- Some more tests are added to ASTableViewTests to check against use cases handled in this diff.
2015-09-16 11:41:34 +03:00
rcancro
b14e189bfb
Addressed comments to LayoutOptions PR
2015-09-11 16:07:18 -07:00
appleguy
69365451d1
Merge pull request #643 from nguyenhuy/fixRelayoutDuringInitialConfig
...
Avoid doing relayout during initial configuration
2015-09-09 19:45:21 -07:00
Huy Nguyen
6383b69029
Update ASTableViewTests to detect the case when relayout is trigger during initial configuration.
2015-09-08 22:43:25 +03:00
rcancro
cbaf178950
Hide ASLayoutOptions from the user
2015-09-08 09:50:47 -07:00
rcancro
15b3fd6eab
Moved ASLayoutable* properties into ASLayoutOptions class
2015-09-08 09:50:27 -07:00
appleguy
38eae3ab77
Merge pull request #623 from rcancro/layoutSpec
...
ASLayoutSpec are temporarily mutable and have a more obj-c interface
2015-08-23 11:31:07 -07:00
rcancro
680305704a
addressed comments and fixed tests
2015-08-21 21:03:40 -07:00
Huy Nguyen
3e5d5c44cb
Test relayout caused by a different constrained size for each and every node. All nodes, including loading ones, must be re-measured.
2015-08-21 00:59:21 +03:00
Sal
f06630c55a
Add test coverage for ASTextNodeRenderer to validate nil and empty strings produce CGSizeZero
2015-08-13 13:57:54 -04:00
Shannon Ma
f7a4ca45db
Fix ASTextNodeWordKernerTests for Xcode 7/iOS 9
2015-07-31 11:31:10 -07:00
Ethan Nagel
3da7305abb
Wait to begin thrashing until we have completed reloading the data so we aren't trying to do both operations concurrently.
2015-07-15 16:31:01 -07:00
Ethan Nagel
8c72118e69
Don't abuse the CI servers so much. Note - With this configuration we will often pass with a known race issue we currently have. Making ASTableViewStressTest more interesting so we can reliably reproduce the issue there.
2015-07-15 10:19:03 -07:00
Ethan Nagel
98bdae8690
Merge branch 'master' into update-astable-test
2015-07-13 14:39:28 -07:00
Ethan Nagel
f010b0f3e3
Update ASTableView test to be more random and more rigorous.
2015-07-13 14:34:10 -07:00
Huy Nguyen
e1fd58268c
Clean up #468 :
...
- -layoutSpecThatFits: must return an ASLayoutSpec.
- Move ASDisplayNode's -measureWithSizeRange: redeclaration to ASDisplayNode.h.
- Rename ASStackLayoutChild.h to ASStackLayoutDefines.h.
- Rename ASStaticLayoutSpecDimension.h to ASRelativeSize.h.
- Don't import ASLayout.h in other headers to prevent circular inclusions.
- Explain use cases of ASLayout's initializers.
- Clean up ASInternalHelpers.h.
2015-07-10 19:41:17 +07:00
Victor Mayorov
01771f7860
Implemented test for crash in ASCollectionView on reloadData
2015-07-07 23:14:54 -07:00