From 8c963bd13cda4eb924b0dd734bf4786035dd6efd Mon Sep 17 00:00:00 2001 From: Samuel Hsiung Date: Wed, 27 Jan 2016 23:51:44 -0800 Subject: [PATCH] Fix attribute value setting in testLinkInTextUsesForegroundColor in ASTextKitTests --- AsyncDisplayKitTests/ASTextKitTests.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AsyncDisplayKitTests/ASTextKitTests.mm b/AsyncDisplayKitTests/ASTextKitTests.mm index ef16e9c03d..688113c27e 100644 --- a/AsyncDisplayKitTests/ASTextKitTests.mm +++ b/AsyncDisplayKitTests/ASTextKitTests.mm @@ -148,7 +148,7 @@ static BOOL checkAttributes(const ASTextKitAttributes &attributes, const CGSize // so we have to choose a style and color and match it in the text kit version // for this test NSUnderlineStyleAttributeName : @(NSUnderlineStyleSingle), - NSUnderlineColorAttributeName: [UIColor redColor], + NSUnderlineColorAttributeName: [UIColor blueColor], }; NSDictionary *textAttributes = @{NSFontAttributeName : [UIFont systemFontOfSize:12], }; @@ -165,7 +165,7 @@ static BOOL checkAttributes(const ASTextKitAttributes &attributes, const CGSize for (NSString *attributeName in linkTextAttributes.keyEnumerator) { [attrStr addAttribute:attributeName - value:linkTextAttributes[NSUnderlineStyleAttributeName] + value:linkTextAttributes[attributeName] range:selectedRange]; }