Author: estherbin
Date: 2008-07-08 06:40:14 -0400 (Tue, 08 Jul 2008)
New Revision: 9084
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesComboBoxTemplateTestCase.java
Log:
Fix junit according to
http://jira.jboss.com/jira/browse/JBIDE-2430
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesComboBoxTemplateTestCase.java
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesComboBoxTemplateTestCase.java 2008-07-08
10:39:50 UTC (rev 9083)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesComboBoxTemplateTestCase.java 2008-07-08
10:40:14 UTC (rev 9084)
@@ -102,8 +102,8 @@
nsIDOMElement divOne = (nsIDOMElement)
elements.get(4).queryInterface(nsIDOMElement.NS_IDOMELEMENT_IID);
assertTrue("Style classes should be contains
",divOne.getAttribute(HTML.ATTR_CLASS).contains("rich-combobox-font
rich-combobox"));
- assertTrue("Defaule style should be contains " + DEFAULT_WIDTH,
divOne.getAttribute(HTML.ATTR_STYLE).indexOf("150") > 1);
- assertTrue("Defaule style should be contains " + DEFAULT_WIDTH,
divOne.getAttribute(HTML.ATTR_STYLE).startsWith("width"));
+ assertTrue("Defaule style should be contains " + width,
divOne.getAttribute(HTML.ATTR_STYLE).indexOf(width) > 1);
+ assertTrue("Defaule style should be contains " + width,
divOne.getAttribute(HTML.ATTR_STYLE).contains("width"));
// Check input
return rst;