|
Lines 9-15
Link Here
|
| 9 |
* Innoopract Informationssysteme GmbH - initial API and implementation |
9 |
* Innoopract Informationssysteme GmbH - initial API and implementation |
| 10 |
* EclipseSource - ongoing development |
10 |
* EclipseSource - ongoing development |
| 11 |
******************************************************************************/ |
11 |
******************************************************************************/ |
| 12 |
|
|
|
| 13 |
package org.eclipse.rwt.internal.lifecycle; |
12 |
package org.eclipse.rwt.internal.lifecycle; |
| 14 |
|
13 |
|
| 15 |
import junit.framework.TestCase; |
14 |
import junit.framework.TestCase; |
|
Lines 61-75
Link Here
|
| 61 |
} ); |
60 |
} ); |
| 62 |
RWTFixture.executeLifeCycleFromServerThread( ); |
61 |
RWTFixture.executeLifeCycleFromServerThread( ); |
| 63 |
String expectedStart |
62 |
String expectedStart |
| 64 |
= "org.eclipse.swt.EventUtil.suspendEventHandling();" |
63 |
= "var req = org.eclipse.swt.Request.getInstance();" |
| 65 |
+ "var req = org.eclipse.swt.Request.getInstance();" |
|
|
| 66 |
+ "req.setRequestCounter("; |
64 |
+ "req.setRequestCounter("; |
| 67 |
String expectedEnd |
|
|
| 68 |
= ");qx.ui.core.Widget.flushGlobalQueues();" |
| 69 |
+ "org.eclipse.swt.EventUtil.resumeEventHandling();"; |
| 70 |
String allMarkup = Fixture.getAllMarkup(); |
65 |
String allMarkup = Fixture.getAllMarkup(); |
| 71 |
assertTrue( allMarkup.startsWith( expectedStart ) ); |
66 |
assertTrue( allMarkup.startsWith( expectedStart ) ); |
| 72 |
assertTrue( allMarkup.endsWith( expectedEnd ) ); |
|
|
| 73 |
} |
67 |
} |
| 74 |
|
68 |
|
| 75 |
protected void setUp() throws Exception { |
69 |
protected void setUp() throws Exception { |