Minor GUI changes

Updated KeePassKit submodule
Added test stub for autotype parsing
This commit is contained in:
michael starke
2013-08-17 01:45:18 +02:00
parent f335825c44
commit bbd0062301
5 changed files with 27 additions and 32 deletions

Binary file not shown.

View File

@@ -36,4 +36,15 @@
STAssertTrue([tree.root.entries count] == 1, @"Tree has only one entry");
}
- (void)testAutotypeLoading {
NSBundle *myBundle = [NSBundle bundleForClass:[self class]];
NSURL *url = [myBundle URLForResource:@"Autotype_test" withExtension:@"kdbx"];
KPKPassword *password = [[KPKPassword alloc] initWithPassword:@"text" key:nil];
NSError *error;
KPKTree *tree = [[KPKTree alloc] initWithContentsOfUrl:url password:password error:&error];
STAssertNotNil(tree, @"Tree shoud be loaded");
KPKEntry *entry = tree.root.entries[0];
STAssertNotNil(entry, @"Entry should be there");
}
@end