author | jjg |
Tue, 22 Apr 2014 17:41:11 -0700 | |
changeset 24071 | b0845717434e |
parent 24065 | fc4022e50129 |
child 24072 | e7549dcbc4af |
permissions | -rw-r--r-- |
14261 | 1 |
/* |
23971 | 2 |
* Copyright (c) 2002, 2014, Oracle and/or its affiliates. All rights reserved. |
14261 | 3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 |
* |
|
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 |
|
7 |
* published by the Free Software Foundation. |
|
8 |
* |
|
9 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
|
10 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
11 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
12 |
* version 2 for more details (a copy is included in the LICENSE file that |
|
13 |
* accompanied this code). |
|
14 |
* |
|
15 |
* You should have received a copy of the GNU General Public License version |
|
16 |
* 2 along with this work; if not, write to the Free Software Foundation, |
|
17 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
18 |
* |
|
19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
|
20 |
* or visit www.oracle.com if you need additional information or have any |
|
21 |
* questions. |
|
22 |
*/ |
|
23 |
||
24 |
/* |
|
25 |
* Portions Copyright (c) 2012 IBM Corporation |
|
26 |
*/ |
|
27 |
||
28 |
/* |
|
29 |
* @test |
|
30 |
* @bug 8000743 |
|
31 |
* @summary Run tests on -docencoding to see if the value is |
|
32 |
used for stylesheet as well. |
|
33 |
* @author jayashree viswanathan |
|
34 |
* @library ../lib/ |
|
35 |
* @build JavadocTester TestDocEncoding |
|
36 |
* @run main TestDocEncoding |
|
37 |
*/ |
|
38 |
||
39 |
public class TestDocEncoding extends JavadocTester { |
|
40 |
||
41 |
//Test information. |
|
42 |
private static final String BUG_ID = "8000743"; |
|
43 |
||
44 |
//Javadoc arguments. |
|
45 |
private static final String[] ARGS = new String[] { |
|
24064
fce161af6665
8040908: javadoc test TestDocEncoding should use -notimestamp
jjg
parents:
23971
diff
changeset
|
46 |
"-d", BUG_ID, |
fce161af6665
8040908: javadoc test TestDocEncoding should use -notimestamp
jjg
parents:
23971
diff
changeset
|
47 |
"-docencoding", "Cp930", |
fce161af6665
8040908: javadoc test TestDocEncoding should use -notimestamp
jjg
parents:
23971
diff
changeset
|
48 |
"-sourcepath", SRC_DIR, |
fce161af6665
8040908: javadoc test TestDocEncoding should use -notimestamp
jjg
parents:
23971
diff
changeset
|
49 |
"-notimestamp", |
fce161af6665
8040908: javadoc test TestDocEncoding should use -notimestamp
jjg
parents:
23971
diff
changeset
|
50 |
"pkg" |
14261 | 51 |
}; |
52 |
||
53 |
private static final String[][] NEGATED_TEST = { |
|
23971 | 54 |
{BUG_ID + "/stylesheet.css", |
55 |
"body {\n" + |
|
56 |
" background-color:#ffffff;"} |
|
14261 | 57 |
}; |
58 |
||
59 |
/** |
|
60 |
* The entry point of the test. |
|
61 |
* @param args the array of command line arguments. |
|
62 |
*/ |
|
63 |
public static void main(String[] args) { |
|
64 |
TestDocEncoding tester = new TestDocEncoding(); |
|
24071 | 65 |
tester.run(ARGS, NO_TEST, NEGATED_TEST); |
14261 | 66 |
tester.printSummary(); |
67 |
} |
|
68 |
||
69 |
/** |
|
70 |
* {@inheritDoc} |
|
71 |
*/ |
|
72 |
public String getBugId() { |
|
73 |
return BUG_ID; |
|
74 |
} |
|
75 |
||
76 |
/** |
|
77 |
* {@inheritDoc} |
|
78 |
*/ |
|
79 |
public String getBugName() { |
|
80 |
return getClass().getName(); |
|
81 |
} |
|
82 |
} |
|
83 |