langtools/test/com/sun/javadoc/MetaTag/MetaTag.java
changeset 14542 7062120649c2
parent 7681 1f0819a3341f
child 23971 f5ff1f5a8dee
equal deleted inserted replaced
14541:36f9d11fc9aa 14542:7062120649c2
     1 /*
     1 /*
     2  * Copyright (c) 2002, 2010, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2002, 2012, 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.
    21  * questions.
    21  * questions.
    22  */
    22  */
    23 
    23 
    24 import java.text.SimpleDateFormat;
    24 import java.text.SimpleDateFormat;
    25 import java.util.Date;
    25 import java.util.Date;
    26 
       
    27 import com.sun.tools.doclets.formats.html.ConfigurationImpl;
       
    28 import com.sun.tools.doclets.internal.toolkit.Configuration;
       
    29 
    26 
    30 /*
    27 /*
    31  * @test
    28  * @test
    32  * @bug      4034096 4764726 6235799
    29  * @bug      4034096 4764726 6235799
    33  * @summary  Add support for HTML keywords via META tag for
    30  * @summary  Add support for HTML keywords via META tag for
   133      * The entry point of the test.
   130      * The entry point of the test.
   134      * @param args the array of command line arguments.
   131      * @param args the array of command line arguments.
   135      */
   132      */
   136     public static void main(String[] args) {
   133     public static void main(String[] args) {
   137         MetaTag tester = new MetaTag();
   134         MetaTag tester = new MetaTag();
   138         Configuration config = ConfigurationImpl.getInstance();
       
   139         boolean defaultKeywordsSetting = config.keywords;
       
   140         boolean defaultTimestampSetting = config.notimestamp;
       
   141         run(tester, ARGS, TEST, NEGATED_TEST);
   135         run(tester, ARGS, TEST, NEGATED_TEST);
   142         //Variable needs to be reset because Configuration is a singleton.
       
   143         config.keywords = defaultKeywordsSetting;
       
   144         config.notimestamp = defaultTimestampSetting;
       
   145         run(tester, ARGS_NO_TIMESTAMP_NO_KEYWORDS, TEST2, NEGATED_TEST2);
   136         run(tester, ARGS_NO_TIMESTAMP_NO_KEYWORDS, TEST2, NEGATED_TEST2);
   146         tester.printSummary();
   137         tester.printSummary();
   147     }
   138     }
   148 
   139 
   149     /**
   140     /**