mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 18:44:38 +02:00
8040903: Clean up use of BUG_ID in javadoc tests
Reviewed-by: ksrini
This commit is contained in:
parent
187dbd343c
commit
3acf463dc4
133 changed files with 1298 additions and 3431 deletions
|
@ -34,22 +34,19 @@
|
|||
|
||||
public class TestJavascript extends JavadocTester {
|
||||
|
||||
//Test information.
|
||||
private static final String BUG_ID = "4665566-4855876-8012375";
|
||||
|
||||
//Javadoc arguments.
|
||||
private static final String[] ARGS = new String[] {
|
||||
"-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg", SRC_DIR +
|
||||
"-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, "pkg", SRC_DIR +
|
||||
"/TestJavascript.java"
|
||||
};
|
||||
|
||||
//Input for string search tests.
|
||||
private static final String[][] TEST = {
|
||||
{BUG_ID + "/pkg/C.html",
|
||||
{ "pkg/C.html",
|
||||
"<a href=\"../index.html?pkg/C.html\" target=\"_top\">Frames</a>"},
|
||||
{BUG_ID + "/TestJavascript.html",
|
||||
{ "TestJavascript.html",
|
||||
"<a href=\"index.html?TestJavascript.html\" target=\"_top\">Frames</a>"},
|
||||
{BUG_ID + "/index.html",
|
||||
{ "index.html",
|
||||
"<script type=\"text/javascript\">\n" +
|
||||
" targetPage = \"\" + window.location.search;\n" +
|
||||
" if (targetPage != \"\" && targetPage != \"undefined\")\n" +
|
||||
|
@ -104,7 +101,7 @@ public class TestJavascript extends JavadocTester {
|
|||
"</script>"},
|
||||
|
||||
//Make sure title javascript only runs if is-external is not true
|
||||
{BUG_ID + "/pkg/C.html",
|
||||
{ "pkg/C.html",
|
||||
" try {\n" +
|
||||
" if (location.href.indexOf('is-external=true') == -1) {\n" +
|
||||
" parent.document.title=\"C\";\n" +
|
||||
|
@ -123,18 +120,4 @@ public class TestJavascript extends JavadocTester {
|
|||
tester.run(ARGS, TEST, NO_TEST);
|
||||
tester.printSummary();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public String getBugId() {
|
||||
return BUG_ID;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public String getBugName() {
|
||||
return getClass().getName();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue