1 /* |
1 /* |
2 * Copyright (c) 2004, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2004, 2014, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
45 private static final String[] ARGS = new String[] { |
45 private static final String[] ARGS = new String[] { |
46 "-Xdoclint:none", "-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg" |
46 "-Xdoclint:none", "-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg" |
47 }; |
47 }; |
48 |
48 |
49 private static final String[] ARGS2 = new String[] { |
49 private static final String[] ARGS2 = new String[] { |
50 "-Xdoclint:none", "-d", BUG_ID, "-private", "-sourcepath", SRC_DIR, "pkg" |
50 "-Xdoclint:none", "-d", BUG_ID, "-private", "-sourcepath", SRC_DIR, |
|
51 "pkg" |
51 }; |
52 }; |
52 |
53 |
53 //Input for string search tests. |
54 //Input for string search tests. |
54 private static final String[][] TEST = { |
55 private static final String[][] TEST = { |
55 {WARNING_OUTPUT, |
56 {WARNING_OUTPUT, |
57 {ERROR_OUTPUT, |
58 {ERROR_OUTPUT, |
58 "package.html: error - Body tag missing from HTML"}, |
59 "package.html: error - Body tag missing from HTML"}, |
59 |
60 |
60 }; |
61 }; |
61 private static final String[][] NEGATED_TEST = { |
62 private static final String[][] NEGATED_TEST = { |
62 {BUG_ID + FS + "pkg" + FS + "X.html", "can't find m()"}, |
63 {BUG_ID + "/pkg/X.html", "can't find m()"}, |
63 {BUG_ID + FS + "pkg" + FS + "X.html", "can't find X()"}, |
64 {BUG_ID + "/pkg/X.html", "can't find X()"}, |
64 {BUG_ID + FS + "pkg" + FS + "X.html", "can't find f"}, |
65 {BUG_ID + "/pkg/X.html", "can't find f"}, |
65 }; |
66 }; |
66 |
67 |
67 private static final String[][] TEST2 = { |
68 private static final String[][] TEST2 = { |
68 {BUG_ID + FS + "pkg" + FS + "X.html", "<a href=\"../pkg/X.html#m--\"><code>m()</code></a><br/>"}, |
69 {BUG_ID + "/pkg/X.html", |
69 {BUG_ID + FS + "pkg" + FS + "X.html", "<a href=\"../pkg/X.html#X--\"><code>X()</code></a><br/>"}, |
70 "<a href=\"../pkg/X.html#m--\"><code>m()</code></a><br/>"}, |
70 {BUG_ID + FS + "pkg" + FS + "X.html", "<a href=\"../pkg/X.html#f\"><code>f</code></a><br/>"}, |
71 {BUG_ID + "/pkg/X.html", |
|
72 "<a href=\"../pkg/X.html#X--\"><code>X()</code></a><br/>"}, |
|
73 {BUG_ID + "/pkg/X.html", |
|
74 "<a href=\"../pkg/X.html#f\"><code>f</code></a><br/>"}, |
71 }; |
75 }; |
72 |
76 |
73 private static final String[][] NEGATED_TEST2 = NO_TEST; |
77 private static final String[][] NEGATED_TEST2 = NO_TEST; |
74 |
78 |
75 |
79 |