Author: dmaliarevich
Date: 2012-02-10 10:12:09 -0500 (Fri, 10 Feb 2012)
New Revision: 38604
Modified:
trunk/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/editor/ScrollingTest_Jbide8701.java
Log:
https://issues.jboss.org/browse/JBIDE-8701 - junit was updated.
Modified:
trunk/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/editor/ScrollingTest_Jbide8701.java
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/editor/ScrollingTest_Jbide8701.java 2012-02-10
14:59:45 UTC (rev 38603)
+++
trunk/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/editor/ScrollingTest_Jbide8701.java 2012-02-10
15:12:09 UTC (rev 38604)
@@ -107,11 +107,11 @@
domWindow.scrollTo(0,0);
TestUtil.delay(DELAY_1S);
int topIndex = sourceEditor.getTextViewer().getTopIndex();
- assertTrue("Top source line is wrong", topIndex < 100); //$NON-NLS-1$
+ assertTrue("Top source line is wrong, top line is " + topIndex + ",
but should be less than 100", topIndex < 100); //$NON-NLS-1$ //$NON-NLS-2$
domWindow.scrollTo(0, halfHeight);
TestUtil.delay(DELAY_1S);
topIndex = sourceEditor.getTextViewer().getTopIndex();
- assertTrue("Top source line for the middle position is wrong", topIndex
< 700); //$NON-NLS-1$
+ assertTrue("Top source line for the middle position is wrong, top line is "
+ topIndex + ", but should be less than 700", topIndex < 700); //$NON-NLS-1$
//$NON-NLS-2$
testFinished = true;
}
}