test/langtools/jdk/javadoc/doclet/testNonInlineHtmlTagRemoval/TestNonInlineHtmlTagRemoval.java
equal
deleted
inserted
replaced
21 * questions. |
21 * questions. |
22 */ |
22 */ |
23 |
23 |
24 /* |
24 /* |
25 * @test |
25 * @test |
26 * @bug 8048628 8174715 |
26 * @bug 8048628 8174715 8182765 |
27 * @summary Verify html inline tags are removed correctly in the first sentence. |
27 * @summary Verify html inline tags are removed correctly in the first sentence. |
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 TestNonInlineHtmlTagRemoval |
31 * @run main TestNonInlineHtmlTagRemoval |
41 @Test |
41 @Test |
42 void testPositive() { |
42 void testPositive() { |
43 javadoc("-d", "out1", |
43 javadoc("-d", "out1", |
44 "-sourcepath", testSrc, |
44 "-sourcepath", testSrc, |
45 testSrc("C.java")); |
45 testSrc("C.java")); |
46 checkExit(Exit.OK); |
46 checkExit(Exit.ERROR); |
|
47 |
|
48 checkOutput(Output.OUT, true, |
|
49 "attribute not supported in HTML5: compact", |
|
50 "attribute not supported in HTML5: type"); |
47 |
51 |
48 checkOutput("C.html", true, |
52 checkOutput("C.html", true, |
49 "<div class=\"block\">case1 end of sentence.</div>", |
53 "<div class=\"block\">case1 end of sentence.</div>", |
50 "<div class=\"block\">case2 end of sentence.</div>", |
54 "<div class=\"block\">case2 end of sentence.</div>", |
51 "<div class=\"block\">case3 end of sentence.</div>", |
55 "<div class=\"block\">case3 end of sentence.</div>", |
58 "<div class=\"block\">caseA end of sentence.</div>", |
62 "<div class=\"block\">caseA end of sentence.</div>", |
59 "<div class=\"block\">caseB A block quote example:</div>"); |
63 "<div class=\"block\">caseB A block quote example:</div>"); |
60 } |
64 } |
61 |
65 |
62 @Test |
66 @Test |
|
67 void testPositive_html4() { |
|
68 javadoc("-d", "out1-html4", |
|
69 "-html4", |
|
70 "-sourcepath", testSrc, |
|
71 testSrc("C.java")); |
|
72 checkExit(Exit.OK); |
|
73 } |
|
74 |
|
75 @Test |
63 void testNegative() { |
76 void testNegative() { |
64 javadoc("-d", "out2", |
77 javadoc("-d", "out2", |
65 "-sourcepath", testSrc, |
78 "-sourcepath", testSrc, |
66 testSrc("Negative.java")); |
79 testSrc("Negative.java")); |
67 checkExit(Exit.ERROR); |
80 checkExit(Exit.ERROR); |