mirror of
https://github.com/HackPlan/AsyncDisplayKit.git
synced 2026-03-27 02:24:15 +08:00
Add tests for enabling / disabling shouldRasterize
This commit is contained in:
@@ -14,6 +14,12 @@
|
||||
{ \
|
||||
[ASSnapshotTestCase hackilySynchronouslyRecursivelyRenderNode:node__]; \
|
||||
FBSnapshotVerifyLayer(node__.layer, identifier__); \
|
||||
[node__ setShouldRasterizeDescendants:YES]; \
|
||||
[ASSnapshotTestCase hackilySynchronouslyRecursivelyRenderNode:node__]; \
|
||||
FBSnapshotVerifyLayer(node__.layer, identifier__); \
|
||||
[node__ setShouldRasterizeDescendants:NO]; \
|
||||
[ASSnapshotTestCase hackilySynchronouslyRecursivelyRenderNode:node__]; \
|
||||
FBSnapshotVerifyLayer(node__.layer, identifier__); \
|
||||
}
|
||||
|
||||
@interface ASSnapshotTestCase : FBSnapshotTestCase
|
||||
|
||||
Reference in New Issue
Block a user