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 180973 Details for
Bug 327906
Display#wake does not work reliably during lifecycle
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.76 KB, created by
Ralf Sternberg
on 2010-10-15 11:33:08 EDT
(
hide
)
Description:
Test case
Filename:
MIME Type:
Creator:
Ralf Sternberg
Created:
2010-10-15 11:33:08 EDT
Size:
1.76 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.rap.rwt.test >Index: src/org/eclipse/rwt/internal/lifecycle/UICallBackManager_Test.java >=================================================================== >RCS file: /cvsroot/rt/org.eclipse.rap/runtime.rwt.test/org.eclipse.rap.rwt.test/src/org/eclipse/rwt/internal/lifecycle/UICallBackManager_Test.java,v >retrieving revision 1.15 >diff -u -r1.15 UICallBackManager_Test.java >--- src/org/eclipse/rwt/internal/lifecycle/UICallBackManager_Test.java 28 Apr 2010 07:39:46 -0000 1.15 >+++ src/org/eclipse/rwt/internal/lifecycle/UICallBackManager_Test.java 15 Oct 2010 15:32:25 -0000 >@@ -109,6 +109,27 @@ > assertFalse( UICallBackManager.getInstance().isCallBackRequestBlocked() ); > } > >+ // same test as above, but while UIThread running >+ public void testWaitOnBackgroundThread_DuringLifecycle() throws Exception { >+ final Throwable[] uiCallBackServiceHandlerThrowable = { null }; >+ ServiceContext context = ContextProvider.getContext(); >+ simulateUiCallBackThread( uiCallBackServiceHandlerThrowable, context ); >+ assertNull( uiCallBackServiceHandlerThrowable[ 0 ] ); >+ assertTrue( UICallBackManager.getInstance().isCallBackRequestBlocked() ); >+ Thread thread = new Thread( new Runnable() { >+ public void run() { >+ display.wake(); >+ } >+ } ); >+ // assume that UIThread is currently running the life cycle >+ UICallBackManager.getInstance().notifyUIThreadStart(); >+ thread.start(); >+ thread.join(); >+ Thread.sleep( SLEEP_TIME ); >+ UICallBackManager.getInstance().notifyUIThreadEnd(); >+ assertFalse( UICallBackManager.getInstance().isCallBackRequestBlocked() ); >+ } >+ > public void testAsyncExecWhileLifeCycleIsRunning() { > fakeRequestParam( display ); > Fixture.fakePhase( PhaseId.READ_DATA );
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 327906
: 180973 |
181081