langtools/test/jdk/javadoc/doclet/testIndentation/TestIndentation.java
changeset 44297 e03f5fb3714b
parent 36526 3b41f1c69604
equal deleted inserted replaced
44296:e9bbaeab6f49 44297:e03f5fb3714b
     1 /*
     1 /*
     2  * Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2013, 2017, 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      8011288 8062647
    26  * @bug      8011288 8062647 8175200
    27  * @summary  Erratic/inconsistent indentation of signatures
    27  * @summary  Erratic/inconsistent indentation of signatures
    28  * @library  ../lib
    28  * @library  ../lib
    29  * @modules jdk.javadoc/jdk.javadoc.internal.tool
    29  * @modules jdk.javadoc/jdk.javadoc.internal.tool
    30  * @build    JavadocTester
    30  * @build    JavadocTester
    31  * @run main TestIndentation
    31  * @run main TestIndentation
    44                 "-sourcepath", testSrc,
    44                 "-sourcepath", testSrc,
    45                 "p");
    45                 "p");
    46         checkExit(Exit.OK);
    46         checkExit(Exit.OK);
    47 
    47 
    48         checkOutput("p/Indent.html", true,
    48         checkOutput("p/Indent.html", true,
    49                 "<pre>public&nbsp;&lt;T&gt;&nbsp;void&nbsp;m(T&nbsp;t1,",
    49                 "<pre>public&nbsp;&lt;T&gt;&nbsp;void&nbsp;m&#8203;(T&nbsp;t1,",
    50                 "\n"
    50                 "\n"
    51                 + "                  T&nbsp;t2)",
    51                 + "                  T&nbsp;t2)",
    52                 "\n"
    52                 "\n"
    53                 + "           throws java.lang.Exception");
    53                 + "           throws java.lang.Exception");
    54 
    54