Bug 56284 - Test failure IWorkbenchPageTest.testCloseEditors
Summary: Test failure IWorkbenchPageTest.testCloseEditors
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows 2000
: P2 major (vote)
Target Milestone: 3.0 M8   Edit
Assignee: Chris McLaren CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-25 21:16 EST by Nick Edgar CLA
Modified: 2004-03-26 00:17 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Edgar CLA 2004-03-25 21:16:07 EST
The IWorkbenchPageTest.testCloseEditors is failing in the latest code from head.

Tod says:
FYI I have disabled this line in the test as Chris thinks it may now be obsolete
with todays rework and there was no point declaring a build failure this close
to the milestone before Chris got a chance to look at it.

Nick says:
I don't think the test should be disabled.  Although the isDirty check on that
line seems unrelated to the test for whether closeEditors(emptyArray) calls
doSave on the other editors, it should have been called when the editor was
opened.  This is happening correctly in other cases.  EditorPresentation.initTab
calls it when getting the initial label text.  So this indicates that opening an
editor in this case is not initializing the presentaton tab.

I'll try to dig a little further.
Comment 1 Nick Edgar CLA 2004-03-25 21:18:24 EST
Traced through the previous openEditor.  In EditorWorkbook.add(LayoutPart),
showPart is not getting called because active==false.
It looks like this can only be false when the workbook is disposed, but it's
still the active workbook.
Comment 2 Nick Edgar CLA 2004-03-26 00:17:25 EST
Provided a different fix for bug 55905.  The test no longer fails.