1 /* |
1 /* |
2 * Copyright (c) 2002, 2016, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2002, 2018, 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. |
25 * @test |
25 * @test |
26 * @bug 4510979 |
26 * @bug 4510979 |
27 * @summary Test to make sure that the source documentation is indented properly |
27 * @summary Test to make sure that the source documentation is indented properly |
28 * when -linksourcetab is used. |
28 * when -linksourcetab is used. |
29 * @author jamieh |
29 * @author jamieh |
30 * @library ../lib |
30 * @library ../../lib |
31 * @modules jdk.javadoc/jdk.javadoc.internal.tool |
31 * @modules jdk.javadoc/jdk.javadoc.internal.tool |
32 * @build JavadocTester |
32 * @build javadoc.tester.* |
33 * @run main TestSourceTab |
33 * @run main TestSourceTab |
34 */ |
34 */ |
35 |
35 |
36 import java.io.*; |
36 import java.io.*; |
|
37 |
|
38 import javadoc.tester.JavadocTester; |
37 |
39 |
38 public class TestSourceTab extends JavadocTester { |
40 public class TestSourceTab extends JavadocTester { |
39 |
41 |
40 public static void main(String... args) throws Exception { |
42 public static void main(String... args) throws Exception { |
41 TestSourceTab tester = new TestSourceTab(); |
43 TestSourceTab tester = new TestSourceTab(); |
42 tester.runTests(); |
44 tester.runTests(); |
43 } |
45 } |
44 |
46 |
45 @Test |
47 @Test |
46 void test() throws Exception { |
48 public void test() throws Exception { |
47 String tmpSrcDir = "tmpSrc"; |
49 String tmpSrcDir = "tmpSrc"; |
48 String outdir1 = "out-tabLengthEight"; |
50 String outdir1 = "out-tabLengthEight"; |
49 String outdir2 = "out-tabLengthFour"; |
51 String outdir2 = "out-tabLengthFour"; |
50 initTabs(new File(testSrc), new File(tmpSrcDir)); |
52 initTabs(new File(testSrc), new File(tmpSrcDir)); |
51 |
53 |