8148985: javadoc "FRAMES" and "NO FRAMES" links not working correctly

Reviewed-by: jjg, ksrini
This commit is contained in:
Bhavesh Patel 2016-03-02 21:27:01 +00:00
parent c12efa10b2
commit 5b14d73a63
8 changed files with 38 additions and 13 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2004, 2015, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2004, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -100,8 +100,15 @@ public class TestJavascript extends JavadocTester {
+ " }\n"
+ " return true;\n"
+ " }\n"
+ " function loadFrames() {\n"
+ " if (targetPage != \"\" && targetPage != \"undefined\")\n"
+ " top.classFrame.location = top.targetPage;\n"
+ " }\n"
+ "</script>");
checkOutput("index.html", true,
"<body onload=\"loadFrames()\"");
//Make sure title javascript only runs if is-external is not true
checkOutput("pkg/C.html", true,
" try {\n"