1 /* |
1 /* |
2 * Copyright (c) 2002, 2010, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2002, 2014, 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. |
36 |
36 |
37 public class TestDocRootInlineTag extends JavadocTester { |
37 public class TestDocRootInlineTag extends JavadocTester { |
38 |
38 |
39 private static final String BUG_ID = "4369014-4851991"; |
39 private static final String BUG_ID = "4369014-4851991"; |
40 private static final String[][] TEST = { |
40 private static final String[][] TEST = { |
41 {BUG_ID + FS + "TestDocRootTag.html", |
41 {BUG_ID + "/TestDocRootTag.html", |
42 "<a href=\"http://www.java.sun.com/j2se/1.4/docs/api/java/io/File.html?is-external=true\" " + |
42 "<a href=\"http://www.java.sun.com/j2se/1.4/docs/api/java/io/File.html?is-external=true\" " + |
43 "title=\"class or interface in java.io\"><code>File</code></a>"}, |
43 "title=\"class or interface in java.io\"><code>File</code></a>"}, |
44 {BUG_ID + FS + "TestDocRootTag.html", |
44 {BUG_ID + "/TestDocRootTag.html", |
45 "<a href=\"./glossary.html\">glossary</a>"}, |
45 "<a href=\"./glossary.html\">glossary</a>"}, |
46 {BUG_ID + FS + "TestDocRootTag.html", |
46 {BUG_ID + "/TestDocRootTag.html", |
47 "<a href=\"http://www.java.sun.com/j2se/1.4/docs/api/java/io/File.html?is-external=true\" " + |
47 "<a href=\"http://www.java.sun.com/j2se/1.4/docs/api/java/io/File.html?is-external=true\" " + |
48 "title=\"class or interface in java.io\"><code>Second File Link</code></a>"}, |
48 "title=\"class or interface in java.io\"><code>Second File Link</code></a>"}, |
49 {BUG_ID + FS + "TestDocRootTag.html", "The value of @docRoot is \"./\""}, |
49 {BUG_ID + "/TestDocRootTag.html", "The value of @docRoot is \"./\""}, |
50 {BUG_ID + FS + "index-all.html", "My package page is " + |
50 {BUG_ID + "/index-all.html", "My package page is " + |
51 "<a href=\"./pkg/package-summary.html\">here</a>"} |
51 "<a href=\"./pkg/package-summary.html\">here</a>"} |
52 }; |
52 }; |
53 private static final String[][] NEGATED_TEST = NO_TEST; |
53 private static final String[][] NEGATED_TEST = NO_TEST; |
54 private static final String[] ARGS = |
54 private static final String[] ARGS = |
55 new String[] { |
55 new String[] { |
56 "-bottom", "The value of @docRoot is \"{@docRoot}\"", |
56 "-bottom", "The value of @docRoot is \"{@docRoot}\"", |
57 "-d", BUG_ID, "-sourcepath", SRC_DIR, |
57 "-d", BUG_ID, "-sourcepath", SRC_DIR, |
58 "-linkoffline", "http://www.java.sun.com/j2se/1.4/docs/api", |
58 "-linkoffline", "http://www.java.sun.com/j2se/1.4/docs/api", |
59 SRC_DIR, SRC_DIR + FS + "TestDocRootTag.java", "pkg" |
59 SRC_DIR, SRC_DIR + "/TestDocRootTag.java", "pkg" |
60 }; |
60 }; |
61 |
61 |
62 /** |
62 /** |
63 * The entry point of the test. |
63 * The entry point of the test. |
64 * @param args the array of command line arguments. |
64 * @param args the array of command line arguments. |