Author: konstantin.mishin
Date: 2008-12-08 10:38:23 -0500 (Mon, 08 Dec 2008)
New Revision: 11641
Modified:
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/SeleniumTestBase.java
Log:
RF-5197
only for test
Modified:
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/SeleniumTestBase.java
===================================================================
---
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/SeleniumTestBase.java 2008-12-08
15:29:18 UTC (rev 11640)
+++
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/SeleniumTestBase.java 2008-12-08
15:38:23 UTC (rev 11641)
@@ -157,8 +157,12 @@
System.out.println("------>firefoxDir#" + j + ": " +
firefoxDirs[j].getPath());
File[] firefoxes = firefoxDirs[j].listFiles(new FileFilter() {
public boolean accept(File pathname) {
- return pathname != null&&
pathname.getName().startsWith("firefox")
- && pathname.isFile();
+ boolean result = false;
+ if (pathname != null && pathname.isFile()) {
+ String name = pathname.getName();
+ result = "firefox".equals(name) ||
"firefox-bin".equals(name);
+ }
+ return result;
}
});
for (int k = firefoxes.length - 1; k >= 0 &&
"*firefox".equals(browser); k--) {
Show replies by date