2015-11-28 18:52:17 -08:00
|
|
|
/*
|
2022-12-22 21:20:43 +00:00
|
|
|
* Copyright (c) 2003, 2022, Oracle and/or its affiliates. All rights reserved.
|
2015-11-28 18:52:17 -08:00
|
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
|
|
*
|
|
|
|
* This code is free software; you can redistribute it and/or modify it
|
|
|
|
* under the terms of the GNU General Public License version 2 only, as
|
|
|
|
* published by the Free Software Foundation.
|
|
|
|
*
|
|
|
|
* This code is distributed in the hope that it will be useful, but WITHOUT
|
|
|
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
|
|
* version 2 for more details (a copy is included in the LICENSE file that
|
|
|
|
* accompanied this code).
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License version
|
|
|
|
* 2 along with this work; if not, write to the Free Software Foundation,
|
|
|
|
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
*
|
|
|
|
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
|
|
|
* or visit www.oracle.com if you need additional information or have any
|
|
|
|
* questions.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* @test
|
2018-03-06 10:45:47 -08:00
|
|
|
* @bug 4131628 4664607 7025314 8023700 7198273 8025633 8026567 8081854 8150188 8151743 8196027 8182765
|
2021-02-23 18:55:13 +00:00
|
|
|
* 8196200 8196202 8223378 8258659 8261976
|
2015-11-28 18:52:17 -08:00
|
|
|
* @summary Make sure the Next/Prev Class links iterate through all types.
|
|
|
|
* Make sure the navagation is 2 columns, not 3.
|
2018-12-21 10:38:33 -08:00
|
|
|
* @library /tools/lib ../../lib
|
8142968: Module System implementation
Initial integration of JEP 200, JEP 260, JEP 261, and JEP 282
Co-authored-by: Alex Buckley <alex.buckley@oracle.com>
Co-authored-by: Jonathan Gibbons <jonathan.gibbons@oracle.com>
Co-authored-by: Karen Kinnear <karen.kinnear@oracle.com>
Co-authored-by: Mandy Chung <mandy.chung@oracle.com>
Co-authored-by: Mark Reinhold <mark.reinhold@oracle.com>
Co-authored-by: Jan Lahoda <jan.lahoda@oracle.com>
Co-authored-by: Vicente Romero <vicente.romero@oracle.com>
Co-authored-by: Andreas Lundblad <andreas.lundblad@oracle.com>
Co-authored-by: Andrey Nazarov <andrey.x.nazarov@oracle.com>
Co-authored-by: Chris Hegarty <chris.hegarty@oracle.com>
Co-authored-by: Erik Joelsson <erik.joelsson@oracle.com>
Co-authored-by: Kumar Srinivasan <kumar.x.srinivasan@oracle.com>
Co-authored-by: Sundararajan Athijegannathan <sundararajan.athijegannathan@oracle.com>
Reviewed-by: jjg, jlahoda, vromero, mcimadamore, bpatel, ksrini, darcy, anazarov, dfuchs
2016-03-17 19:04:28 +00:00
|
|
|
* @modules jdk.javadoc/jdk.javadoc.internal.tool
|
2018-12-21 10:38:33 -08:00
|
|
|
* @build toolbox.ToolBox javadoc.tester.*
|
2015-11-28 18:52:17 -08:00
|
|
|
* @run main TestNavigation
|
|
|
|
*/
|
|
|
|
|
2018-04-09 09:45:51 -07:00
|
|
|
import java.io.IOException;
|
|
|
|
import java.nio.file.Path;
|
|
|
|
import java.nio.file.Paths;
|
|
|
|
|
2018-12-21 10:38:33 -08:00
|
|
|
import javadoc.tester.JavadocTester;
|
|
|
|
import toolbox.ToolBox;
|
2018-04-09 09:45:51 -07:00
|
|
|
|
2015-11-28 18:52:17 -08:00
|
|
|
public class TestNavigation extends JavadocTester {
|
|
|
|
|
2018-04-09 09:45:51 -07:00
|
|
|
public final ToolBox tb;
|
2015-11-28 18:52:17 -08:00
|
|
|
public static void main(String... args) throws Exception {
|
2022-12-22 21:20:43 +00:00
|
|
|
var tester = new TestNavigation();
|
|
|
|
tester.runTests();
|
2018-04-09 09:45:51 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
public TestNavigation() {
|
|
|
|
tb = new ToolBox();
|
2015-11-28 18:52:17 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
@Test
|
2018-12-21 10:38:33 -08:00
|
|
|
public void test(Path ignore) {
|
2018-03-06 10:45:47 -08:00
|
|
|
javadoc("-d", "out",
|
|
|
|
"-overview", testSrc("overview.html"),
|
2015-11-28 18:52:17 -08:00
|
|
|
"-sourcepath", testSrc,
|
|
|
|
"pkg");
|
|
|
|
checkExit(Exit.OK);
|
2018-06-28 15:46:27 -07:00
|
|
|
checkSubNav();
|
2015-11-28 18:52:17 -08:00
|
|
|
|
|
|
|
checkOutput("pkg/A.html", true,
|
2020-05-05 13:02:30 -07:00
|
|
|
"""
|
2021-02-23 18:55:13 +00:00
|
|
|
<ul id="navbar-top-firstrow" class="nav-list" title="Navigation">
|
2020-05-05 13:02:30 -07:00
|
|
|
<li><a href="../index.html">Overview</a></li>""");
|
2015-11-28 18:52:17 -08:00
|
|
|
|
|
|
|
checkOutput("pkg/C.html", true,
|
2020-05-05 13:02:30 -07:00
|
|
|
"""
|
2021-02-23 18:55:13 +00:00
|
|
|
<ul id="navbar-top-firstrow" class="nav-list" title="Navigation">
|
2020-05-05 13:02:30 -07:00
|
|
|
<li><a href="../index.html">Overview</a></li>""");
|
2015-11-28 18:52:17 -08:00
|
|
|
|
|
|
|
checkOutput("pkg/E.html", true,
|
2020-05-05 13:02:30 -07:00
|
|
|
"""
|
2021-02-23 18:55:13 +00:00
|
|
|
<ul id="navbar-top-firstrow" class="nav-list" title="Navigation">
|
2020-05-05 13:02:30 -07:00
|
|
|
<li><a href="../index.html">Overview</a></li>""");
|
2015-11-28 18:52:17 -08:00
|
|
|
|
|
|
|
checkOutput("pkg/I.html", true,
|
|
|
|
// Test for 4664607
|
2020-05-05 13:02:30 -07:00
|
|
|
"""
|
2021-02-23 18:55:13 +00:00
|
|
|
<div class="skip-nav"><a href="#skip-navbar-top" title="Skip navigation links">Skip navigation links</a></div>
|
|
|
|
<ul id="navbar-top-firstrow" class="nav-list" title="Navigation">
|
2020-05-05 13:02:30 -07:00
|
|
|
""",
|
|
|
|
"""
|
|
|
|
<li><a href="../index.html">Overview</a></li>""");
|
8142968: Module System implementation
Initial integration of JEP 200, JEP 260, JEP 261, and JEP 282
Co-authored-by: Alex Buckley <alex.buckley@oracle.com>
Co-authored-by: Jonathan Gibbons <jonathan.gibbons@oracle.com>
Co-authored-by: Karen Kinnear <karen.kinnear@oracle.com>
Co-authored-by: Mandy Chung <mandy.chung@oracle.com>
Co-authored-by: Mark Reinhold <mark.reinhold@oracle.com>
Co-authored-by: Jan Lahoda <jan.lahoda@oracle.com>
Co-authored-by: Vicente Romero <vicente.romero@oracle.com>
Co-authored-by: Andreas Lundblad <andreas.lundblad@oracle.com>
Co-authored-by: Andrey Nazarov <andrey.x.nazarov@oracle.com>
Co-authored-by: Chris Hegarty <chris.hegarty@oracle.com>
Co-authored-by: Erik Joelsson <erik.joelsson@oracle.com>
Co-authored-by: Kumar Srinivasan <kumar.x.srinivasan@oracle.com>
Co-authored-by: Sundararajan Athijegannathan <sundararajan.athijegannathan@oracle.com>
Reviewed-by: jjg, jlahoda, vromero, mcimadamore, bpatel, ksrini, darcy, anazarov, dfuchs
2016-03-17 19:04:28 +00:00
|
|
|
|
2018-03-06 10:45:47 -08:00
|
|
|
// Remaining tests check for additional padding to offset the fixed navigation bar.
|
|
|
|
checkOutput("pkg/A.html", true,
|
2020-05-05 13:02:30 -07:00
|
|
|
"""
|
|
|
|
<!-- ========= END OF TOP NAVBAR ========= -->
|
2021-02-23 18:55:13 +00:00
|
|
|
<span class="skip-nav" id="skip-navbar-top"></span></nav>
|
2020-05-05 13:02:30 -07:00
|
|
|
</header>
|
|
|
|
<div class="flex-content">
|
|
|
|
<main role="main">
|
|
|
|
<!-- ======== START OF CLASS DATA ======== -->""");
|
2018-03-06 10:45:47 -08:00
|
|
|
|
|
|
|
checkOutput("pkg/package-summary.html", true,
|
2020-05-05 13:02:30 -07:00
|
|
|
"""
|
|
|
|
<!-- ========= END OF TOP NAVBAR ========= -->
|
2021-02-23 18:55:13 +00:00
|
|
|
<span class="skip-nav" id="skip-navbar-top"></span></nav>
|
2020-05-05 13:02:30 -07:00
|
|
|
</header>
|
|
|
|
<div class="flex-content">
|
|
|
|
<main role="main">
|
|
|
|
<div class="header">""");
|
2018-03-06 10:45:47 -08:00
|
|
|
}
|
|
|
|
|
8142968: Module System implementation
Initial integration of JEP 200, JEP 260, JEP 261, and JEP 282
Co-authored-by: Alex Buckley <alex.buckley@oracle.com>
Co-authored-by: Jonathan Gibbons <jonathan.gibbons@oracle.com>
Co-authored-by: Karen Kinnear <karen.kinnear@oracle.com>
Co-authored-by: Mandy Chung <mandy.chung@oracle.com>
Co-authored-by: Mark Reinhold <mark.reinhold@oracle.com>
Co-authored-by: Jan Lahoda <jan.lahoda@oracle.com>
Co-authored-by: Vicente Romero <vicente.romero@oracle.com>
Co-authored-by: Andreas Lundblad <andreas.lundblad@oracle.com>
Co-authored-by: Andrey Nazarov <andrey.x.nazarov@oracle.com>
Co-authored-by: Chris Hegarty <chris.hegarty@oracle.com>
Co-authored-by: Erik Joelsson <erik.joelsson@oracle.com>
Co-authored-by: Kumar Srinivasan <kumar.x.srinivasan@oracle.com>
Co-authored-by: Sundararajan Athijegannathan <sundararajan.athijegannathan@oracle.com>
Reviewed-by: jjg, jlahoda, vromero, mcimadamore, bpatel, ksrini, darcy, anazarov, dfuchs
2016-03-17 19:04:28 +00:00
|
|
|
// Test for checking additional padding to offset the fixed navigation bar in HTML5.
|
|
|
|
@Test
|
2018-12-21 10:38:33 -08:00
|
|
|
public void test1(Path ignore) {
|
2018-03-06 10:45:47 -08:00
|
|
|
javadoc("-d", "out-1",
|
|
|
|
"-html5",
|
8142968: Module System implementation
Initial integration of JEP 200, JEP 260, JEP 261, and JEP 282
Co-authored-by: Alex Buckley <alex.buckley@oracle.com>
Co-authored-by: Jonathan Gibbons <jonathan.gibbons@oracle.com>
Co-authored-by: Karen Kinnear <karen.kinnear@oracle.com>
Co-authored-by: Mandy Chung <mandy.chung@oracle.com>
Co-authored-by: Mark Reinhold <mark.reinhold@oracle.com>
Co-authored-by: Jan Lahoda <jan.lahoda@oracle.com>
Co-authored-by: Vicente Romero <vicente.romero@oracle.com>
Co-authored-by: Andreas Lundblad <andreas.lundblad@oracle.com>
Co-authored-by: Andrey Nazarov <andrey.x.nazarov@oracle.com>
Co-authored-by: Chris Hegarty <chris.hegarty@oracle.com>
Co-authored-by: Erik Joelsson <erik.joelsson@oracle.com>
Co-authored-by: Kumar Srinivasan <kumar.x.srinivasan@oracle.com>
Co-authored-by: Sundararajan Athijegannathan <sundararajan.athijegannathan@oracle.com>
Reviewed-by: jjg, jlahoda, vromero, mcimadamore, bpatel, ksrini, darcy, anazarov, dfuchs
2016-03-17 19:04:28 +00:00
|
|
|
"-sourcepath", testSrc,
|
|
|
|
"pkg");
|
|
|
|
checkExit(Exit.OK);
|
2018-06-28 15:46:27 -07:00
|
|
|
checkSubNav();
|
8142968: Module System implementation
Initial integration of JEP 200, JEP 260, JEP 261, and JEP 282
Co-authored-by: Alex Buckley <alex.buckley@oracle.com>
Co-authored-by: Jonathan Gibbons <jonathan.gibbons@oracle.com>
Co-authored-by: Karen Kinnear <karen.kinnear@oracle.com>
Co-authored-by: Mandy Chung <mandy.chung@oracle.com>
Co-authored-by: Mark Reinhold <mark.reinhold@oracle.com>
Co-authored-by: Jan Lahoda <jan.lahoda@oracle.com>
Co-authored-by: Vicente Romero <vicente.romero@oracle.com>
Co-authored-by: Andreas Lundblad <andreas.lundblad@oracle.com>
Co-authored-by: Andrey Nazarov <andrey.x.nazarov@oracle.com>
Co-authored-by: Chris Hegarty <chris.hegarty@oracle.com>
Co-authored-by: Erik Joelsson <erik.joelsson@oracle.com>
Co-authored-by: Kumar Srinivasan <kumar.x.srinivasan@oracle.com>
Co-authored-by: Sundararajan Athijegannathan <sundararajan.athijegannathan@oracle.com>
Reviewed-by: jjg, jlahoda, vromero, mcimadamore, bpatel, ksrini, darcy, anazarov, dfuchs
2016-03-17 19:04:28 +00:00
|
|
|
|
|
|
|
checkOutput("pkg/A.html", true,
|
2020-05-05 13:02:30 -07:00
|
|
|
"""
|
|
|
|
<!-- ========= END OF TOP NAVBAR ========= -->
|
2021-02-23 18:55:13 +00:00
|
|
|
<span class="skip-nav" id="skip-navbar-top"></span></nav>
|
2020-05-05 13:02:30 -07:00
|
|
|
</header>
|
|
|
|
<div class="flex-content">
|
|
|
|
<main role="main">
|
|
|
|
<!-- ======== START OF CLASS DATA ======== -->""");
|
8142968: Module System implementation
Initial integration of JEP 200, JEP 260, JEP 261, and JEP 282
Co-authored-by: Alex Buckley <alex.buckley@oracle.com>
Co-authored-by: Jonathan Gibbons <jonathan.gibbons@oracle.com>
Co-authored-by: Karen Kinnear <karen.kinnear@oracle.com>
Co-authored-by: Mandy Chung <mandy.chung@oracle.com>
Co-authored-by: Mark Reinhold <mark.reinhold@oracle.com>
Co-authored-by: Jan Lahoda <jan.lahoda@oracle.com>
Co-authored-by: Vicente Romero <vicente.romero@oracle.com>
Co-authored-by: Andreas Lundblad <andreas.lundblad@oracle.com>
Co-authored-by: Andrey Nazarov <andrey.x.nazarov@oracle.com>
Co-authored-by: Chris Hegarty <chris.hegarty@oracle.com>
Co-authored-by: Erik Joelsson <erik.joelsson@oracle.com>
Co-authored-by: Kumar Srinivasan <kumar.x.srinivasan@oracle.com>
Co-authored-by: Sundararajan Athijegannathan <sundararajan.athijegannathan@oracle.com>
Reviewed-by: jjg, jlahoda, vromero, mcimadamore, bpatel, ksrini, darcy, anazarov, dfuchs
2016-03-17 19:04:28 +00:00
|
|
|
|
|
|
|
checkOutput("pkg/package-summary.html", true,
|
2020-05-05 13:02:30 -07:00
|
|
|
"""
|
|
|
|
<!-- ========= END OF TOP NAVBAR ========= -->
|
2021-02-23 18:55:13 +00:00
|
|
|
<span class="skip-nav" id="skip-navbar-top"></span></nav>
|
2020-05-05 13:02:30 -07:00
|
|
|
""");
|
8142968: Module System implementation
Initial integration of JEP 200, JEP 260, JEP 261, and JEP 282
Co-authored-by: Alex Buckley <alex.buckley@oracle.com>
Co-authored-by: Jonathan Gibbons <jonathan.gibbons@oracle.com>
Co-authored-by: Karen Kinnear <karen.kinnear@oracle.com>
Co-authored-by: Mandy Chung <mandy.chung@oracle.com>
Co-authored-by: Mark Reinhold <mark.reinhold@oracle.com>
Co-authored-by: Jan Lahoda <jan.lahoda@oracle.com>
Co-authored-by: Vicente Romero <vicente.romero@oracle.com>
Co-authored-by: Andreas Lundblad <andreas.lundblad@oracle.com>
Co-authored-by: Andrey Nazarov <andrey.x.nazarov@oracle.com>
Co-authored-by: Chris Hegarty <chris.hegarty@oracle.com>
Co-authored-by: Erik Joelsson <erik.joelsson@oracle.com>
Co-authored-by: Kumar Srinivasan <kumar.x.srinivasan@oracle.com>
Co-authored-by: Sundararajan Athijegannathan <sundararajan.athijegannathan@oracle.com>
Reviewed-by: jjg, jlahoda, vromero, mcimadamore, bpatel, ksrini, darcy, anazarov, dfuchs
2016-03-17 19:04:28 +00:00
|
|
|
}
|
|
|
|
|
2019-03-11 14:57:16 +05:30
|
|
|
// Test to make sure that no extra padding for nav bar gets generated if -nonavbar is specified.
|
8142968: Module System implementation
Initial integration of JEP 200, JEP 260, JEP 261, and JEP 282
Co-authored-by: Alex Buckley <alex.buckley@oracle.com>
Co-authored-by: Jonathan Gibbons <jonathan.gibbons@oracle.com>
Co-authored-by: Karen Kinnear <karen.kinnear@oracle.com>
Co-authored-by: Mandy Chung <mandy.chung@oracle.com>
Co-authored-by: Mark Reinhold <mark.reinhold@oracle.com>
Co-authored-by: Jan Lahoda <jan.lahoda@oracle.com>
Co-authored-by: Vicente Romero <vicente.romero@oracle.com>
Co-authored-by: Andreas Lundblad <andreas.lundblad@oracle.com>
Co-authored-by: Andrey Nazarov <andrey.x.nazarov@oracle.com>
Co-authored-by: Chris Hegarty <chris.hegarty@oracle.com>
Co-authored-by: Erik Joelsson <erik.joelsson@oracle.com>
Co-authored-by: Kumar Srinivasan <kumar.x.srinivasan@oracle.com>
Co-authored-by: Sundararajan Athijegannathan <sundararajan.athijegannathan@oracle.com>
Reviewed-by: jjg, jlahoda, vromero, mcimadamore, bpatel, ksrini, darcy, anazarov, dfuchs
2016-03-17 19:04:28 +00:00
|
|
|
@Test
|
2018-12-21 10:38:33 -08:00
|
|
|
public void test2(Path ignore) {
|
2018-03-06 10:45:47 -08:00
|
|
|
javadoc("-d", "out-2",
|
|
|
|
"-nonavbar",
|
8142968: Module System implementation
Initial integration of JEP 200, JEP 260, JEP 261, and JEP 282
Co-authored-by: Alex Buckley <alex.buckley@oracle.com>
Co-authored-by: Jonathan Gibbons <jonathan.gibbons@oracle.com>
Co-authored-by: Karen Kinnear <karen.kinnear@oracle.com>
Co-authored-by: Mandy Chung <mandy.chung@oracle.com>
Co-authored-by: Mark Reinhold <mark.reinhold@oracle.com>
Co-authored-by: Jan Lahoda <jan.lahoda@oracle.com>
Co-authored-by: Vicente Romero <vicente.romero@oracle.com>
Co-authored-by: Andreas Lundblad <andreas.lundblad@oracle.com>
Co-authored-by: Andrey Nazarov <andrey.x.nazarov@oracle.com>
Co-authored-by: Chris Hegarty <chris.hegarty@oracle.com>
Co-authored-by: Erik Joelsson <erik.joelsson@oracle.com>
Co-authored-by: Kumar Srinivasan <kumar.x.srinivasan@oracle.com>
Co-authored-by: Sundararajan Athijegannathan <sundararajan.athijegannathan@oracle.com>
Reviewed-by: jjg, jlahoda, vromero, mcimadamore, bpatel, ksrini, darcy, anazarov, dfuchs
2016-03-17 19:04:28 +00:00
|
|
|
"-sourcepath", testSrc,
|
|
|
|
"pkg");
|
|
|
|
checkExit(Exit.OK);
|
2018-06-28 15:46:27 -07:00
|
|
|
checkSubNav();
|
8142968: Module System implementation
Initial integration of JEP 200, JEP 260, JEP 261, and JEP 282
Co-authored-by: Alex Buckley <alex.buckley@oracle.com>
Co-authored-by: Jonathan Gibbons <jonathan.gibbons@oracle.com>
Co-authored-by: Karen Kinnear <karen.kinnear@oracle.com>
Co-authored-by: Mandy Chung <mandy.chung@oracle.com>
Co-authored-by: Mark Reinhold <mark.reinhold@oracle.com>
Co-authored-by: Jan Lahoda <jan.lahoda@oracle.com>
Co-authored-by: Vicente Romero <vicente.romero@oracle.com>
Co-authored-by: Andreas Lundblad <andreas.lundblad@oracle.com>
Co-authored-by: Andrey Nazarov <andrey.x.nazarov@oracle.com>
Co-authored-by: Chris Hegarty <chris.hegarty@oracle.com>
Co-authored-by: Erik Joelsson <erik.joelsson@oracle.com>
Co-authored-by: Kumar Srinivasan <kumar.x.srinivasan@oracle.com>
Co-authored-by: Sundararajan Athijegannathan <sundararajan.athijegannathan@oracle.com>
Reviewed-by: jjg, jlahoda, vromero, mcimadamore, bpatel, ksrini, darcy, anazarov, dfuchs
2016-03-17 19:04:28 +00:00
|
|
|
|
|
|
|
checkOutput("pkg/A.html", false,
|
2020-05-05 13:02:30 -07:00
|
|
|
"""
|
|
|
|
<!-- ========= END OF TOP NAVBAR ========= -->
|
|
|
|
</div>
|
2021-02-23 18:55:13 +00:00
|
|
|
<div class="skip-nav"><a id="skip-navbar-top"></a></div>
|
2020-05-05 13:02:30 -07:00
|
|
|
</nav>
|
|
|
|
</header>
|
|
|
|
<!-- ======== START OF CLASS DATA ======== -->""");
|
8142968: Module System implementation
Initial integration of JEP 200, JEP 260, JEP 261, and JEP 282
Co-authored-by: Alex Buckley <alex.buckley@oracle.com>
Co-authored-by: Jonathan Gibbons <jonathan.gibbons@oracle.com>
Co-authored-by: Karen Kinnear <karen.kinnear@oracle.com>
Co-authored-by: Mandy Chung <mandy.chung@oracle.com>
Co-authored-by: Mark Reinhold <mark.reinhold@oracle.com>
Co-authored-by: Jan Lahoda <jan.lahoda@oracle.com>
Co-authored-by: Vicente Romero <vicente.romero@oracle.com>
Co-authored-by: Andreas Lundblad <andreas.lundblad@oracle.com>
Co-authored-by: Andrey Nazarov <andrey.x.nazarov@oracle.com>
Co-authored-by: Chris Hegarty <chris.hegarty@oracle.com>
Co-authored-by: Erik Joelsson <erik.joelsson@oracle.com>
Co-authored-by: Kumar Srinivasan <kumar.x.srinivasan@oracle.com>
Co-authored-by: Sundararajan Athijegannathan <sundararajan.athijegannathan@oracle.com>
Reviewed-by: jjg, jlahoda, vromero, mcimadamore, bpatel, ksrini, darcy, anazarov, dfuchs
2016-03-17 19:04:28 +00:00
|
|
|
|
|
|
|
checkOutput("pkg/package-summary.html", false,
|
2020-05-05 13:02:30 -07:00
|
|
|
"""
|
|
|
|
<!-- ========= END OF TOP NAVBAR ========= -->
|
|
|
|
</div>
|
2021-02-23 18:55:13 +00:00
|
|
|
<div class="skip-nav"><a id="skip-navbar-top"></a></div>
|
2020-05-05 13:02:30 -07:00
|
|
|
</nav>""");
|
2015-11-28 18:52:17 -08:00
|
|
|
}
|
2018-04-09 09:45:51 -07:00
|
|
|
|
|
|
|
@Test
|
2019-03-11 14:57:16 +05:30
|
|
|
public void test3(Path base) throws IOException {
|
2018-04-09 09:45:51 -07:00
|
|
|
Path src = base.resolve("src");
|
|
|
|
tb.writeJavaFiles(src,
|
2020-05-05 13:02:30 -07:00
|
|
|
"""
|
|
|
|
package pkg1; public class A {
|
|
|
|
/**
|
|
|
|
* Class with members.
|
|
|
|
*/
|
|
|
|
public static class X {
|
|
|
|
/**
|
|
|
|
* A ctor
|
|
|
|
*/
|
|
|
|
public X() {
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* A field
|
|
|
|
*/
|
|
|
|
public int field;
|
|
|
|
/**
|
|
|
|
* A method
|
|
|
|
*/
|
|
|
|
public void method() {
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* An inner class
|
|
|
|
*/
|
|
|
|
public static class IC {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* Class with all inherited members.
|
|
|
|
*/
|
|
|
|
public static class Y extends X {
|
|
|
|
}
|
|
|
|
}""");
|
2018-04-09 09:45:51 -07:00
|
|
|
|
|
|
|
tb.writeJavaFiles(src,
|
|
|
|
"package pkg1; public class C {\n"
|
|
|
|
+ "}");
|
|
|
|
|
|
|
|
tb.writeJavaFiles(src,
|
2020-05-05 13:02:30 -07:00
|
|
|
"""
|
|
|
|
package pkg1; public interface InterfaceWithNoMembers {
|
|
|
|
}""");
|
2018-04-09 09:45:51 -07:00
|
|
|
|
2019-03-11 14:57:16 +05:30
|
|
|
javadoc("-d", "out-3",
|
2018-04-09 09:45:51 -07:00
|
|
|
"-sourcepath", src.toString(),
|
|
|
|
"pkg1");
|
|
|
|
checkExit(Exit.OK);
|
|
|
|
|
|
|
|
checkOrder("pkg1/A.X.html",
|
|
|
|
"Summary",
|
2020-05-05 13:02:30 -07:00
|
|
|
"""
|
2021-02-23 18:55:13 +00:00
|
|
|
<li><a href="#nested-class-summary">Nested</a> | </li>""",
|
2020-05-05 13:02:30 -07:00
|
|
|
"""
|
2021-02-23 18:55:13 +00:00
|
|
|
<li><a href="#field-summary">Field</a> | </li>""",
|
2020-05-05 13:02:30 -07:00
|
|
|
"""
|
2021-02-23 18:55:13 +00:00
|
|
|
<li><a href="#constructor-summary">Constr</a> | </li>""",
|
2020-05-05 13:02:30 -07:00
|
|
|
"""
|
2021-02-23 18:55:13 +00:00
|
|
|
<li><a href="#method-summary">Method</a></li>""");
|
2018-04-09 09:45:51 -07:00
|
|
|
|
|
|
|
checkOrder("pkg1/A.Y.html",
|
|
|
|
"Summary",
|
2020-05-05 13:02:30 -07:00
|
|
|
"""
|
2021-02-23 18:55:13 +00:00
|
|
|
<li><a href="#nested-class-summary">Nested</a> | </li>""",
|
2020-05-05 13:02:30 -07:00
|
|
|
"""
|
2021-02-23 18:55:13 +00:00
|
|
|
<li><a href="#field-summary">Field</a> | </li>""",
|
2020-05-05 13:02:30 -07:00
|
|
|
"""
|
2021-02-23 18:55:13 +00:00
|
|
|
<li><a href="#constructor-summary">Constr</a> | </li>""",
|
2020-05-05 13:02:30 -07:00
|
|
|
"""
|
2021-02-23 18:55:13 +00:00
|
|
|
<li><a href="#method-summary">Method</a></li>""");
|
2018-04-09 09:45:51 -07:00
|
|
|
|
|
|
|
checkOrder("pkg1/A.X.IC.html",
|
|
|
|
"Summary",
|
|
|
|
"<li>Nested | </li>",
|
|
|
|
"<li>Field | </li>",
|
2020-05-05 13:02:30 -07:00
|
|
|
"""
|
2021-02-23 18:55:13 +00:00
|
|
|
<li><a href="#constructor-summary">Constr</a> | </li>""",
|
2020-05-05 13:02:30 -07:00
|
|
|
"""
|
2021-02-23 18:55:13 +00:00
|
|
|
<li><a href="#method-summary">Method</a></li>""");
|
2018-04-09 09:45:51 -07:00
|
|
|
|
|
|
|
checkOrder("pkg1/C.html",
|
|
|
|
"Summary",
|
|
|
|
"<li>Nested | </li>",
|
|
|
|
"<li>Field | </li>",
|
2020-05-05 13:02:30 -07:00
|
|
|
"""
|
2021-02-23 18:55:13 +00:00
|
|
|
<li><a href="#constructor-summary">Constr</a> | </li>""",
|
2020-05-05 13:02:30 -07:00
|
|
|
"""
|
2021-02-23 18:55:13 +00:00
|
|
|
<li><a href="#method-summary">Method</a></li>""");
|
2018-04-09 09:45:51 -07:00
|
|
|
|
|
|
|
checkOrder("pkg1/InterfaceWithNoMembers.html",
|
|
|
|
"Summary",
|
|
|
|
"<li>Nested | </li>",
|
|
|
|
"<li>Field | </li>",
|
|
|
|
"<li>Constr | </li>",
|
|
|
|
"<li>Method</li>");
|
|
|
|
}
|
2018-06-28 15:46:27 -07:00
|
|
|
|
|
|
|
private void checkSubNav() {
|
|
|
|
|
|
|
|
checkOutput("pkg/A.html", false,
|
|
|
|
"All Classes",
|
2020-05-05 13:02:30 -07:00
|
|
|
"""
|
|
|
|
<script type="text/javascript"><!--
|
|
|
|
allClassesLink = document.getElementById("allclasses_navbar_top");""",
|
|
|
|
"""
|
|
|
|
<script type="text/javascript"><!--
|
|
|
|
allClassesLink = document.getElementById("allclasses_navbar_bottom");""");
|
2018-06-28 15:46:27 -07:00
|
|
|
|
|
|
|
checkOutput("pkg/C.html", false,
|
|
|
|
"All Classes",
|
2020-05-05 13:02:30 -07:00
|
|
|
"""
|
|
|
|
<script type="text/javascript"><!--
|
|
|
|
allClassesLink = document.getElementById("allclasses_navbar_top");""",
|
|
|
|
"""
|
|
|
|
<script type="text/javascript"><!--
|
|
|
|
allClassesLink = document.getElementById("allclasses_navbar_bottom");""");
|
2018-06-28 15:46:27 -07:00
|
|
|
|
|
|
|
checkOutput("pkg/E.html", false,
|
|
|
|
"All Classes",
|
2020-05-05 13:02:30 -07:00
|
|
|
"""
|
|
|
|
<script type="text/javascript"><!--
|
|
|
|
allClassesLink = document.getElementById("allclasses_navbar_top");""",
|
|
|
|
"""
|
|
|
|
<script type="text/javascript"><!--
|
|
|
|
allClassesLink = document.getElementById("allclasses_navbar_bottom");""");
|
2018-06-28 15:46:27 -07:00
|
|
|
|
|
|
|
checkOutput("pkg/I.html", false,
|
|
|
|
"All Classes",
|
2020-05-05 13:02:30 -07:00
|
|
|
"""
|
|
|
|
<script type="text/javascript"><!--
|
|
|
|
allClassesLink = document.getElementById("allclasses_navbar_top");""",
|
|
|
|
"""
|
|
|
|
<script type="text/javascript"><!--
|
|
|
|
allClassesLink = document.getElementById("allclasses_navbar_bottom");""");
|
2018-06-28 15:46:27 -07:00
|
|
|
|
|
|
|
checkOutput("pkg/package-summary.html", false,
|
|
|
|
"All Classes",
|
2020-05-05 13:02:30 -07:00
|
|
|
"""
|
|
|
|
<script type="text/javascript"><!--
|
|
|
|
allClassesLink = document.getElementById("allclasses_navbar_top");""",
|
|
|
|
"""
|
|
|
|
<script type="text/javascript"><!--
|
|
|
|
allClassesLink = document.getElementById("allclasses_navbar_bottom");""");
|
2020-01-14 21:17:30 +01:00
|
|
|
}
|
2015-11-28 18:52:17 -08:00
|
|
|
}
|