Fixed: CPApplicationTest.

A recent commit broke it.
This commit is contained in:
Alexander Ljungberg committed 2013-01-15 16:06:44 +00:00
1 parent 0e82504daf
commit 4021eae002
1 file changed
+4 -3
+4 -3
View File
@@ -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];
}