Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 353366

Summary: Tests failures for empty label width (testSaveAs, testExportResources, etc.)
Product: [Eclipse Project] Platform Reporter: Oleg Besedin <ob1.eclipse>
Component: UIAssignee: Platform UI Triaged <platform-ui-triaged>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert, karsten.thoms, kim.moir, pwebster
Version: 3.7   
Target Milestone: ---   
Hardware: PC   
OS: Linux-GTK   
Whiteboard: stalebug

Description Oleg Besedin CLA 2011-07-28 15:58:19 EDT
The have about 23 tests failing on Linux. The test failures seem to be triggered by empty labels ("") in dialogs. Test expects the width for those tables to be DEFAULT_WIDTH (64), instead they have width of 5.

The tests started failing with the nightly build N20110725-2000 and I-build I20110719-0800.

Typical failure stack:
Warning: Label {} Actual Width -> 5 Recommended Width -> 64

junit.framework.AssertionFailedError: Warning: Label {}
Actual Width -> 5
Recommended Width -> 64
at org.eclipse.ui.tests.harness.util.DialogCheck.verifyLabelText(DialogCheck.java:192)
at org.eclipse.ui.tests.harness.util.DialogCheck.verifyCompositeText(DialogCheck.java:128)
at org.eclipse.ui.tests.harness.util.DialogCheck.verifyCompositeText(DialogCheck.java:132)
at org.eclipse.ui.tests.harness.util.DialogCheck.assertDialogTexts(DialogCheck.java:84)
at org.eclipse.ui.tests.dialogs.UIDialogsAuto.testSaveAs(UIDialogsAuto.java:151)


The full list of failing tests:
testNewFileType
testSaveAs
testExportResources
testImportResources
testNewFile
testNewFile2
testNewFolder
testNewProjectPage1
testNewProjectPage2
testNewProject
testNewResource
testExportResources
testImportResources
testNewFile
testNewFile2
testNewFolder
testNewProjectPage1
testNewProjectPage2
testNewProject
testNewResource
testTypePage
testEditPage
testEditPage
Comment 1 Oleg Besedin CLA 2011-07-28 16:01:10 EDT
The problem is specific to Linux. 

For now I'll add check to skip testing width of empty labels. That number does not seem to be important. It would be interesting to see why we have this change.
Comment 2 Oleg Besedin CLA 2011-08-03 11:48:14 EDT
*** Bug 353789 has been marked as a duplicate of this bug. ***
Comment 3 Lars Vogel CLA 2019-11-14 03:24:46 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

If the bug is still relevant, please remove the "stalebug" whiteboard tag.