Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 44655 - [Dialogs] [tests] failure in UIComparePreferencesAuto#testCompareViewersPref
Summary: [Dialogs] [tests] failure in UIComparePreferencesAuto#testCompareViewersPref
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows 2000
: P5 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-10 10:45 EDT by John Arthorne CLA
Modified: 2021-10-16 18:13 EDT (History)
0 users

See Also:


Attachments
Screen shot of test workbench with clipped button text (second button from top) (13.86 KB, image/jpeg)
2004-12-09 17:45 EST, John Arthorne CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description John Arthorne CLA 2003-10-10 10:45:50 EDT
Build: I20031009

This test consistently fails for me on my machine.  From looking at the tests, I
suspect it is related to the fact that I use extra large fonts (9 pt. Verdana at
125% zoom) on a 1280x960 resolution display.

junit.framework.AssertionFailedError: Warning: Button {&Show additional compare
information in the status line}
	Actual Width -> 382
	Recommended Width -> 425
	at junit.framework.Assert.fail(Assert.java:47)
	at junit.framework.Assert.assertTrue(Assert.java:20)
	at org.eclipse.ui.tests.util.DialogCheck.verifyButtonText(DialogCheck.java:183)
	at org.eclipse.ui.tests.util.DialogCheck.verifyCompositeText(DialogCheck.java:133)
	at org.eclipse.ui.tests.util.DialogCheck.verifyCompositeText(DialogCheck.java:141)
	at org.eclipse.ui.tests.util.DialogCheck.verifyCompositeText(DialogCheck.java:141)
	at org.eclipse.ui.tests.util.DialogCheck.verifyCompositeText(DialogCheck.java:141)
	at org.eclipse.ui.tests.util.DialogCheck.verifyCompositeText(DialogCheck.java:141)
	at org.eclipse.ui.tests.util.DialogCheck.verifyCompositeText(DialogCheck.java:141)
	at org.eclipse.ui.tests.util.DialogCheck.verifyCompositeText(DialogCheck.java:141)
	at org.eclipse.ui.tests.util.DialogCheck.assertDialogTexts(DialogCheck.java:89)
	at
org.eclipse.ui.tests.compare.UIComparePreferencesAuto.testCompareViewersPref(UIComparePreferencesAuto.java:60)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at junit.framework.TestCase.runTest(TestCase.java:154)
	at junit.framework.TestCase.runBare(TestCase.java:127)
	at junit.framework.TestResult$1.protect(TestResult.java:106)
	at junit.framework.TestResult.runProtected(TestResult.java:124)
	at junit.framework.TestResult.run(TestResult.java:109)
	at junit.framework.TestCase.run(TestCase.java:118)
	at junit.framework.TestSuite.runTest(TestSuite.java:208)
	at junit.framework.TestSuite.run(TestSuite.java:203)
	at junit.framework.TestSuite.runTest(TestSuite.java:208)
	at junit.framework.TestSuite.run(TestSuite.java:203)
	at junit.framework.TestSuite.runTest(TestSuite.java:208)
	at junit.framework.TestSuite.run(TestSuite.java:203)
	at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:395)
	at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:279)
	at
org.eclipse.pde.internal.junit.runtime.RemotePluginTestRunner.main(RemotePluginTestRunner.java:30)
	at
org.eclipse.pde.internal.junit.runtime.UITestApplication.runEventLoop(UITestApplication.java:35)
	at org.eclipse.ui.internal.Workbench.run(Workbench.java:2326)
	at
org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:858)
	at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:299)
	at org.eclipse.core.launcher.Main.run(Main.java:765)
	at org.eclipse.core.launcher.Main.main(Main.java:599)
Comment 1 Tod Creasey CLA 2004-02-11 17:27:56 EST
Just tested using 20040210 with extra large fonts and it works for me. Please 
reopen if this is still an issue.
Comment 2 John Arthorne CLA 2004-12-09 17:40:57 EST
This still fails for me.  I now use a 1600x1200 display with 140% Verdana as my
font.  When I put a breakpoint at the failure, I can see that the test dialog is
indeed showing a button that is being clipped in the preference dialog. I don't
know if this is really cause for a test failure though since the preference
dialog is resizable by the user.
Comment 3 John Arthorne CLA 2004-12-09 17:45:06 EST
Created attachment 16505 [details]
Screen shot of test workbench with clipped button text (second button from top)
Comment 4 Susan McCourt CLA 2007-06-29 12:54:48 EDT
same test is failing differently (with 0 button width) in bug #164412
Comment 5 Susan McCourt CLA 2009-07-09 15:31:21 EDT
As per http://wiki.eclipse.org/Platform_UI/Bug_Triage_Change_2009
Comment 6 Eclipse Webmaster CLA 2019-09-06 16:08:50 EDT
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.
Comment 7 Eclipse Genie CLA 2021-10-16 18:13:50 EDT
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. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. 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.

--
The automated Eclipse Genie.