1299N/A/*
1299N/A * Copyright (c) 2002, 2012, Oracle and/or its affiliates. All rights reserved.
1299N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
1299N/A *
1299N/A * This code is free software; you can redistribute it and/or modify it
1299N/A * under the terms of the GNU General Public License version 2 only, as
1299N/A * published by the Free Software Foundation.
1299N/A *
1299N/A * This code is distributed in the hope that it will be useful, but WITHOUT
1299N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1299N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
1299N/A * version 2 for more details (a copy is included in the LICENSE file that
1299N/A * accompanied this code).
1299N/A *
1299N/A * You should have received a copy of the GNU General Public License version
1299N/A * 2 along with this work; if not, write to the Free Software Foundation,
1299N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
1299N/A *
1299N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
1299N/A * or visit www.oracle.com if you need additional information or have any
1299N/A * questions.
1299N/A */
1299N/A
1299N/A/*
1299N/A * Portions Copyright (c) 2012 IBM Corporation
1299N/A */
1299N/A
1299N/A/*
1299N/A * @test
1299N/A * @bug 8000743
1299N/A * @summary Run tests on -docencoding to see if the value is
1299N/A used for stylesheet as well.
1299N/A * @author jayashree viswanathan
1299N/A * @library ../lib/
1299N/A * @build JavadocTester TestDocEncoding
1299N/A * @run main TestDocEncoding
1299N/A */
1299N/A
1299N/Apublic class TestDocEncoding extends JavadocTester {
1299N/A
1299N/A //Test information.
1299N/A private static final String BUG_ID = "8000743";
1299N/A
1299N/A //Javadoc arguments.
1299N/A private static final String[] ARGS = new String[] {
1299N/A "-d", BUG_ID, "-docencoding", "Cp930",
1299N/A "-sourcepath", SRC_DIR, "pkg"
1299N/A };
1299N/A
1299N/A private static final String[][] TEST = NO_TEST;
1299N/A
1299N/A private static final String[][] NEGATED_TEST = {
1299N/A {BUG_ID + FS + "stylesheet.css",
1299N/A "body {" + NL + " background-color:#ffffff;"}
1299N/A };
1299N/A
1299N/A /**
1299N/A * The entry point of the test.
1299N/A * @param args the array of command line arguments.
1299N/A */
1299N/A public static void main(String[] args) {
1299N/A TestDocEncoding tester = new TestDocEncoding();
1299N/A run(tester, ARGS, TEST, NEGATED_TEST);
1299N/A tester.printSummary();
1299N/A }
1299N/A
1299N/A /**
1299N/A * {@inheritDoc}
1299N/A */
1299N/A public String getBugId() {
1299N/A return BUG_ID;
1299N/A }
1299N/A
1299N/A /**
1299N/A * {@inheritDoc}
1299N/A */
1299N/A public String getBugName() {
1299N/A return getClass().getName();
1299N/A }
1299N/A}
1299N/A