Skip to content

Commit 1a8f669

Browse files
committed
Add tests for enabling / disabling shouldRasterize
1 parent 8a70c8d commit 1a8f669

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

AsyncDisplayKitTests/ASSnapshotTestCase.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@
1414
{ \
1515
[ASSnapshotTestCase hackilySynchronouslyRecursivelyRenderNode:node__]; \
1616
FBSnapshotVerifyLayer(node__.layer, identifier__); \
17+
[node__ setShouldRasterizeDescendants:YES]; \
18+
[ASSnapshotTestCase hackilySynchronouslyRecursivelyRenderNode:node__]; \
19+
FBSnapshotVerifyLayer(node__.layer, identifier__); \
20+
[node__ setShouldRasterizeDescendants:NO]; \
21+
[ASSnapshotTestCase hackilySynchronouslyRecursivelyRenderNode:node__]; \
22+
FBSnapshotVerifyLayer(node__.layer, identifier__); \
1723
}
1824

1925
@interface ASSnapshotTestCase : FBSnapshotTestCase

0 commit comments

Comments
 (0)