test/com/sun/javadoc/testHref/TestHref.java

changeset 958
734144b6b22f
parent 798
4868a36f6fd8
child 1743
6a5288a298fd
equal deleted inserted replaced
957:46d720734db3 958:734144b6b22f
1 /* 1 /*
2 * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2003, 2011, 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.
25 * @test 25 * @test
26 * @bug 4663254 26 * @bug 4663254
27 * @summary Verify that spaces do not appear in hrefs and anchors. 27 * @summary Verify that spaces do not appear in hrefs and anchors.
28 * @author jamieh 28 * @author jamieh
29 * @library ../lib/ 29 * @library ../lib/
30 * @build JavadocTester 30 * @build JavadocTester TestHref
31 * @build TestHref
32 * @run main TestHref 31 * @run main TestHref
33 */ 32 */
34 33
35 public class TestHref extends JavadocTester { 34 public class TestHref extends JavadocTester {
36 35
79 "Class C4&lt;E extends C4&lt;E&gt;&gt;</h2>" 78 "Class C4&lt;E extends C4&lt;E&gt;&gt;</h2>"
80 }, 79 },
81 80
82 //Signature does not link to the page itself. 81 //Signature does not link to the page itself.
83 {BUG_ID + FS + "pkg" + FS + "C4.html", 82 {BUG_ID + FS + "pkg" + FS + "C4.html",
84 "public abstract class <strong>C4&lt;E extends C4&lt;E&gt;&gt;</strong>" 83 "public abstract class <span class=\"strong\">C4&lt;E extends C4&lt;E&gt;&gt;</span>"
85 }, 84 },
86 }; 85 };
87 private static final String[][] NEGATED_TEST = 86 private static final String[][] NEGATED_TEST =
88 { 87 {
89 {WARNING_OUTPUT, "<a> tag is malformed"} 88 {WARNING_OUTPUT, "<a> tag is malformed"}

mercurial