test/tools/javadoc/api/basic/GetTask_WriterTest.java

changeset 1420
fb97eaf93d61
parent 1413
bdcef2ef52d2
child 2525
2eb010b6cb22
     1.1 --- a/test/tools/javadoc/api/basic/GetTask_WriterTest.java	Tue Nov 20 07:21:07 2012 -0800
     1.2 +++ b/test/tools/javadoc/api/basic/GetTask_WriterTest.java	Tue Nov 20 07:25:11 2012 -0800
     1.3 @@ -67,8 +67,9 @@
     1.4              String out = sw.toString();
     1.5              System.err.println(">>" + out + "<<");
     1.6              for (String f: standardExpectFiles) {
     1.7 -                if (f.endsWith(".html") && !out.contains(f))
     1.8 -                    throw new Exception("expected string not found: " + f);
     1.9 +                String f1 = f.replace('/', File.separatorChar);
    1.10 +                if (f1.endsWith(".html") && !out.contains(f1))
    1.11 +                    throw new Exception("expected string not found: " + f1);
    1.12              }
    1.13          } else {
    1.14              throw new Exception("task failed");

mercurial