diff -r 4e8e04f40479 -r e813baa25bf2 langtools/test/com/sun/javadoc/testCharset/TestCharset.java --- a/langtools/test/com/sun/javadoc/testCharset/TestCharset.java Wed Sep 17 23:52:19 2014 -0700 +++ b/langtools/test/com/sun/javadoc/testCharset/TestCharset.java Thu Sep 18 00:50:48 2014 -0700 @@ -23,7 +23,7 @@ /* * @test - * @bug 7052170 + * @bug 7052170 8047745 * @summary Run a test on -charset to make sure the charset gets generated as a * part of the meta tag. * @author Bhavesh Patel @@ -42,19 +42,32 @@ @Test void test() { javadoc("-d", "out", - "-charset", "UTF-8", + "-charset", "ISO-8859-1", "-sourcepath", testSrc, "pkg"); checkExit(Exit.OK); checkOutput("index.html", true, - ""); + ""); checkOutput("pkg/Foo.html", true, - ""); + ""); checkOutput("index.html", false, - ""); + ""); checkOutput("pkg/Foo.html", false, - ""); + ""); + } + + @Test + void test1() { + javadoc("-d", "out-1", + "-sourcepath", testSrc, + "pkg"); + checkExit(Exit.OK); + + checkOutput("index.html", true, + ""); + checkOutput("pkg/Foo.html", true, + ""); } }