Introduce ASLayoutable and eliminate ASCompositeNode:

- Both ASDisplayNode and ASLayoutNode conforms to this protocol.
- ASDisplayNode can be embeded directly into layout graph.
- Eliminate ASCompositeNode.
- Fix ASStaticSizeDisplayNode not recpect min constrained size.
- Updated tests.
This commit is contained in:
Huy Nguyen
2015-06-26 08:41:51 +07:00
parent 697b9f4c3c
commit f588bceb4d
40 changed files with 262 additions and 363 deletions

View File

@@ -7,7 +7,8 @@
//
#import "ASSnapshotTestCase.h"
#import "ASCompositeNode.h"
@class ASLayoutNode;
@interface ASLayoutNodeSnapshotTestCase: ASSnapshotTestCase
/**
@@ -18,7 +19,7 @@
@param identifier An optional identifier, used to identify this snapshot test.
@discussion In order to make the layout node visible, it is embeded to a ASDisplayNode host.
Any display nodes used within the layout (via ASCompositeNode) must be provided.
Any display nodes used within the layout must be provided.
They will be added to the host in the same order as the subnodes array.
*/
- (void)testLayoutNode:(ASLayoutNode *)layoutNode