test/langtools/jdk/javadoc/doclet/testNonInlineHtmlTagRemoval/TestNonInlineHtmlTagRemoval.java
--- a/test/langtools/jdk/javadoc/doclet/testNonInlineHtmlTagRemoval/TestNonInlineHtmlTagRemoval.java Tue Mar 06 17:43:21 2018 +0100
+++ b/test/langtools/jdk/javadoc/doclet/testNonInlineHtmlTagRemoval/TestNonInlineHtmlTagRemoval.java Tue Mar 06 10:45:47 2018 -0800
@@ -23,7 +23,7 @@
/*
* @test
- * @bug 8048628 8174715
+ * @bug 8048628 8174715 8182765
* @summary Verify html inline tags are removed correctly in the first sentence.
* @library ../lib
* @modules jdk.javadoc/jdk.javadoc.internal.tool
@@ -43,7 +43,11 @@
javadoc("-d", "out1",
"-sourcepath", testSrc,
testSrc("C.java"));
- checkExit(Exit.OK);
+ checkExit(Exit.ERROR);
+
+ checkOutput(Output.OUT, true,
+ "attribute not supported in HTML5: compact",
+ "attribute not supported in HTML5: type");
checkOutput("C.html", true,
"<div class=\"block\">case1 end of sentence.</div>",
@@ -60,6 +64,15 @@
}
@Test
+ void testPositive_html4() {
+ javadoc("-d", "out1-html4",
+ "-html4",
+ "-sourcepath", testSrc,
+ testSrc("C.java"));
+ checkExit(Exit.OK);
+ }
+
+ @Test
void testNegative() {
javadoc("-d", "out2",
"-sourcepath", testSrc,