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 BUG_ID = "7001086"; |
|
37 private static final String[][] TEST = { |
36 private static final String[][] TEST = { |
38 {BUG_ID + "/index.html", |
37 { "index.html", |
39 "<p>This document is designed to be viewed using the frames feature. " + |
38 "<p>This document is designed to be viewed using the frames feature. " + |
40 "If you see this message, you are using a non-frame-capable web client. " + |
39 "If you see this message, you are using a non-frame-capable web client. " + |
41 "Link to <a href=\"pkg/package-summary.html\">Non-frame version</a>.</p>" |
40 "Link to <a href=\"pkg/package-summary.html\">Non-frame version</a>.</p>" |
42 } |
41 } |
43 }; |
42 }; |
44 private static final String[] ARGS = new String[]{ |
43 private static final String[] ARGS = new String[]{ |
45 "-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg" |
44 "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, "pkg" |
46 }; |
45 }; |
47 |
46 |
48 /** |
47 /** |
49 * The entry point of the test. |
48 * The entry point of the test. |
50 * @param args the array of command line arguments. |
49 * @param args the array of command line arguments. |
52 public static void main(String[] args) { |
51 public static void main(String[] args) { |
53 TestNonFrameWarning tester = new TestNonFrameWarning(); |
52 TestNonFrameWarning tester = new TestNonFrameWarning(); |
54 tester.run(ARGS, TEST, NO_TEST); |
53 tester.run(ARGS, TEST, NO_TEST); |
55 tester.printSummary(); |
54 tester.printSummary(); |
56 } |
55 } |
57 |
|
58 /** |
|
59 * {@inheritDoc} |
|
60 */ |
|
61 public String getBugId() { |
|
62 return BUG_ID; |
|
63 } |
|
64 |
|
65 /** |
|
66 * {@inheritDoc} |
|
67 */ |
|
68 public String getBugName() { |
|
69 return getClass().getName(); |
|
70 } |
|
71 } |
56 } |