Dummy first sentence to suppress BreakIterator warning.

Case 0 Actual: . Current directory

Sub-test 23 Actual: {@docroot} Bare tag - ALL LOWERCASE
Sub-test 23 Expect:
(Expect empty string because lowercase docroot is illegal)

Sub-test 24 Actual: {@docRoot} Bare tag - "R" UPPERCASE
Sub-test 24 Expect: .

Sub-test 25 Actual: {@docRoot}/package-list
Sub-test 25 Expect: ./package-list

Sub-test 26 Actual: {@docRoot}/p2/C2.html
Sub-test 26 Expect: ./p2/C2.html

Sub-test 27 Actual: {@docRoot}/../docs1/p2/C2.html
Sub-test 27 Expect: ./../docs1/p2/C2.html

Sub-test 28 Actual: {@docRoot}/p2/package-summary.html#package_description
Sub-test 28 Expect: ./p2/package-summary.html#package_description

Sub-test 29 Actual: {@docRoot}/../docs1/p2/package-summary.html#package_description
Sub-test 29 Expect: ./../docs1/p2/package-summary.html#package_description

Allow docRoot to work without a trailing slash for those who had to change their comments to work with the 1.4.0 bug:

Sub-test 30 Actual: {@docRoot}p2/C2.html
Sub-test 30 Expect: ./p2/C2.html

Sub-test 31 Actual: {@docRoot}../docs1/p2/C2.html
Sub-test 31 Expect: ./../docs1/p2/C2.html

Sub-test 32 Actual: {@docRoot}/p2/package-summary.html#package_description
Sub-test 32 Expect: ./p2/package-summary.html#package_description

Sub-test 33 Actual: {@docRoot}/../docs1/p2/package-summary.html#package_description
Sub-test 33 Expect: ./../docs1/p2/package-summary.html#package_description

Bonus links, not part of automated test (bug 4662945):
Actual: package description {@docRoot}p1/packagesummary#package_description
Actual: package description {@docRoot}/p1/package-summary.html#package_description
Expect: ./p1/package-summary.html#package description