Author: lfryc(a)redhat.com
Date: 2009-12-15 04:19:04 -0500 (Tue, 15 Dec 2009)
New Revision: 16131
Modified:
branches/sandbox/rf-demo-ftest-iexplore/src/test/java/org/jboss/richfaces/integrationTest/progressBar/ProgressBarTestCase.java
Log:
* ProgressBar - method is now recognizing length unit in px and % instead of px only
Modified:
branches/sandbox/rf-demo-ftest-iexplore/src/test/java/org/jboss/richfaces/integrationTest/progressBar/ProgressBarTestCase.java
===================================================================
---
branches/sandbox/rf-demo-ftest-iexplore/src/test/java/org/jboss/richfaces/integrationTest/progressBar/ProgressBarTestCase.java 2009-12-15
09:17:19 UTC (rev 16130)
+++
branches/sandbox/rf-demo-ftest-iexplore/src/test/java/org/jboss/richfaces/integrationTest/progressBar/ProgressBarTestCase.java 2009-12-15
09:19:04 UTC (rev 16131)
@@ -64,7 +64,7 @@
}
public boolean isTrue() {
- newValue = (int) Double.parseDouble(getStyle(locator,
"width").replace("px", ""));
+ newValue = (int) Double.parseDouble(getStyle(locator,
"width").replaceAll("(px|%)$", ""));
return newValue > oldValue;
}
}
Show replies by date