Path: blob/master/test/langtools/jdk/javadoc/doclet/DocRootSlash/p1/C1.java
40983 views
/*1* Copyright (c) 2002, 2021, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation.7*8* This code is distributed in the hope that it will be useful, but WITHOUT9* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or10* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License11* version 2 for more details (a copy is included in the LICENSE file that12* accompanied this code).13*14* You should have received a copy of the GNU General Public License version15* 2 along with this work; if not, write to the Free Software Foundation,16* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.17*18* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA19* or visit www.oracle.com if you need additional information or have any20* questions.21*/2223package p1;2425/**26* Dummy first sentence to suppress breakiterator warning.27* <p>28*29* Case 0 Actual: <A HREF=".">.</A> Current directory30* <p>31*32* Sub-test 1 Actual: <A HREF="{@docroot}">{@docroot}</A> Bare tag - ALL LOWERCASE <br>33* Sub-test 1 Expect: <A HREF=""></A> <br>34* (Expect empty string because lowercase docroot is illegal)35* <p>36*37* Sub-test 2 Actual: <A HREF="{@docRoot}">{@docRoot}</A> Bare tag - "R" UPPERCASE <br>38* Sub-test 2 Expect: <A HREF="..">..</A>39* <p>40*41* Sub-test 3 Actual: <A HREF="{@docRoot}/element-list">{@docRoot}/element-list</A> <br>42* Sub-test 3 Expect: <A HREF="../element-list">../element-list</A>43* <p>44*45* Sub-test 4 Actual: <A HREF="{@docRoot}/p2/C2.html">{@docRoot}/p2/C2.html</A> <br>46* Sub-test 4 Expect: <A HREF="../p2/C2.html">../p2/C2.html</A>47* <p>48*49* Sub-test 5 Actual: <A HREF="{@docRoot}/../out/p2/C2.html">{@docRoot}/../out/p2/C2.html</A> <br>50* Sub-test 5 Expect: <A HREF="../../out/p2/C2.html">../../out/p2/C2.html</A>51* <p>52*53* Sub-test 6 Actual: <A HREF="{@docRoot}/p2/package-summary.html#package-description">{@docRoot}/p2/package-summary.html#package-description</A> <br>54* Sub-test 6 Expect: <A HREF="../p2/package-summary.html#package-description">../p2/package-summary.html#package-description</A>55* <p>56*57* Sub-test 7 Actual: <A HREF="{@docRoot}/../out/p2/package-summary.html#package-description">{@docRoot}/../out/p2/package-summary.html#package-description</A> <br>58* Sub-test 7 Expect: <A HREF="../../out/p2/package-summary.html#package-description">../../out/p2/package-summary.html#package-description</A>59*60*/61public class C1 {62}636465