24 /* |
24 /* |
25 * @test |
25 * @test |
26 * @bug 7001086 |
26 * @bug 7001086 |
27 * @summary Test Non-frame warning. |
27 * @summary Test Non-frame warning. |
28 * @author Bhavesh Patel |
28 * @author Bhavesh Patel |
29 * @library ../lib/ |
29 * @library ../lib |
30 * @build JavadocTester TestNonFrameWarning |
30 * @build JavadocTester |
31 * @run main TestNonFrameWarning |
31 * @run main TestNonFrameWarning |
32 */ |
32 */ |
33 |
33 |
34 public class TestNonFrameWarning extends JavadocTester { |
34 public class TestNonFrameWarning extends JavadocTester { |
35 |
35 |
36 private static final String[][] TEST = { |
36 public static void main(String... args) throws Exception { |
37 { "index.html", |
37 TestNonFrameWarning tester = new TestNonFrameWarning(); |
38 "<p>This document is designed to be viewed using the frames feature. " + |
38 tester.runTests(); |
39 "If you see this message, you are using a non-frame-capable web client. " + |
39 } |
40 "Link to <a href=\"pkg/package-summary.html\">Non-frame version</a>.</p>" |
|
41 } |
|
42 }; |
|
43 private static final String[] ARGS = new String[]{ |
|
44 "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, "pkg" |
|
45 }; |
|
46 |
40 |
47 /** |
41 @Test |
48 * The entry point of the test. |
42 void test() { |
49 * @param args the array of command line arguments. |
43 javadoc("-d", "out", |
50 */ |
44 "-sourcepath", testSrc, |
51 public static void main(String[] args) { |
45 "pkg"); |
52 TestNonFrameWarning tester = new TestNonFrameWarning(); |
46 checkExit(Exit.OK); |
53 tester.run(ARGS, TEST, NO_TEST); |
47 |
54 tester.printSummary(); |
48 checkOutput("index.html", true, |
|
49 "<p>This document is designed to be viewed using the frames feature. " |
|
50 + "If you see this message, you are using a non-frame-capable web client. " |
|
51 + "Link to <a href=\"pkg/package-summary.html\">Non-frame version</a>.</p>"); |
55 } |
52 } |
56 } |
53 } |