Author: scabanovich
Date: 2011-10-03 15:49:45 -0400 (Mon, 03 Oct 2011)
New Revision: 35297
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE2219Test.java
Log:
JBIDE-9815
https://issues.jboss.org/browse/JBIDE-9815
Added check for property 'dirty' on editor to existing test that really had to to
it. The test checks that editor can be closed without saving, but before that it had to
ensure that modification had set property 'dirty' to true.
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE2219Test.java
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE2219Test.java 2011-10-03
19:37:40 UTC (rev 35296)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE2219Test.java 2011-10-03
19:49:45 UTC (rev 35297)
@@ -57,7 +57,9 @@
//sets caret in the begining of text
styledText.setCaretOffset(0);
assertTrue("Char count should be a 0", styledText.getCharCount()==0);
//$NON-NLS-1$
+ assertFalse(part.isDirty());
styledText.insert("Test "); //$NON-NLS-1$
+ assertTrue(part.isDirty());
styledText.setSelection(0, 1);
assertTrue("Char count shouldn't be a 0",styledText.getCharCount()>2);
//$NON-NLS-1$
TestUtil.delay();