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 152304 Details for
Bug 295253
Focusing control from the server side does not activate parent shell
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.
testcase.patch (text/plain), 1.85 KB, created by
Ivan Furnadjiev
on 2009-11-16 09:38:13 EST
(
hide
)
Description:
Test case.
Filename:
MIME Type:
Creator:
Ivan Furnadjiev
Created:
2009-11-16 09:38:13 EST
Size:
1.85 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.22 >diff -u -r1.22 Shell_Test.java >--- src/org/eclipse/swt/widgets/Shell_Test.java 2 Nov 2009 09:11:28 -0000 1.22 >+++ src/org/eclipse/swt/widgets/Shell_Test.java 16 Nov 2009 14:40:52 -0000 >@@ -114,7 +114,7 @@ > // expected > } > } >- >+ > public void testInitialValues() { > Display display = new Display(); > Shell shell = new Shell( display, SWT.NONE ); >@@ -349,6 +349,26 @@ > assertEquals( 0, log.size() ); > } > >+ public void testActiveShellOnFocusControl() { >+ final java.util.List log = new ArrayList(); >+ Display display = new Display(); >+ Shell shell = new Shell( display ); >+ Shell secondShell = new Shell( display ); >+ shell.open(); >+ secondShell.open(); >+ assertSame( secondShell, display.getActiveShell() ); >+ shell.addShellListener( new ShellAdapter() { >+ public void shellActivated( final ShellEvent event ) { >+ log.add( event ); >+ } >+ public void shellDeactivated( final ShellEvent event ) { >+ } >+ } ); >+ Button button = new Button( shell, SWT.PUSH ); >+ button.setFocus(); >+ assertSame( shell, display.getActiveShell() ); >+ assertEquals( 1, log.size() ); >+ } > > /* test case to simulate the scenario reported in this bug: > * 278996: [Shell] Stackoverflow when closing child shell >@@ -388,7 +408,7 @@ > dialog.close(); > // no assert: test case is to ensure that no stack overflow occurs > } >- >+ > public void testNoDeactivateEventOnDispose() { > RWTFixture.fakePhase( PhaseId.PROCESS_ACTION ); > final StringBuffer log = new StringBuffer();
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 295253
: 152304