diff options
author | Grant Gayed | 2005-01-13 22:28:59 +0000 |
---|---|---|
committer | Grant Gayed | 2005-01-13 22:28:59 +0000 |
commit | 95c4146eca8157b8b45c3e75e62de2027744ebb9 (patch) | |
tree | e6d6a2f2bec4db65e49c407db4649f696e1b6c87 | |
parent | 02a6cf62a41dc29a1bb37e280adbd40cfc9bdff8 (diff) | |
download | eclipse.platform.swt-95c4146eca8157b8b45c3e75e62de2027744ebb9.tar.gz eclipse.platform.swt-95c4146eca8157b8b45c3e75e62de2027744ebb9.tar.xz eclipse.platform.swt-95c4146eca8157b8b45c3e75e62de2027744ebb9.zip |
*** empty log message ***v3114for30c
-rw-r--r-- | tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/performance/SwtPerformanceTestCase.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/performance/SwtPerformanceTestCase.java b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/performance/SwtPerformanceTestCase.java index ca208740d4..44af22d152 100644 --- a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/performance/SwtPerformanceTestCase.java +++ b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/performance/SwtPerformanceTestCase.java @@ -27,6 +27,7 @@ public class SwtPerformanceTestCase extends TestCase { public static boolean verbose = false; public final static boolean isGTK = SWT.getPlatform().equals("gtk"); + public final static boolean isWindows = SWT.getPlatform().startsWith("win32"); // allow specific image formats to be tested public static String[] imageFormats = new String[] {"bmp", "jpg", "gif", "png"}; @@ -73,7 +74,7 @@ protected String getPath(String fileName) { } if (File.separatorChar != '/') urlPath = urlPath.replace('/', File.separatorChar); -// if (urlPath.indexOf(File.separatorChar) == 0) urlPath = urlPath.substring(1); + if (isWindows && urlPath.indexOf(File.separatorChar) == 0) urlPath = urlPath.substring(1); urlPath = urlPath.replaceAll("%20", " "); if (verbose) { |