1 /* |
1 /* |
2 * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2003, 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. |
43 }; |
43 }; |
44 |
44 |
45 //Input for string search tests. |
45 //Input for string search tests. |
46 private static final String[][] TEST = { |
46 private static final String[][] TEST = { |
47 //External link. |
47 //External link. |
48 {BUG_ID + FS + "pkg" + FS + "C1.html", |
48 {BUG_ID + "/pkg/C1.html", |
49 "href=\"http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#wait-long-int-\"" |
49 "href=\"http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#wait-long-int-\"" |
50 }, |
50 }, |
51 //Member summary table link. |
51 //Member summary table link. |
52 {BUG_ID + FS + "pkg" + FS + "C1.html", |
52 {BUG_ID + "/pkg/C1.html", |
53 "href=\"../pkg/C1.html#method-int-int-java.util.ArrayList-\"" |
53 "href=\"../pkg/C1.html#method-int-int-java.util.ArrayList-\"" |
54 }, |
54 }, |
55 //Anchor test. |
55 //Anchor test. |
56 {BUG_ID + FS + "pkg" + FS + "C1.html", |
56 {BUG_ID + "/pkg/C1.html", |
57 "<a name=\"method-int-int-java.util.ArrayList-\">" + NL + |
57 "<a name=\"method-int-int-java.util.ArrayList-\">\n" + |
58 "<!-- -->" + NL + |
58 "<!-- -->\n" + |
59 "</a>" |
59 "</a>" |
60 }, |
60 }, |
61 //Backward compatibility anchor test. |
61 //Backward compatibility anchor test. |
62 {BUG_ID + FS + "pkg" + FS + "C1.html", |
62 {BUG_ID + "/pkg/C1.html", |
63 "<a name=\"method-int-int-java.util.ArrayList-\">" + NL + |
63 "<a name=\"method-int-int-java.util.ArrayList-\">\n" + |
64 "<!-- -->" + NL + |
64 "<!-- -->\n" + |
65 "</a>" |
65 "</a>" |
66 }, |
66 }, |
67 //{@link} test. |
67 //{@link} test. |
68 {BUG_ID + FS + "pkg" + FS + "C2.html", |
68 {BUG_ID + "/pkg/C2.html", |
69 "Link: <a href=\"../pkg/C1.html#method-int-int-java.util.ArrayList-\">" |
69 "Link: <a href=\"../pkg/C1.html#method-int-int-java.util.ArrayList-\">" |
70 }, |
70 }, |
71 //@see test. |
71 //@see test. |
72 {BUG_ID + FS + "pkg" + FS + "C2.html", |
72 {BUG_ID + "/pkg/C2.html", |
73 "See Also:</span></dt>" + NL + "<dd><a href=\"../pkg/C1.html#method-int-int-java.util.ArrayList-\">" |
73 "See Also:</span></dt>\n" + |
|
74 "<dd><a href=\"../pkg/C1.html#method-int-int-java.util.ArrayList-\">" |
74 }, |
75 }, |
75 |
76 |
76 //Header does not link to the page itself. |
77 //Header does not link to the page itself. |
77 {BUG_ID + FS + "pkg" + FS + "C4.html", |
78 {BUG_ID + "/pkg/C4.html", |
78 "Class C4<E extends C4<E>></h2>" |
79 "Class C4<E extends C4<E>></h2>" |
79 }, |
80 }, |
80 |
81 |
81 //Signature does not link to the page itself. |
82 //Signature does not link to the page itself. |
82 {BUG_ID + FS + "pkg" + FS + "C4.html", |
83 {BUG_ID + "/pkg/C4.html", |
83 "public abstract class <span class=\"typeNameLabel\">C4<E extends C4<E>></span>" |
84 "public abstract class <span class=\"typeNameLabel\">C4<E extends C4<E>></span>" |
84 }, |
85 }, |
85 }; |
86 }; |
86 private static final String[][] NEGATED_TEST = |
87 private static final String[][] NEGATED_TEST = |
87 { |
88 { |