AccessFrameTitle.java revision 3233:b5d08bc0d224
1206274Srdivacky/*
2206274Srdivacky * Copyright (c) 2002, 2015, Oracle and/or its affiliates. All rights reserved.
3206274Srdivacky * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4206274Srdivacky *
5206274Srdivacky * This code is free software; you can redistribute it and/or modify it
6206274Srdivacky * under the terms of the GNU General Public License version 2 only, as
7206274Srdivacky * published by the Free Software Foundation.
8206274Srdivacky *
9206274Srdivacky * This code is distributed in the hope that it will be useful, but WITHOUT
10206274Srdivacky * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11206274Srdivacky * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
12206274Srdivacky * version 2 for more details (a copy is included in the LICENSE file that
13206274Srdivacky * accompanied this code).
14206274Srdivacky *
15206274Srdivacky * You should have received a copy of the GNU General Public License version
16252723Sdim * 2 along with this work; if not, write to the Free Software Foundation,
17252723Sdim * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18206274Srdivacky *
19206274Srdivacky * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20206274Srdivacky * or visit www.oracle.com if you need additional information or have any
21206274Srdivacky * questions.
22252723Sdim */
23252723Sdim
24252723Sdim/*
25218893Sdim * @test
26206274Srdivacky * @bug 4636655
27206274Srdivacky * @summary  Add title attribute to <FRAME> tags for accessibility
28206274Srdivacky * @author dkramer
29206274Srdivacky * @library ../lib
30206274Srdivacky * @modules jdk.javadoc
31206274Srdivacky * @build JavadocTester
32206274Srdivacky * @run main AccessFrameTitle
33206274Srdivacky */
34206274Srdivacky
35206274Srdivackypublic class AccessFrameTitle extends JavadocTester {
36263509Sdim
37206274Srdivacky    public static void main(String... args) throws Exception {
38206274Srdivacky        AccessFrameTitle tester = new AccessFrameTitle();
39206274Srdivacky        tester.runTests();
40235633Sdim    }
41206274Srdivacky
42206274Srdivacky    @Test
43206274Srdivacky    void test() {
44263509Sdim        javadoc("-d", "out",
45206274Srdivacky                "-sourcepath", testSrc,
46206274Srdivacky                "p1", "p2");
47206274Srdivacky        checkExit(Exit.OK);
48218893Sdim
49252723Sdim        // Testing only for the presence of the title attributes.
50206274Srdivacky        // To make this test more robust, only
51206274Srdivacky        // the initial part of each title string is tested for,
52206274Srdivacky        // in case the ending part of the string later changes
53206274Srdivacky        checkOutput("index.html", true,
54206274Srdivacky                "title=\"All classes and interfaces (except non-static nested types)\"",
55206274Srdivacky                "title=\"All Packages\"",
56252723Sdim                "title=\"Package, class and interface descriptions\"");
57206274Srdivacky    }
58206274Srdivacky}
59206274Srdivacky