diff --git a/KeePassKit b/KeePassKit index 55f5d895..b39c6ee7 160000 --- a/KeePassKit +++ b/KeePassKit @@ -1 +1 @@ -Subproject commit 55f5d8950f736543f1de4079ff37c8be73b85135 +Subproject commit b39c6ee73521445df3ad3e914b61ca6648134924 diff --git a/MacPass.xcodeproj/project.pbxproj b/MacPass.xcodeproj/project.pbxproj index 5033227f..ecd96c6f 100644 --- a/MacPass.xcodeproj/project.pbxproj +++ b/MacPass.xcodeproj/project.pbxproj @@ -1213,14 +1213,14 @@ 4C305F3B179A19F90082334F /* KPKIconLoading.m */, 4C1842B6179B348600E2F5BC /* KPKLegacyLoadingTest.h */, 4C1842B7179B348600E2F5BC /* KPKLegacyLoadingTest.m */, + 4CECB31517AC326D00EAFB0F /* KPKLegacyWritingTest.h */, + 4CECB31617AC326D00EAFB0F /* KPKLegacyWritingTest.m */, 4CFC8741179DFD3E000DFC03 /* KPKXmlLoadingTest.h */, 4CFC8742179DFD3E000DFC03 /* KPKXmlLoadingTest.m */, 4C79E80417A9400500AC6CD2 /* KPKTestNSCoding.h */, 4C79E80517A9400500AC6CD2 /* KPKTestNSCoding.m */, 4C79E80717A9485600AC6CD2 /* KPKTestNSCopying.h */, 4C79E80817A9485600AC6CD2 /* KPKTestNSCopying.m */, - 4CECB31517AC326D00EAFB0F /* KPKLegacyWritingTest.h */, - 4CECB31617AC326D00EAFB0F /* KPKLegacyWritingTest.m */, 4CAC614117AD319200023F9E /* KPKTestXmlParsing.h */, 4CAC614217AD319200023F9E /* KPKTestXmlParsing.m */, 4C6366AD17AF207600AAF17D /* KPKTestHexColor.h */, diff --git a/MacPassTests/KPKTestHexColor.m b/MacPassTests/KPKTestHexColor.m index c8c43d12..607d6c0c 100644 --- a/MacPassTests/KPKTestHexColor.m +++ b/MacPassTests/KPKTestHexColor.m @@ -36,13 +36,11 @@ - (void)testColorRefReading { uint32_t colorBytes = 0x000000FF; - uint32_t swappedData = colorBytes; - NSData *colorData = [NSData dataWithBytesNoCopy:&swappedData length:sizeof(uint32_t) freeWhenDone:NO]; + NSData *colorData = [NSData dataWithBytesNoCopy:&colorBytes length:3 freeWhenDone:NO]; NSColor *color = [NSColor colorWithData:colorData]; - STAssertEquals([color redComponent], 0.0, @"Red 100%"); + STAssertEquals([color redComponent], 1.0, @"Red 100%"); STAssertEquals([color greenComponent], 0.0, @"Green 0%"); - STAssertEquals([color blueComponent], 1.0, @"Blue 100%"); - + STAssertEquals([color blueComponent], 0.0, @"Blue 100%"); } @end