Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 137466 Details for
Bug 278195
[Shell] Setting bounds must reset maximized state
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Test case
clipboard.txt (text/plain), 1.63 KB, created by
RĂ¼diger Herrmann
on 2009-05-28 08:12:52 EDT
(
hide
)
Description:
Test case
Filename:
MIME Type:
Creator:
RĂ¼diger Herrmann
Created:
2009-05-28 08:12:52 EDT
Size:
1.63 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.rap.rwt.test >Index: src/org/eclipse/swt/widgets/Shell_Test.java >=================================================================== >RCS file: /cvsroot/rt/org.eclipse.rap/runtime.rwt.test/org.eclipse.rap.rwt.test/src/org/eclipse/swt/widgets/Shell_Test.java,v >retrieving revision 1.13 >diff -u -r1.13 Shell_Test.java >--- src/org/eclipse/swt/widgets/Shell_Test.java 28 May 2009 12:01:46 -0000 1.13 >+++ src/org/eclipse/swt/widgets/Shell_Test.java 28 May 2009 12:14:08 -0000 >@@ -316,6 +316,35 @@ > assertEquals( shell.getBounds(), display.getBounds() ); > } > >+ public void testSetBoundsResetMaximized() { >+ Display display = new Display(); >+ Shell shell = new Shell( display ); >+ shell.setBounds( 1, 2, 3, 4 ); >+ shell.setMaximized( true ); >+ Rectangle bounds = new Rectangle( 10, 10, 10, 10 ); >+ shell.setBounds( bounds ); >+ assertFalse( shell.getMaximized() ); >+ assertEquals( bounds, shell.getBounds() ); >+ } >+ >+ public void testSetLocationResetMaximized() { >+ Display display = new Display(); >+ Shell shell = new Shell( display ); >+ shell.setBounds( 1, 2, 3, 4 ); >+ shell.setMaximized( true ); >+ shell.setLocation( 10, 10 ); >+ assertFalse( shell.getMaximized() ); >+ } >+ >+ public void testSetSizeResetMaximized() { >+ Display display = new Display(); >+ Shell shell = new Shell( display ); >+ shell.setBounds( 1, 2, 3, 4 ); >+ shell.setMaximized( true ); >+ shell.setSize( 6, 6 ); >+ assertFalse( shell.getMaximized() ); >+ } >+ > protected void setUp() throws Exception { > RWTFixture.setUp(); > RWTFixture.fakePhase( PhaseId.PROCESS_ACTION );
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 278195
:
137466
|
137975
|
140422