equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2017, 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. |
23 |
23 |
24 /* |
24 /* |
25 * @test |
25 * @test |
26 * @bug 8176901 |
26 * @bug 8176901 |
27 * @summary The doclet should cope with bad HTML form |
27 * @summary The doclet should cope with bad HTML form |
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 javadoc.tester.* |
31 * @run main TestBadHtml |
31 * @run main TestBadHtml |
32 */ |
32 */ |
|
33 |
|
34 import javadoc.tester.JavadocTester; |
33 |
35 |
34 public class TestBadHtml extends JavadocTester { |
36 public class TestBadHtml extends JavadocTester { |
35 |
37 |
36 public static void main(String... args) throws Exception { |
38 public static void main(String... args) throws Exception { |
37 TestBadHtml tester = new TestBadHtml(); |
39 TestBadHtml tester = new TestBadHtml(); |
38 tester.runTests(); |
40 tester.runTests(); |
39 } |
41 } |
40 |
42 |
41 @Test |
43 @Test |
42 void testNegative() { |
44 public void testNegative() { |
43 javadoc("-d", "out1", |
45 javadoc("-d", "out1", |
44 "-sourcepath", testSrc, |
46 "-sourcepath", testSrc, |
45 "pkg1"); |
47 "pkg1"); |
46 |
48 |
47 checkExit(Exit.ERROR); |
49 checkExit(Exit.ERROR); |