mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 00:02:28 +00:00
Minor GUI changes
Updated KeePassKit submodule Added test stub for autotype parsing
This commit is contained in:
BIN
MacPassTests/Databases/Autotype_test.kdbx
Normal file
BIN
MacPassTests/Databases/Autotype_test.kdbx
Normal file
Binary file not shown.
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user