langtools/test/com/sun/javadoc/testCharset/TestCharset.java
changeset 23971 f5ff1f5a8dee
parent 19663 9a3447cabe1a
child 24065 fc4022e50129
equal deleted inserted replaced
23970:76f4acb11952 23971:f5ff1f5a8dee
     1 /*
     1 /*
     2  * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2013, 2014, 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.
    41     private static final String[] ARGS = new String[] {
    41     private static final String[] ARGS = new String[] {
    42         "-d", BUG_ID, "-charset", "UTF-8", "-sourcepath", SRC_DIR, "pkg"
    42         "-d", BUG_ID, "-charset", "UTF-8", "-sourcepath", SRC_DIR, "pkg"
    43     };
    43     };
    44 
    44 
    45     private static final String[][] TEST = {
    45     private static final String[][] TEST = {
    46         {BUG_ID + FS + "index.html",
    46         {BUG_ID + "/index.html",
    47             "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">"},
    47             "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">"},
    48         {BUG_ID + FS + "pkg" + FS + "Foo.html",
    48         {BUG_ID + "/pkg/Foo.html",
    49             "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">"}
    49             "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">"}
    50     };
    50     };
    51 
    51 
    52     private static final String[][] NEGATED_TEST = {
    52     private static final String[][] NEGATED_TEST = {
    53         {BUG_ID + FS + "index.html",
    53         {BUG_ID + "/index.html",
    54             "<meta http-equiv=\"Content-Type\" content=\"text/html\" charset=\"UTF-8\">"},
    54             "<meta http-equiv=\"Content-Type\" content=\"text/html\" charset=\"UTF-8\">"},
    55         {BUG_ID + FS + "pkg" + FS + "Foo.html",
    55         {BUG_ID + "/pkg/Foo.html",
    56             "<meta http-equiv=\"Content-Type\" content=\"text/html\" charset=\"UTF-8\">"}
    56             "<meta http-equiv=\"Content-Type\" content=\"text/html\" charset=\"UTF-8\">"}
    57     };
    57     };
    58 
    58 
    59     /**
    59     /**
    60      * The entry point of the test.
    60      * The entry point of the test.