Author: mareshkau
Date: 2008-11-10 11:37:32 -0500 (Mon, 10 Nov 2008)
New Revision: 11641
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE3127Test.java
trunk/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/ComponentContentTest.java
Log:
JBIDE-3127 junit test adjustment, also was removed unused delay time from content tests
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE3127Test.java
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE3127Test.java 2008-11-10
16:14:48 UTC (rev 11640)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE3127Test.java 2008-11-10
16:37:32 UTC (rev 11641)
@@ -47,10 +47,13 @@
editorPart.maximizeSource();
assertFalse("Visual part shouldn't be
visible",vpeController.isVisualEditorVisible()); //$NON-NLS-1$
//change source code
-
editor.getSourceEditor().getTextViewer().getTextWidget().replaceTextRange(offcet-10,
"replaced text".length(), "replaced text"); //$NON-NLS-1$
//$NON-NLS-2$
+
editor.getSourceEditor().getTextViewer().getTextWidget().replaceTextRange(offcet-20,
"replaced text".length(), "replaced text"); //$NON-NLS-1$
//$NON-NLS-2$
assertFalse("Synced should be false",vpeController.isSynced());
//$NON-NLS-1$
editorPart.maximizeVisual();
vpeController.visualRefresh();
+ //wait while refresh jobs start
+ TestUtil.delay(500);
+ TestUtil.waitForJobs();
if(getException()!=null) {
throw new Exception(getException());
}
Modified:
trunk/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/ComponentContentTest.java
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/ComponentContentTest.java 2008-11-10
16:14:48 UTC (rev 11640)
+++
trunk/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/ComponentContentTest.java 2008-11-10
16:37:32 UTC (rev 11641)
@@ -79,7 +79,6 @@
TestUtil.waitForJobs();
- TestUtil.delay(2000);
VpeController controller = getVpeController((JSPMultiPageEditor) editor);
// get xml test file
Show replies by date