aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatti Tahvonen <matti.tahvonen@itmill.com>2008-02-01 11:28:12 +0000
committerMatti Tahvonen <matti.tahvonen@itmill.com>2008-02-01 11:28:12 +0000
commit957c9525f4a2be63f72a68f78d7ec97696c735c0 (patch)
tree9dc2ccd51129f25d1c6aa851d05d921bc73b8c42
parent82adb4bc3e0e557b2b977dbc0563599f63a9f6f5 (diff)
downloadvaadin-framework-957c9525f4a2be63f72a68f78d7ec97696c735c0.tar.gz
vaadin-framework-957c9525f4a2be63f72a68f78d7ec97696c735c0.zip
java 1.4
svn changeset:3696/svn branch:trunk
-rw-r--r--src/com/itmill/toolkit/tests/TestSizeableIncomponents.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/com/itmill/toolkit/tests/TestSizeableIncomponents.java b/src/com/itmill/toolkit/tests/TestSizeableIncomponents.java
index 086829a5a0..032bb9f037 100644
--- a/src/com/itmill/toolkit/tests/TestSizeableIncomponents.java
+++ b/src/com/itmill/toolkit/tests/TestSizeableIncomponents.java
@@ -131,8 +131,9 @@ public class TestSizeableIncomponents extends Application {
String[] list2 = (new File(dir.getFile())).list();
for (int i = 0; i < list2.length; i++) {
String f = list2[i];
- if (f.endsWith(".class") && !f.contains("CustomComponent")) {
- f = f.replace(".class", "");
+ if (f.endsWith(".class") && (f.indexOf("CustomComponent") == -1)
+ && (f.indexOf("Window") == -1)) {
+ f = f.replaceAll(".class", "");
String className = "com.itmill.toolkit.ui." + f;
Class c;
try {
@@ -220,8 +221,8 @@ public class TestSizeableIncomponents extends Application {
public String getTestableName() {
StringBuffer sb = new StringBuffer();
- sb.append(classToTest.getName().replace("com.itmill.toolkit.ui.",
- ""));
+ sb.append(classToTest.getName().replaceAll(
+ "com.itmill.toolkit.ui.", ""));
sb.append("[");
for (Iterator i = configurations.iterator(); i.hasNext();) {
sb.append(((Configuration) i.next()).getDescription());