2008/link-testsuite/harness/testcases/base base.collection,NONE,1.1 base1.test,NONE,1.1 base2.test,NONE,1.1 base3.test,NONE,1.1 base4.test,NONE,1.1

Update of /sources/public/2008/link-testsuite/harness/testcases/base
In directory hutz:/tmp/cvs-serv26895

Added Files:
	base.collection base1.test base2.test base3.test base4.test 
Log Message:
test cases for base href and content-location

--- NEW FILE: base1.test ---
<?xml version="1.0" encoding="UTF-8"?>
<test>
    <title>test base URI with BASE href elt</title>
    <description>relative link goes 404 if BASE href element not parsed
	EXPECTED: relative link goes 200 if OK - link checker finds no error
    </description>
    <doc href="http://qa-dev.w3.org/link-testsuite/base-1.html" />
    <options />
    <expect>
    </expect>
</test>

--- NEW FILE: base2.test ---
<?xml version="1.0" encoding="UTF-8"?>
<test>
    <title>test base URI with HTTP Content-Location</title>
    <description>relative link goes 404 if HTTP Content-Location not parsed
    	EXPECTED: relative link goes 200 if OK - link checker finds no error</description>
    <doc href="http://qa-dev.w3.org/link-testsuite/base-1.html" />
    <options />
    <expect>
    </expect>
</test>

--- NEW FILE: base3.test ---
<?xml version="1.0" encoding="UTF-8"?>
<test>
    <title>test base URI with BASE href elt and Content-Location</title>
    <description>with both BASE href elt and HTTP Content-Location
    	href takes precedence http://www.w3.org/TR/html401/struct/links.html#h-12.4.1
    	relative link goes 404 if neither BASE nor Content-Location respected
    	relative link goes 403 if HTTP Content-Location respected instead of BASE
    	EXPECTED: relative link goes 200 if OK - link checker finds no error</description>
    <doc href="http://qa-dev.w3.org/link-testsuite/base-3.php" />
    <options />
    <expect>
    </expect>
</test>

--- NEW FILE: base4.test ---
<?xml version="1.0" encoding="UTF-8"?>
<test>
    <title>test base URI with relative BASE href (forbidden)</title>
    <description>
        <![CDATA[This document has a bogus BASE href value. Per the spec:
            <q cite="http://www.w3.org/TR/html401/struct/links.html#h-12.4">This attribute specifies an <strong>absolute URI</strong> that acts as the base URI for resolving relative URIs.</q>]]>
    </description>
    <doc href="http://qa-dev.w3.org/link-testsuite/base-4.html" />
    <options />
    <expect>
        <report code="400" href="./trap/http.php?code=403" />
    </expect>
</test>

--- NEW FILE: base.collection ---
<?xml version="1.0" encoding="UTF-8"?>
<collection>
    <collectiontitle>Base Tests</collectiontitle>
    <description>Does the checker respect base href and content-location info? Does it report broken links based on those?</description>
    <testcase src="base1.test" />
    <testcase src="base2.test" />
    <testcase src="base3.test" />
    <testcase src="base4.test" />
</collection>

Received on Monday, 28 January 2008 02:13:19 UTC