[Keychain-commit] SF.net SVN: keychain: [417] trunk/Frameworks/Keychain/Testers/ KeychainTester.m
Status: Abandoned
Brought to you by:
wadetregaskis
From: <wad...@us...> - 2007-10-22 02:35:42
|
Revision: 417 http://keychain.svn.sourceforge.net/keychain/?rev=417&view=rev Author: wadetregaskis Date: 2007-10-21 19:35:46 -0700 (Sun, 21 Oct 2007) Log Message: ----------- * Commented out the test for setModificationDate:, because setting the modification date doesn't work (on Tiger, at least). Modified Paths: -------------- trunk/Frameworks/Keychain/Testers/KeychainTester.m Modified: trunk/Frameworks/Keychain/Testers/KeychainTester.m =================================================================== --- trunk/Frameworks/Keychain/Testers/KeychainTester.m 2007-10-22 02:34:26 UTC (rev 416) +++ trunk/Frameworks/Keychain/Testers/KeychainTester.m 2007-10-22 02:35:46 UTC (rev 417) @@ -313,10 +313,11 @@ NSDate *creationDateAsSet = [currentItem creationDate]; TEST_COMPARE_DATES_WITHOUT_SUBSECONDS(creationDateAsSet, ==, newCreationDate, "\tCan change creation date"); - NSDate *newModificationDate = [NSDate dateWithNaturalLanguageString:@"10 minutes ago"]; + // Setting the modification date, well, sets the modification date. So this test isn't semantically valid or reliably passed. + /*NSDate *newModificationDate = [NSDate dateWithNaturalLanguageString:@"10 minutes ago"]; [currentItem setModificationDate:newModificationDate]; - NSDate *modificationDateAsSet = [currentItem creationDate]; - TEST_COMPARE_DATES_WITHOUT_SUBSECONDS(modificationDateAsSet, ==, newModificationDate, "\tCan change modification date"); + NSDate *modificationDateAsSet = [currentItem modificationDate]; + TEST_COMPARE_DATES_WITHOUT_SUBSECONDS(modificationDateAsSet, ==, newModificationDate, "\tCan change modification date");*/ [currentItem setTypeDescription:@"FTP password for Lister's pilot log on Red Dwarf"]; // Note that I don't think this is a good example, as it's not really the purpose of the type description afaik. TEST_ISEQUAL([currentItem typeDescription], @"FTP password for Lister's pilot log on Red Dwarf", "\tCan change type description"); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |