Add tests for enabling / disabling shouldRasterize

This commit is contained in:
Garrett Moon 2015-10-06 11:35:43 -07:00
parent 8a70c8d416
commit 1a8f66919b

View File

@ -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