summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/XMLHttpRequest/responsexml-document-properties.htm
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2021-02-04 19:41:06 +0000
committerMoonchild <moonchild@palemoon.org>2021-02-04 19:41:06 +0000
commit914368530ba622ff0117cd34bec058fb0d862155 (patch)
tree6c29459914d1b01ed27fad039d0b982d1dbc32c3 /testing/web-platform/tests/XMLHttpRequest/responsexml-document-properties.htm
parentc5ad76a2875ca5c06c5bbff7b2f2e3ff7b3599c3 (diff)
downloadUXP-914368530ba622ff0117cd34bec058fb0d862155.tar
UXP-914368530ba622ff0117cd34bec058fb0d862155.tar.gz
UXP-914368530ba622ff0117cd34bec058fb0d862155.tar.lz
UXP-914368530ba622ff0117cd34bec058fb0d862155.tar.xz
UXP-914368530ba622ff0117cd34bec058fb0d862155.zip
Issue #439 - Remove web-platform tests from the tree.
This removes a total of 23,936 files we would never use nor have the capacity to properly maintain or keep up-to-date.
Diffstat (limited to 'testing/web-platform/tests/XMLHttpRequest/responsexml-document-properties.htm')
-rw-r--r--testing/web-platform/tests/XMLHttpRequest/responsexml-document-properties.htm74
1 files changed, 0 insertions, 74 deletions
diff --git a/testing/web-platform/tests/XMLHttpRequest/responsexml-document-properties.htm b/testing/web-platform/tests/XMLHttpRequest/responsexml-document-properties.htm
deleted file mode 100644
index 18e3fb2f2..000000000
--- a/testing/web-platform/tests/XMLHttpRequest/responsexml-document-properties.htm
+++ /dev/null
@@ -1,74 +0,0 @@
-<!doctype html>
-<html>
- <head>
- <title>XMLHttpRequest: responseXML document properties</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <link rel="help" href="https://xhr.spec.whatwg.org/#the-responsexml-attribute" data-tested-assertations="following::ol[1]/li[4]" />
- <link rel="help" href="https://xhr.spec.whatwg.org/#document-response-entity-body" data-tested-assertations="following::ol[1]/li[6] following::ol[1]/li[7] following::ol[1]/li[8] following::ol[1]/li[10]" />
- </head>
- <body>
- <div id="log"></div>
- <script>
- var timePreXHR = Math.floor(new Date().getTime(new Date().getTime() - 3000) / 1000); // three seconds ago, in case there's clock drift
- var client = new XMLHttpRequest()
- client.open("GET", "resources/well-formed.xml", false)
- client.send(null)
- var expected = {
- domain:undefined,
- URL:location.href.replace(/[^/]*$/, 'resources/well-formed.xml'),
- documentURI:location.href.replace(/[^/]*$/, 'resources/well-formed.xml'),
- referrer:'',
- title:'',
- contentType:'application/xml',
- readyState:'complete',
- location:null,
- defaultView:null,
- body:undefined,
- images: undefined,
- doctype:null,
- forms:undefined,
- all:undefined,
- links: undefined,
- cookie:''
- }
-
- for (var name in expected) {
- runTest(name, expected[name])
- }
-
- function runTest(name, value){
- test(function(){
- assert_equals(client.responseXML[name], value)
- }, name)
- }
-
- test(function() {
- var lastModified = Math.floor(new Date(client.responseXML.lastModified).getTime() / 1000);
- var now = Math.floor(new Date().getTime(new Date().getTime() + 3000) / 1000); // three seconds from now, in case there's clock drift
- assert_greater_than_equal(lastModified, timePreXHR);
- assert_less_than_equal(lastModified, now);
- }, 'lastModified set to time of response if no HTTP header provided')
-
- test(function() {
- var client2 = new XMLHttpRequest()
- client2.open("GET", "resources/last-modified.py", false)
- client2.send(null)
- assert_equals((new Date(client2.getResponseHeader('Last-Modified'))).getTime(), (new Date(client2.responseXML.lastModified)).getTime())
- }, 'lastModified set to related HTTP header if provided')
-
- test(function() {
- client.responseXML.cookie = "thisshouldbeignored"
- assert_equals(client.responseXML.cookie, "")
- }, 'cookie (after setting it)')
-
- test(function() {
- assert_equals(typeof(client.responseXML.styleSheets), "object")
- }, 'styleSheets')
-
- test(function() {
- assert_equals(typeof(client.responseXML.implementation), "object")
- }, 'implementation')
- </script>
- </body>
-</html>