58 " Another Test document 2.</a>" |
58 " Another Test document 2.</a>" |
59 } |
59 } |
60 }; |
60 }; |
61 private static final String[][] NEGATED_TEST1 = { |
61 private static final String[][] NEGATED_TEST1 = { |
62 {BUG_ID + FS + "pkg1" + FS + "C1.html", |
62 {BUG_ID + FS + "pkg1" + FS + "C1.html", |
63 "<a href=\"http://download.oracle.com/javase/7/docs/technotes/guides/index.html\">" |
63 "<a href=\"https://docs.oracle.com/javase/7/docs/technotes/guides/index.html\">" |
64 }, |
64 }, |
65 {BUG_ID + FS + "pkg1" + FS + "C1.html", |
65 {BUG_ID + FS + "pkg1" + FS + "C1.html", |
66 "<a href=\"http://download.oracle.com/javase/7/docs/pkg2/C2.html\">" |
66 "<a href=\"https://docs.oracle.com/javase/7/docs/pkg2/C2.html\">" |
67 }, |
67 }, |
68 {BUG_ID + FS + "pkg1" + FS + "package-summary.html", |
68 {BUG_ID + FS + "pkg1" + FS + "package-summary.html", |
69 "<a href=\"http://download.oracle.com/javase/7/docs/technotes/guides/index.html\">" |
69 "<a href=\"https://docs.oracle.com/javase/7/docs/technotes/guides/index.html\">" |
70 }, |
70 }, |
71 {BUG_ID + FS + "pkg1" + FS + "package-summary.html", |
71 {BUG_ID + FS + "pkg1" + FS + "package-summary.html", |
72 "<a href=\"http://download.oracle.com/javase/7/docs/pkg2/C2.html\">" |
72 "<a href=\"https://docs.oracle.com/javase/7/docs/pkg2/C2.html\">" |
73 } |
73 } |
74 }; |
74 }; |
75 private static final String[][] TEST2 = { |
75 private static final String[][] TEST2 = { |
76 {BUG_ID + "-1" + FS + "pkg2" + FS + "C2.html", |
76 {BUG_ID + "-1" + FS + "pkg2" + FS + "C2.html", |
77 "Refer <a href=\"http://download.oracle.com/javase/7/docs/technotes/guides/index.html\">Here</a>" |
77 "Refer <a href=\"https://docs.oracle.com/javase/7/docs/technotes/guides/index.html\">Here</a>" |
78 }, |
78 }, |
79 {BUG_ID + "-1" + FS + "pkg2" + FS + "C2.html", |
79 {BUG_ID + "-1" + FS + "pkg2" + FS + "C2.html", |
80 "This <a href=\"../pkg1/C1.html\">Here</a> should not be replaced" + NL + |
80 "This <a href=\"../pkg1/C1.html\">Here</a> should not be replaced" + NL + |
81 " with an absolute link." |
81 " with an absolute link." |
82 }, |
82 }, |
83 {BUG_ID + "-1" + FS + "pkg2" + FS + "C2.html", |
83 {BUG_ID + "-1" + FS + "pkg2" + FS + "C2.html", |
84 "Testing <a href=\"../technotes/guides/index.html\">Link 1</a> and" + NL + |
84 "Testing <a href=\"../technotes/guides/index.html\">Link 1</a> and" + NL + |
85 " <a href=\"../pkg1/C1.html\">Link 2</a>." |
85 " <a href=\"../pkg1/C1.html\">Link 2</a>." |
86 }, |
86 }, |
87 {BUG_ID + "-1" + FS + "pkg2" + FS + "package-summary.html", |
87 {BUG_ID + "-1" + FS + "pkg2" + FS + "package-summary.html", |
88 "<a href=\"http://download.oracle.com/javase/7/docs/technotes/guides/index.html\">" + NL + |
88 "<a href=\"https://docs.oracle.com/javase/7/docs/technotes/guides/index.html\">" + NL + |
89 " Test document 1</a>" |
89 " Test document 1</a>" |
90 }, |
90 }, |
91 {BUG_ID + "-1" + FS + "pkg2" + FS + "package-summary.html", |
91 {BUG_ID + "-1" + FS + "pkg2" + FS + "package-summary.html", |
92 "<a href=\"../pkg1/C1.html\">" + NL + " Another Test document 1</a>" |
92 "<a href=\"../pkg1/C1.html\">" + NL + " Another Test document 1</a>" |
93 }, |
93 }, |
98 private static final String[][] NEGATED_TEST2 = { |
98 private static final String[][] NEGATED_TEST2 = { |
99 {BUG_ID + "-1" + FS + "pkg2" + FS + "C2.html", |
99 {BUG_ID + "-1" + FS + "pkg2" + FS + "C2.html", |
100 "<a href=\"../../technotes/guides/index.html\">" |
100 "<a href=\"../../technotes/guides/index.html\">" |
101 }, |
101 }, |
102 {BUG_ID + "-1" + FS + "pkg2" + FS + "C2.html", |
102 {BUG_ID + "-1" + FS + "pkg2" + FS + "C2.html", |
103 "<a href=\"http://download.oracle.com/javase/7/docs/pkg1/C1.html\">" |
103 "<a href=\"https://docs.oracle.com/javase/7/docs/pkg1/C1.html\">" |
104 }, |
104 }, |
105 {BUG_ID + "-1" + FS + "pkg2" + FS + "package-summary.html", |
105 {BUG_ID + "-1" + FS + "pkg2" + FS + "package-summary.html", |
106 "<a href=\"../../technotes/guides/index.html\">" |
106 "<a href=\"../../technotes/guides/index.html\">" |
107 }, |
107 }, |
108 {BUG_ID + "-1" + FS + "pkg2" + FS + "package-summary.html", |
108 {BUG_ID + "-1" + FS + "pkg2" + FS + "package-summary.html", |
109 "<a href=\"http://download.oracle.com/javase/7/docs/pkg1/C1.html\">" |
109 "<a href=\"https://docs.oracle.com/javase/7/docs/pkg1/C1.html\">" |
110 } |
110 } |
111 }; |
111 }; |
112 private static final String[] ARGS1 = |
112 private static final String[] ARGS1 = |
113 new String[]{ |
113 new String[]{ |
114 "-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg1", "pkg2" |
114 "-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg1", "pkg2" |
115 }; |
115 }; |
116 private static final String[] ARGS2 = |
116 private static final String[] ARGS2 = |
117 new String[]{ |
117 new String[]{ |
118 "-d", BUG_ID + "-1", "-Xdocrootparent", "http://download.oracle.com/javase/7/docs", "-sourcepath", SRC_DIR, "pkg1", "pkg2" |
118 "-d", BUG_ID + "-1", "-Xdocrootparent", "https://docs.oracle.com/javase/7/docs", "-sourcepath", SRC_DIR, "pkg1", "pkg2" |
119 }; |
119 }; |
120 |
120 |
121 /** |
121 /** |
122 * The entry point of the test. |
122 * The entry point of the test. |
123 * @param args the array of command line arguments. |
123 * @param args the array of command line arguments. |