mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-22 22:45:52 +00:00
Fixed: CPApplicationTest.
A recent commit broke it.
This commit is contained in:
1 parent
0e82504daf
commit
4021eae002
1 file changed
+4
-3
@@ -90,10 +90,11 @@ var globalResults = [];
|
||||
|
||||
- (void)testRunModalForWindow
|
||||
{
|
||||
[app runModalForWindow:aWindow];
|
||||
var modalWindow = [[CPWindow alloc] init];
|
||||
[app runModalForWindow:modalWindow];
|
||||
|
||||
[self assertTrue:[aWindow isKeyWindow] message:@"A window must be made key when it's run modally"];
|
||||
[self assertFalse:[aWindow isMainWindow] message:@"A window must not become the main window when it's run modally"];
|
||||
[self assertTrue:[modalWindow isKeyWindow] message:@"A window must be made key when it's run modally"];
|
||||
[self assertFalse:[modalWindow isMainWindow] message:@"A window must not become the main window when it's run modally"];
|
||||
|
||||
[app abortModal];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user