Set explicit designated requirements to ensure the signing behaves properly on versions of Mac OS X that don't know about Developer ID signing (OS X 10.6)
(transplanted from c5ac17ab998dcf932c5d7e778e153f92263c449a)
/*
* Adium is the legal property of its developers, whose names are listed in the copyright file included
* with this source distribution.
*
* This program is free software; you can redistribute it and/or modify it under the terms of the GNU
* General Public License as published by the Free Software Foundation; either version 2 of the License,
* or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
* Public License for more details.
*
* You should have received a copy of the GNU General Public License along with this program; if not,
* write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
STAssertTrue([output isKindOfClass:[NSString class]], @"Coercion to NSString must result in an NSString; instead, it resulted in an %@", [output class]);
STAssertEqualObjects(output, input, @"Coercion must not change the object's value");
}
- (void)testMutableAttributedStringToPlainText {
NSString *str = @"The quack is strong with this one.";
STAssertTrue([output isKindOfClass:[NSString class]], @"Coercion to NSString must result in an NSString; instead, it resulted in an %@", [output class]);
STAssertEqualObjects(output, input, @"Coercion must not change the object's value");
STAssertTrue([output isKindOfClass:destClass], @"Coercion to %@ must result in an %@; instead, it resulted in an %@", destClass, destClass, [output class]);
STAssertEqualObjects(output, input, @"Coercion must not change the object's value");
}
- (void)testPlainTextToMutableAttributedString {
NSString *str = @"More fun than a bag of chips.";
Class destClass = [NSMutableAttributedString class];
STAssertTrue([output isKindOfClass:destClass], @"Coercion to %@ must result in an %@; instead, it resulted in an %@", destClass, destClass, [output class]);
STAssertEqualObjects(output, input, @"Coercion must not change the object's value");
NSAttributedString *replacement = [[[NSAttributedString alloc] initWithString:@" (one of the slogans from the old Adium X site)" attributes:attrs] autorelease];
STAssertTrue([output isKindOfClass:[NSString class]], @"Coercion to NSString must result in an NSString; instead, it resulted in an %@", [output class]);
STAssertEqualObjects(output, str, @"Coercion must not change the object's value");
}
*/
-(void)testTextStorageToPlainTextWithMutations{
NSString*str=@"The only IM client with duck 'n' cover.";
NSAttributedString*replacement=[[[NSAttributedStringalloc]initWithString:@" (one of the slogans from the old Adium X site)"attributes:attrs]autorelease];