8027148: SystemFlavorMap.getNativesForFlavor returns list of native formats in incorrect order
Reviewed-by: anthony, serb
<HTML>
<HEAD>
</HEAD>
<BODY>
Dummy first sentence to suppress breakiterator warning.
<p>
Case 0 Actual: <A HREF=".">.</A> Current directory
<p>
Sub-test 12 Actual: <A HREF="{@docroot}">{@docroot}</A> Bare tag - ALL LOWERCASE <br>
Sub-test 12 Expect: <A HREF=""></A> <br>
(Expect empty string because lowercase docroot is illegal)
<p>
Sub-test 13 Actual: <A HREF="{@docRoot}">{@docRoot}</A> Bare tag - "R" UPPERCASE <br>
Sub-test 13 Expect: <A HREF="..">..</A>
<p>
Sub-test 14 Actual: <A HREF="{@docRoot}/package-list">{@docRoot}/package-list</A> <br>
Sub-test 14 Expect: <A HREF="../package-list">../package-list</A>
<p>
Sub-test 15 Actual: <A HREF="{@docRoot}/p2/C2.html">{@docRoot}/p2/C2.html</A> <br>
Sub-test 15 Expect: <A HREF="../p2/C2.html">../p2/C2.html</A>
<p>
Sub-test 16 Actual: <A HREF="{@docRoot}/../docs1/p2/C2.html">{@docRoot}/../docs1/p2/C2.html</A> <br>
Sub-test 16 Expect: <A HREF="../../docs1/p2/C2.html">../../docs1/p2/C2.html</A>
<p>
Sub-test 17 Actual: <A HREF="{@docRoot}/p2/package-summary.html#package_description">{@docRoot}/p2/package-summary.html#package_description</A> <br>
Sub-test 17 Expect: <A HREF="../p2/package-summary.html#package_description">../p2/package-summary.html#package_description</A>
<p>
Sub-test 18 Actual: <A HREF="{@docRoot}/../docs1/p2/package-summary.html#package_description">{@docRoot}/../docs1/p2/package-summary.html#package_description</A> <br>
Sub-test 18 Expect: <A HREF="../../docs1/p2/package-summary.html#package_description">../../docs1/p2/package-summary.html#package_description</A>
<p>
<!-- ------------------------------------------------ -->
Allow docRoot to work without a trailing slash for those who had to change their comments
to work with the 1.4.0 bug:
<p>
Sub-test 19 Actual: <A HREF="{@docRoot}p2/C2.html">{@docRoot}p2/C2.html</A> <br>
Sub-test 19 Expect: <A HREF="..p2/C2.html">../p2/C2.html</A>
<p>
Sub-test 20 Actual: <A HREF="{@docRoot}../docs1/p2/C2.html">{@docRoot}../docs1/p2/C2.html</A> <br>
Sub-test 20 Expect: <A HREF="..../docs1/p2/C2.html">../../docs1/p2/C2.html</A>
<p>
Sub-test 21 Actual: <A HREF="{@docRoot}p2/package-summary.html#package_description">{@docRoot}/p2/package-summary.html#package_description</A><br>
Sub-test 21 Expect: <A HREF="..p2/package-summary.html#package_description">../p2/package-summary.html#package_description</A>
<p>
Sub-test 22 Actual: <A HREF="{@docRoot}../docs1/p2/package-summary.html#package_description">{@docRoot}/../docs1/p2/package-summary.html#package_description</A> <br>
Sub-test 22 Expect: <A HREF="..../docs1/p2/package-summary.html#package_description">../../docs1/p2/package-summary.html#package_description</A>
<p>
Bonus links, not part of automated test (bug 4662945):<br>
Actual: <A HREF="{@docRoot}p1/package-summary.html#package_description">package description</a> {@docRoot}p1/packagesummary#package_description</A> <br>
Actual: <A HREF="{@docRoot}/p1/package-summary.html#package_description">package description</A> {@docRoot}/p1/package-summary.html#package_description <br>
Expect: <A HREF="../p1/package-summary.html#package_description">../p1/package-summary.html#package description</a>
<p>
</BODY>
</HTML>