Skip to content

Commit

Permalink
Refs #1559. Fix split view autosave test.
Browse files Browse the repository at this point in the history
  • Loading branch information
aljungberg committed Jul 4, 2012
1 parent 6181949 commit 34be9ce
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Tests/AppKit/CPSplitViewTest.j
Expand Up @@ -125,12 +125,12 @@
// Recreate the split view.
[self setUp];
[splitView setAutosaveName:@"Charles"];

// FIXME At the moment restore from autosave only happens if the split view is loaded from a
// coder. It seems like it should happen when initialising in code too, but some research of
// Cocoa's behaviour will need to be done first.
splitView._needsRestoreFromAutosave = YES;
// Trigger autosave restore.
[splitView setFrameSize:CGSizeMake(110, 100)];
// Cocoa's behaviour will need to be done first. For now, trigger it by hand.
[splitView _restoreFromAutosave];

[self assert:25 equals:[viewA frameSize].height message:@"divider position restored"];
}

Expand Down

0 comments on commit 34be9ce

Please sign in to comment.