Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 353366 - Tests failures for empty label width (testSaveAs, testExportResources, etc.)
Summary: Tests failures for empty label width (testSaveAs, testExportResources, etc.)
Status: CLOSED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.7   Edit
Hardware: PC Linux-GTK
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
: 353789 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-07-28 15:58 EDT by Oleg Besedin CLA
Modified: 2019-11-14 03:31 EST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.