equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2001, 2016, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2001, 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. |
27 * @summary Javadoc strips all of the leading spaces when the comment |
27 * @summary Javadoc strips all of the leading spaces when the comment |
28 * does not begin with a star. This RFE allows users to |
28 * does not begin with a star. This RFE allows users to |
29 * begin their comment without a leading star without leading |
29 * begin their comment without a leading star without leading |
30 * spaces stripped |
30 * spaces stripped |
31 * @author jamieh |
31 * @author jamieh |
32 * @library ../lib |
32 * @library ../../lib |
33 * @modules jdk.javadoc/jdk.javadoc.internal.tool |
33 * @modules jdk.javadoc/jdk.javadoc.internal.tool |
34 * @build JavadocTester |
34 * @build javadoc.tester.* |
35 * @run main LeadingSpaces |
35 * @run main LeadingSpaces |
36 */ |
36 */ |
|
37 |
|
38 import javadoc.tester.JavadocTester; |
37 |
39 |
38 public class LeadingSpaces extends JavadocTester { |
40 public class LeadingSpaces extends JavadocTester { |
39 /** |
41 /** |
40 * The entry point of the test. |
42 * The entry point of the test. |
41 * @param args the array of command line arguments. |
43 * @param args the array of command line arguments. |
45 LeadingSpaces tester = new LeadingSpaces(); |
47 LeadingSpaces tester = new LeadingSpaces(); |
46 tester.runTests(); |
48 tester.runTests(); |
47 } |
49 } |
48 |
50 |
49 @Test |
51 @Test |
50 void testLeadingSpaces() { |
52 public void testLeadingSpaces() { |
51 javadoc("-d", "out", "-sourcepath", testSrc, |
53 javadoc("-d", "out", "-sourcepath", testSrc, |
52 testSrc("LeadingSpaces.java")); |
54 testSrc("LeadingSpaces.java")); |
53 checkExit(Exit.OK); |
55 checkExit(Exit.OK); |
54 checkOutput("LeadingSpaces.html", true, |
56 checkOutput("LeadingSpaces.html", true, |
55 " 1\n" |
57 " 1\n" |