From 34be9cea3a10466f39c70d8a2324874419815779 Mon Sep 17 00:00:00 2001 From: Alexander Ljungberg Date: Wed, 4 Jul 2012 23:17:38 +0100 Subject: [PATCH] Refs #1559. Fix split view autosave test. --- Tests/AppKit/CPSplitViewTest.j | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Tests/AppKit/CPSplitViewTest.j b/Tests/AppKit/CPSplitViewTest.j index 04a99b9be6..6551c07b57 100644 --- a/Tests/AppKit/CPSplitViewTest.j +++ b/Tests/AppKit/CPSplitViewTest.j @@ -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"]; }