langtools/test/jdk/javadoc/doclet/testClassCrossReferences/TestClassCrossReferences.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2002, 2015, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2002, 2016, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
21 * questions. |
21 * questions. |
22 */ |
22 */ |
23 |
23 |
24 /* |
24 /* |
25 * @test |
25 * @test |
26 * @bug 4652655 4857717 8025633 8026567 |
26 * @bug 4652655 4857717 8025633 8026567 8071982 |
27 * @summary This test verifies that class cross references work properly. |
27 * @summary This test verifies that class cross references work properly. |
28 * @author jamieh |
28 * @author jamieh |
29 * @library ../lib |
29 * @library ../lib |
30 * @modules jdk.javadoc |
30 * @modules jdk.javadoc |
31 * @build JavadocTester |
31 * @build JavadocTester |
40 tester.runTests(); |
40 tester.runTests(); |
41 } |
41 } |
42 |
42 |
43 @Test |
43 @Test |
44 void test() { |
44 void test() { |
45 final String uri = "http://java.sun.com/j2se/1.4/docs/api/"; |
45 final String uri = "http://docs.oracle.com/javase/8/docs/api/"; |
46 |
46 |
47 javadoc("-d", "out", |
47 javadoc("-d", "out", |
|
48 "-Xdoclint:none", |
48 "-sourcepath", testSrc, |
49 "-sourcepath", testSrc, |
49 "-linkoffline", uri, testSrc, |
50 "-linkoffline", uri, testSrc, |
50 testSrc("C.java")); |
51 testSrc("C.java")); |
51 checkExit(Exit.OK); |
52 checkExit(Exit.OK); |
52 |
53 |
57 + "title=\"class or interface in javax.swing.text\"><code>Link to AttributeContext innerclass</code></a>", |
58 + "title=\"class or interface in javax.swing.text\"><code>Link to AttributeContext innerclass</code></a>", |
58 "<a href=\"" + uri + "java/math/BigDecimal.html?is-external=true\" " |
59 "<a href=\"" + uri + "java/math/BigDecimal.html?is-external=true\" " |
59 + "title=\"class or interface in java.math\"><code>Link to external class BigDecimal</code></a>", |
60 + "title=\"class or interface in java.math\"><code>Link to external class BigDecimal</code></a>", |
60 "<a href=\"" + uri + "java/math/BigInteger.html?is-external=true#gcd-java.math.BigInteger-\" " |
61 "<a href=\"" + uri + "java/math/BigInteger.html?is-external=true#gcd-java.math.BigInteger-\" " |
61 + "title=\"class or interface in java.math\"><code>Link to external member gcd</code></a>", |
62 + "title=\"class or interface in java.math\"><code>Link to external member gcd</code></a>", |
|
63 "<a href=\"" + uri + "javax/tools/SimpleJavaFileObject.html?is-external=true#URI\" " |
|
64 + "title=\"class or interface in javax.tools\"><code>Link to external member URI</code></a>", |
62 "<dl>\n" |
65 "<dl>\n" |
63 + "<dt><span class=\"overrideSpecifyLabel\">Overrides:</span></dt>\n" |
66 + "<dt><span class=\"overrideSpecifyLabel\">Overrides:</span></dt>\n" |
64 + "<dd><code>toString</code> in class <code>java.lang.Object</code></dd>\n" |
67 + "<dd><code>toString</code> in class <code>java.lang.Object</code></dd>\n" |
65 + "</dl>"); |
68 + "</dl>"); |
66 } |
69 } |