@@ -49,6 +49,7 @@ static dispatch_block_t modifyMethodByAddingPrologueBlockAndReturnCleanupBlock(C
4949
5050@interface ASDisplayNode (PrivateStuffSoWeDontPullInCPPInternalH)
5151- (BOOL )__visibilityNotificationsDisabled ;
52+ - (BOOL )__selfOrParentHasVisibilityNotificationsDisabled ;
5253- (id )initWithViewClass : (Class )viewClass ;
5354- (id )initWithLayerClass : (Class )layerClass ;
5455@end
@@ -360,6 +361,7 @@ - (void)checkMoveAcrossHierarchyLayerBacked:(BOOL)isLayerBacked useManualCalls:(
360361 }
361362 if (useManualDisable) {
362363 XCTAssertTrue ([child __visibilityNotificationsDisabled ], @" Should not have re-enabled yet" );
364+ XCTAssertTrue ([child __selfOrParentHasVisibilityNotificationsDisabled ], @" Should not have re-enabled yet" );
363365 ASDisplayNodeEnableHierarchyNotifications (child);
364366 }
365367
@@ -377,6 +379,7 @@ - (void)checkMoveAcrossHierarchyLayerBacked:(BOOL)isLayerBacked useManualCalls:(
377379 }
378380 if (useManualDisable) {
379381 XCTAssertTrue ([child __visibilityNotificationsDisabled ], @" Should not have re-enabled yet" );
382+ XCTAssertTrue ([child __selfOrParentHasVisibilityNotificationsDisabled ], @" Should not have re-enabled yet" );
380383 ASDisplayNodeEnableHierarchyNotifications (child);
381384 }
382385
@@ -390,6 +393,7 @@ - (void)checkMoveAcrossHierarchyLayerBacked:(BOOL)isLayerBacked useManualCalls:(
390393
391394 // Make sure that we don't leave these unbalanced
392395 XCTAssertFalse ([child __visibilityNotificationsDisabled ], @" Unbalanced visibility notifications calls" );
396+ XCTAssertFalse ([child __selfOrParentHasVisibilityNotificationsDisabled ], @" Should not have re-enabled yet" );
393397
394398 [window release ];
395399}
0 commit comments