6851834: Javadoc doclet needs a structured approach to generate the output HTML

Reviewed-by: jjg
This commit is contained in:
Bhavesh Patel 2010-12-01 11:02:38 -08:00
parent 6edf2ff9a3
commit 275e77646d
148 changed files with 12175 additions and 7441 deletions

View file

@ -90,44 +90,34 @@ public class JavascriptWinTitle {
private static final String[][] testArray = {
// Test the javascript "type" attribute is present:
{ "<SCRIPT type=\"text/javascript\">",
{ "<script type=\"text/javascript\">",
TMPDEST_DIR1 + "overview-summary.html" },
// Test onload is absent:
{ "<body>",
TMPDEST_DIR1 + "overview-summary.html" },
// Test onload is present:
{ "onload=\"windowTitle();\"",
TMPDEST_DIR1 + "overview-summary.html" },
// Test onload is present:
{ "onload=\"windowTitle();\"",
{ "<body>",
TMPDEST_DIR1 + FS + "p1" + FS + "package-summary.html" },
// Test onload is present:
{ "onload=\"windowTitle();\"",
TMPDEST_DIR1 + FS + "p1" + FS + "C.html" },
// Test that "onload" is not present in BODY tag:
{ "<BODY BGCOLOR=\"white\">",
{ "<body>",
TMPDEST_DIR1 + "overview-frame.html" },
// Test that "onload" is not present in BODY tag:
{ "<BODY BGCOLOR=\"white\">",
{ "<body>",
TMPDEST_DIR1 + "allclasses-frame.html" },
// Test that "onload" is not present in BODY tag:
{ "<BODY BGCOLOR=\"white\">",
{ "<body>",
TMPDEST_DIR1 + FS + "p1" + FS + "package-frame.html" },
// Test that win title javascript is followed by NOSCRIPT code.
{"<SCRIPT type=\"text/javascript\">" + LS +
"function windowTitle()" + LS +
"{" + LS +
" if (location.href.indexOf('is-external=true') == -1) {" + LS +
" parent.document.title=\"C (Window Title)\";" + LS +
" }" + LS +
"}" + LS +
"</SCRIPT>" + LS +
"<NOSCRIPT>" + LS +
"</NOSCRIPT>",
{"<script type=\"text/javascript\"><!--" + LS +
" if (location.href.indexOf('is-external=true') == -1) {" + LS +
" parent.document.title=\"C (Window Title)\";" + LS +
" }" + LS + "//-->" + LS + "</script>",
TMPDEST_DIR1 + FS + "p1" + FS + "C.html"
}