mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Update web-platform-tests to revision cf8340b5fae7b820788ffc31f8cc6b6b04978002
This commit is contained in:
parent
a547ae6826
commit
538f8f0ef9
41 changed files with 270 additions and 295 deletions
|
@ -3527,16 +3527,6 @@
|
|||
],
|
||||
"url": "/2dcontext/the-canvas-state/canvas_state_restore_001.htm"
|
||||
},
|
||||
{
|
||||
"path": "2dcontext/transformations/canvas_transformations_reset_001.htm",
|
||||
"references": [
|
||||
[
|
||||
"/2dcontext/transformations/canvas_transformations_reset_001-ref.htm",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/2dcontext/transformations/canvas_transformations_reset_001.htm"
|
||||
},
|
||||
{
|
||||
"path": "2dcontext/transformations/canvas_transformations_reset_001.html",
|
||||
"references": [
|
||||
|
@ -4227,6 +4217,46 @@
|
|||
],
|
||||
"url": "/html/rendering/non-replaced-elements/flow-content-0/figure.html"
|
||||
},
|
||||
{
|
||||
"path": "html/rendering/non-replaced-elements/phrasing-content-0/font-element-text-decoration-color/001-a.html",
|
||||
"references": [
|
||||
[
|
||||
"/html/rendering/non-replaced-elements/phrasing-content-0/font-element-text-decoration-color/001-ref.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/html/rendering/non-replaced-elements/phrasing-content-0/font-element-text-decoration-color/001-a.html"
|
||||
},
|
||||
{
|
||||
"path": "html/rendering/non-replaced-elements/phrasing-content-0/font-element-text-decoration-color/001-q.html",
|
||||
"references": [
|
||||
[
|
||||
"/html/rendering/non-replaced-elements/phrasing-content-0/font-element-text-decoration-color/001-ref.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/html/rendering/non-replaced-elements/phrasing-content-0/font-element-text-decoration-color/001-q.html"
|
||||
},
|
||||
{
|
||||
"path": "html/rendering/non-replaced-elements/phrasing-content-0/font-element-text-decoration-color/001-s.html",
|
||||
"references": [
|
||||
[
|
||||
"/html/rendering/non-replaced-elements/phrasing-content-0/font-element-text-decoration-color/001-ref.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/html/rendering/non-replaced-elements/phrasing-content-0/font-element-text-decoration-color/001-s.html"
|
||||
},
|
||||
{
|
||||
"path": "html/rendering/non-replaced-elements/phrasing-content-0/font-element-text-decoration-color/001-x.xhtml",
|
||||
"references": [
|
||||
[
|
||||
"/html/rendering/non-replaced-elements/phrasing-content-0/font-element-text-decoration-color/001-ref.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/html/rendering/non-replaced-elements/phrasing-content-0/font-element-text-decoration-color/001-x.xhtml"
|
||||
},
|
||||
{
|
||||
"path": "html/rendering/non-replaced-elements/tables/table-border-1.html",
|
||||
"references": [
|
||||
|
@ -4837,96 +4867,6 @@
|
|||
],
|
||||
"url": "/html/semantics/text-level-semantics/the-wbr-element/wbr-element.html"
|
||||
},
|
||||
{
|
||||
"path": "quirks-mode/font-element-text-decoration-color/001-a.html",
|
||||
"references": [
|
||||
[
|
||||
"/quirks-mode/font-element-text-decoration-color/001-ref.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/quirks-mode/font-element-text-decoration-color/001-a.html"
|
||||
},
|
||||
{
|
||||
"path": "quirks-mode/font-element-text-decoration-color/001-q.html",
|
||||
"references": [
|
||||
[
|
||||
"/quirks-mode/font-element-text-decoration-color/001-ref.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/quirks-mode/font-element-text-decoration-color/001-q.html"
|
||||
},
|
||||
{
|
||||
"path": "quirks-mode/font-element-text-decoration-color/001-s.html",
|
||||
"references": [
|
||||
[
|
||||
"/quirks-mode/font-element-text-decoration-color/001-ref.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/quirks-mode/font-element-text-decoration-color/001-s.html"
|
||||
},
|
||||
{
|
||||
"path": "quirks-mode/font-element-text-decoration-color/001-x.xhtml",
|
||||
"references": [
|
||||
[
|
||||
"/quirks-mode/font-element-text-decoration-color/001-ref.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/quirks-mode/font-element-text-decoration-color/001-x.xhtml"
|
||||
},
|
||||
{
|
||||
"path": "shadow-dom/shadow-trees/hosting-multiple-shadow-trees-002.html",
|
||||
"references": [
|
||||
[
|
||||
"/shadow-dom/shadow-trees/hosting-multiple-shadow-trees-002-ref.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/shadow-dom/shadow-trees/hosting-multiple-shadow-trees-002.html"
|
||||
},
|
||||
{
|
||||
"path": "shadow-dom/shadow-trees/hosting-multiple-shadow-trees-003.html",
|
||||
"references": [
|
||||
[
|
||||
"/shadow-dom/shadow-trees/hosting-multiple-shadow-trees-003-ref.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/shadow-dom/shadow-trees/hosting-multiple-shadow-trees-003.html"
|
||||
},
|
||||
{
|
||||
"path": "shadow-dom/shadow-trees/hosting-multiple-shadow-trees-004.html",
|
||||
"references": [
|
||||
[
|
||||
"/shadow-dom/shadow-trees/hosting-multiple-shadow-trees-004-ref.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/shadow-dom/shadow-trees/hosting-multiple-shadow-trees-004.html"
|
||||
},
|
||||
{
|
||||
"path": "shadow-dom/shadow-trees/hosting-multiple-shadow-trees-005.html",
|
||||
"references": [
|
||||
[
|
||||
"/shadow-dom/shadow-trees/hosting-multiple-shadow-trees-005-ref.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/shadow-dom/shadow-trees/hosting-multiple-shadow-trees-005.html"
|
||||
},
|
||||
{
|
||||
"path": "shadow-dom/shadow-trees/hosting-multiple-shadow-trees-006.html",
|
||||
"references": [
|
||||
[
|
||||
"/shadow-dom/shadow-trees/hosting-multiple-shadow-trees-006-ref.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/shadow-dom/shadow-trees/hosting-multiple-shadow-trees-006.html"
|
||||
},
|
||||
{
|
||||
"path": "shadow-dom/shadow-trees/lower-boundary-encapsulation/distribution-001.html",
|
||||
"references": [
|
||||
|
@ -13183,6 +13123,10 @@
|
|||
"path": "dom/nodes/CharacterData-substringData.html",
|
||||
"url": "/dom/nodes/CharacterData-substringData.html"
|
||||
},
|
||||
{
|
||||
"path": "dom/nodes/CharacterData-surrogates.html",
|
||||
"url": "/dom/nodes/CharacterData-surrogates.html"
|
||||
},
|
||||
{
|
||||
"path": "dom/nodes/ChildNode-after.html",
|
||||
"url": "/dom/nodes/ChildNode-after.html"
|
||||
|
@ -14756,8 +14700,8 @@
|
|||
"url": "/html/browsers/windows/nested-browsing-contexts/frameElement.sub.html"
|
||||
},
|
||||
{
|
||||
"path": "html/dom/documents/dom-tree-accessors/Document.currentScript.html",
|
||||
"url": "/html/dom/documents/dom-tree-accessors/Document.currentScript.html"
|
||||
"path": "html/dom/documents/dom-tree-accessors/Document.currentScript.sub.html",
|
||||
"url": "/html/dom/documents/dom-tree-accessors/Document.currentScript.sub.html"
|
||||
},
|
||||
{
|
||||
"path": "html/dom/documents/dom-tree-accessors/Document.getElementsByClassName-null-undef.html",
|
||||
|
@ -18067,6 +18011,10 @@
|
|||
"path": "infrastructure/failing-test.html",
|
||||
"url": "/infrastructure/failing-test.html"
|
||||
},
|
||||
{
|
||||
"path": "js/behaviours/SetPrototypeOf-window.html",
|
||||
"url": "/js/behaviours/SetPrototypeOf-window.html"
|
||||
},
|
||||
{
|
||||
"path": "js/builtins/Array.DefineOwnProperty.html",
|
||||
"url": "/js/builtins/Array.DefineOwnProperty.html"
|
||||
|
@ -24983,10 +24931,6 @@
|
|||
"path": "selection/Document-open.html",
|
||||
"url": "/selection/Document-open.html"
|
||||
},
|
||||
{
|
||||
"path": "selection/addRange.html",
|
||||
"url": "/selection/addRange.html"
|
||||
},
|
||||
{
|
||||
"path": "selection/collapse.html",
|
||||
"url": "/selection/collapse.html"
|
||||
|
@ -28839,6 +28783,11 @@
|
|||
"timeout": "long",
|
||||
"url": "/quirks-mode/hashless-hex-color.html"
|
||||
},
|
||||
{
|
||||
"path": "selection/addRange.html",
|
||||
"timeout": "long",
|
||||
"url": "/selection/addRange.html"
|
||||
},
|
||||
{
|
||||
"path": "service-workers/cache-storage/common.https.html",
|
||||
"timeout": "long",
|
||||
|
@ -29105,24 +29054,8 @@
|
|||
]
|
||||
},
|
||||
"local_changes": {
|
||||
"deleted": [
|
||||
"shadow-dom/shadow-trees/hosting-multiple-shadow-trees-002.html",
|
||||
"shadow-dom/shadow-trees/hosting-multiple-shadow-trees-006.html",
|
||||
"shadow-dom/shadow-trees/hosting-multiple-shadow-trees-004.html",
|
||||
"shadow-dom/shadow-trees/hosting-multiple-shadow-trees-003.html",
|
||||
"2dcontext/transformations/canvas_transformations_reset_001.htm",
|
||||
"shadow-dom/shadow-trees/hosting-multiple-shadow-trees-005.html"
|
||||
],
|
||||
"items": {
|
||||
"testharness": {
|
||||
"dom/nodes/CharacterData-surrogates.html": [
|
||||
{
|
||||
"path": "dom/nodes/CharacterData-surrogates.html",
|
||||
"url": "/dom/nodes/CharacterData-surrogates.html"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"deleted": [],
|
||||
"items": {},
|
||||
"reftest_nodes": {}
|
||||
},
|
||||
"reftest_nodes": {
|
||||
|
@ -29522,18 +29455,6 @@
|
|||
"url": "/2dcontext/the-canvas-state/canvas_state_restore_001.htm"
|
||||
}
|
||||
],
|
||||
"2dcontext/transformations/canvas_transformations_reset_001.htm": [
|
||||
{
|
||||
"path": "2dcontext/transformations/canvas_transformations_reset_001.htm",
|
||||
"references": [
|
||||
[
|
||||
"/2dcontext/transformations/canvas_transformations_reset_001-ref.htm",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/2dcontext/transformations/canvas_transformations_reset_001.htm"
|
||||
}
|
||||
],
|
||||
"2dcontext/transformations/canvas_transformations_reset_001.html": [
|
||||
{
|
||||
"path": "2dcontext/transformations/canvas_transformations_reset_001.html",
|
||||
|
@ -30878,6 +30799,54 @@
|
|||
"url": "/html/rendering/non-replaced-elements/flow-content-0/figure.html"
|
||||
}
|
||||
],
|
||||
"html/rendering/non-replaced-elements/phrasing-content-0/font-element-text-decoration-color/001-a.html": [
|
||||
{
|
||||
"path": "html/rendering/non-replaced-elements/phrasing-content-0/font-element-text-decoration-color/001-a.html",
|
||||
"references": [
|
||||
[
|
||||
"/html/rendering/non-replaced-elements/phrasing-content-0/font-element-text-decoration-color/001-ref.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/html/rendering/non-replaced-elements/phrasing-content-0/font-element-text-decoration-color/001-a.html"
|
||||
}
|
||||
],
|
||||
"html/rendering/non-replaced-elements/phrasing-content-0/font-element-text-decoration-color/001-q.html": [
|
||||
{
|
||||
"path": "html/rendering/non-replaced-elements/phrasing-content-0/font-element-text-decoration-color/001-q.html",
|
||||
"references": [
|
||||
[
|
||||
"/html/rendering/non-replaced-elements/phrasing-content-0/font-element-text-decoration-color/001-ref.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/html/rendering/non-replaced-elements/phrasing-content-0/font-element-text-decoration-color/001-q.html"
|
||||
}
|
||||
],
|
||||
"html/rendering/non-replaced-elements/phrasing-content-0/font-element-text-decoration-color/001-s.html": [
|
||||
{
|
||||
"path": "html/rendering/non-replaced-elements/phrasing-content-0/font-element-text-decoration-color/001-s.html",
|
||||
"references": [
|
||||
[
|
||||
"/html/rendering/non-replaced-elements/phrasing-content-0/font-element-text-decoration-color/001-ref.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/html/rendering/non-replaced-elements/phrasing-content-0/font-element-text-decoration-color/001-s.html"
|
||||
}
|
||||
],
|
||||
"html/rendering/non-replaced-elements/phrasing-content-0/font-element-text-decoration-color/001-x.xhtml": [
|
||||
{
|
||||
"path": "html/rendering/non-replaced-elements/phrasing-content-0/font-element-text-decoration-color/001-x.xhtml",
|
||||
"references": [
|
||||
[
|
||||
"/html/rendering/non-replaced-elements/phrasing-content-0/font-element-text-decoration-color/001-ref.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/html/rendering/non-replaced-elements/phrasing-content-0/font-element-text-decoration-color/001-x.xhtml"
|
||||
}
|
||||
],
|
||||
"html/rendering/non-replaced-elements/tables/table-border-1.html": [
|
||||
{
|
||||
"path": "html/rendering/non-replaced-elements/tables/table-border-1.html",
|
||||
|
@ -31730,114 +31699,6 @@
|
|||
"url": "/html/semantics/text-level-semantics/the-wbr-element/wbr-element.html"
|
||||
}
|
||||
],
|
||||
"quirks-mode/font-element-text-decoration-color/001-a.html": [
|
||||
{
|
||||
"path": "quirks-mode/font-element-text-decoration-color/001-a.html",
|
||||
"references": [
|
||||
[
|
||||
"/quirks-mode/font-element-text-decoration-color/001-ref.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/quirks-mode/font-element-text-decoration-color/001-a.html"
|
||||
}
|
||||
],
|
||||
"quirks-mode/font-element-text-decoration-color/001-q.html": [
|
||||
{
|
||||
"path": "quirks-mode/font-element-text-decoration-color/001-q.html",
|
||||
"references": [
|
||||
[
|
||||
"/quirks-mode/font-element-text-decoration-color/001-ref.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/quirks-mode/font-element-text-decoration-color/001-q.html"
|
||||
}
|
||||
],
|
||||
"quirks-mode/font-element-text-decoration-color/001-s.html": [
|
||||
{
|
||||
"path": "quirks-mode/font-element-text-decoration-color/001-s.html",
|
||||
"references": [
|
||||
[
|
||||
"/quirks-mode/font-element-text-decoration-color/001-ref.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/quirks-mode/font-element-text-decoration-color/001-s.html"
|
||||
}
|
||||
],
|
||||
"quirks-mode/font-element-text-decoration-color/001-x.xhtml": [
|
||||
{
|
||||
"path": "quirks-mode/font-element-text-decoration-color/001-x.xhtml",
|
||||
"references": [
|
||||
[
|
||||
"/quirks-mode/font-element-text-decoration-color/001-ref.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/quirks-mode/font-element-text-decoration-color/001-x.xhtml"
|
||||
}
|
||||
],
|
||||
"shadow-dom/shadow-trees/hosting-multiple-shadow-trees-002.html": [
|
||||
{
|
||||
"path": "shadow-dom/shadow-trees/hosting-multiple-shadow-trees-002.html",
|
||||
"references": [
|
||||
[
|
||||
"/shadow-dom/shadow-trees/hosting-multiple-shadow-trees-002-ref.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/shadow-dom/shadow-trees/hosting-multiple-shadow-trees-002.html"
|
||||
}
|
||||
],
|
||||
"shadow-dom/shadow-trees/hosting-multiple-shadow-trees-003.html": [
|
||||
{
|
||||
"path": "shadow-dom/shadow-trees/hosting-multiple-shadow-trees-003.html",
|
||||
"references": [
|
||||
[
|
||||
"/shadow-dom/shadow-trees/hosting-multiple-shadow-trees-003-ref.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/shadow-dom/shadow-trees/hosting-multiple-shadow-trees-003.html"
|
||||
}
|
||||
],
|
||||
"shadow-dom/shadow-trees/hosting-multiple-shadow-trees-004.html": [
|
||||
{
|
||||
"path": "shadow-dom/shadow-trees/hosting-multiple-shadow-trees-004.html",
|
||||
"references": [
|
||||
[
|
||||
"/shadow-dom/shadow-trees/hosting-multiple-shadow-trees-004-ref.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/shadow-dom/shadow-trees/hosting-multiple-shadow-trees-004.html"
|
||||
}
|
||||
],
|
||||
"shadow-dom/shadow-trees/hosting-multiple-shadow-trees-005.html": [
|
||||
{
|
||||
"path": "shadow-dom/shadow-trees/hosting-multiple-shadow-trees-005.html",
|
||||
"references": [
|
||||
[
|
||||
"/shadow-dom/shadow-trees/hosting-multiple-shadow-trees-005-ref.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/shadow-dom/shadow-trees/hosting-multiple-shadow-trees-005.html"
|
||||
}
|
||||
],
|
||||
"shadow-dom/shadow-trees/hosting-multiple-shadow-trees-006.html": [
|
||||
{
|
||||
"path": "shadow-dom/shadow-trees/hosting-multiple-shadow-trees-006.html",
|
||||
"references": [
|
||||
[
|
||||
"/shadow-dom/shadow-trees/hosting-multiple-shadow-trees-006-ref.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/shadow-dom/shadow-trees/hosting-multiple-shadow-trees-006.html"
|
||||
}
|
||||
],
|
||||
"shadow-dom/shadow-trees/lower-boundary-encapsulation/distribution-001.html": [
|
||||
{
|
||||
"path": "shadow-dom/shadow-trees/lower-boundary-encapsulation/distribution-001.html",
|
||||
|
@ -34599,7 +34460,7 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
"rev": "acd60f9e55532f03fc905e61591b7fd7db2f08d1",
|
||||
"rev": "cf8340b5fae7b820788ffc31f8cc6b6b04978002",
|
||||
"url_base": "/",
|
||||
"version": 2
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
[preserve-ua-header-on-redirect.htm]
|
||||
type: testharness
|
||||
[XMLHttpRequest: User-Agent header is preserved on redirect 1]
|
||||
expected: FAIL
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
[setrequestheader-header-allowed.htm]
|
||||
type: testharness
|
||||
[XMLHttpRequest: setRequestHeader() - headers that are allowed (User-Agent)]
|
||||
expected: FAIL
|
||||
|
|
@ -377,3 +377,4 @@
|
|||
|
||||
[Window replaceable attribute: devicePixelRatio]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -1,9 +0,0 @@
|
|||
[Document.currentScript.html]
|
||||
type: testharness
|
||||
expected: TIMEOUT
|
||||
[Script script-window-error]
|
||||
expected: FAIL
|
||||
|
||||
[Script script-svg]
|
||||
expected: NOTRUN
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
[Document.currentScript.sub.html]
|
||||
type: testharness
|
||||
expected: TIMEOUT
|
||||
[Script script-window-error]
|
||||
expected: FAIL
|
||||
|
||||
[Script script-svg]
|
||||
expected: NOTRUN
|
||||
|
||||
[Script iframe-src]
|
||||
expected: NOTRUN
|
||||
|
||||
[Script cross-origin]
|
||||
expected: NOTRUN
|
||||
|
||||
[Script document-write]
|
||||
expected: NOTRUN
|
||||
|
|
@ -1,8 +1,5 @@
|
|||
[document.forms.html]
|
||||
type: testharness
|
||||
[document.forms]
|
||||
expected: FAIL
|
||||
|
||||
[document.forms iteration]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
[001-a.html]
|
||||
type: reftest
|
||||
expected: FAIL
|
|
@ -0,0 +1,3 @@
|
|||
[001-q.html]
|
||||
type: reftest
|
||||
expected: FAIL
|
|
@ -0,0 +1,3 @@
|
|||
[001-s.html]
|
||||
type: reftest
|
||||
expected: FAIL
|
|
@ -0,0 +1,3 @@
|
|||
[001-x.xhtml]
|
||||
type: reftest
|
||||
expected: FAIL
|
|
@ -1 +1 @@
|
|||
a1cd27e6a3b961129fd4710513cc29e4f7c9cc67
|
||||
dbf549ea32d23cf96b7f49e3333c068aaf050bc3
|
|
@ -22,6 +22,22 @@
|
|||
client.open("POST", "resources/redirect.py?location="+encodeURIComponent("inspect-headers.py?filter_name=user-agent"))
|
||||
client.send(null)
|
||||
})
|
||||
|
||||
var test2 = async_test()
|
||||
test2.step(function() {
|
||||
var client = new XMLHttpRequest()
|
||||
client.onreadystatechange = function() {
|
||||
test2.step(function() {
|
||||
if(client.readyState == 4) {
|
||||
assert_equals(client.responseText, 'user-agent: TEST\n')
|
||||
test2.done()
|
||||
}
|
||||
})
|
||||
}
|
||||
client.open("POST", "resources/redirect.py?location="+encodeURIComponent("inspect-headers.py?filter_name=user-agent"))
|
||||
client.setRequestHeader("User-Agent", "TEST")
|
||||
client.send(null)
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
}
|
||||
request("Authorization")
|
||||
request("Pragma")
|
||||
request("User-Agent")
|
||||
request("Content-Transfer-Encoding")
|
||||
request("Content-Type")
|
||||
request("Overwrite")
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<title>XMLHttpRequest: setRequestHeader() - headers that are forbidden</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<link rel="help" href="https://xhr.spec.whatwg.org/#the-setrequestheader()-method" data-tested-assertations="/following::ol/li[5]" />
|
||||
<link rel="help" href="https://xhr.spec.whatwg.org/#the-setrequestheader()-method" data-tested-assertations="/following::ol/li[5]" />
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
@ -29,7 +29,6 @@
|
|||
client.setRequestHeader("Trailer", "TEST")
|
||||
client.setRequestHeader("Transfer-Encoding", "TEST")
|
||||
client.setRequestHeader("Upgrade", "TEST")
|
||||
client.setRequestHeader("User-Agent", "TEST")
|
||||
client.setRequestHeader("Via", "TEST")
|
||||
client.setRequestHeader("Proxy-", "TEST")
|
||||
client.setRequestHeader("Proxy-Authorization", "TEST")
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
</script>
|
||||
<!-- enforcing policy:
|
||||
script-src 'self' 'sha256-IFmozo9WnnsMXVl_Ka8XzJ3Nd8yzS2zA2ME0mwtd-Ck=' 'sha256-jSpTmJKcrnHttKdYM_wCCDJoQY5tdSxNf7zd2prwFfI=' 'sha256-qbgA2XjB2EZKjn_UmK7v_K77t-fvfxA89QT_K9qPNyE=' 'sha256-K-7X5Ip3msvRvyQzf6fkrWZziuhaUIee1aLnlP5nX10='; connect-src 'self'; connect-src 'self';
|
||||
script-src 'self' 'sha256-IFmozo9WnnsMXVl/Ka8XzJ3Nd8yzS2zA2ME0mwtd+Ck=' 'sha256-jSpTmJKcrnHttKdYM/wCCDJoQY5tdSxNf7zd2prwFfI=' 'sha256-qbgA2XjB2EZKjn/UmK7v/K77t+fvfxA89QT/K9qPNyE=' 'sha256-K+7X5Ip3msvRvyQzf6fkrWZziuhaUIee1aLnlP5nX10='; connect-src 'self';
|
||||
-->
|
||||
<script>
|
||||
alert_assert('PASS (1/4)');
|
||||
|
|
|
@ -3,4 +3,4 @@ Cache-Control: no-store, no-cache, must-revalidate
|
|||
Cache-Control: post-check=0, pre-check=0, false
|
||||
Pragma: no-cache
|
||||
Set-Cookie: scripthash-allowed={{$id:uuid()}}; Path=/content-security-policy/blink-contrib-2
|
||||
Content-Security-Policy: script-src 'self' 'sha256-IFmozo9WnnsMXVl_Ka8XzJ3Nd8yzS2zA2ME0mwtd-Ck=' 'sha256-jSpTmJKcrnHttKdYM_wCCDJoQY5tdSxNf7zd2prwFfI=' 'sha256-qbgA2XjB2EZKjn_UmK7v_K77t-fvfxA89QT_K9qPNyE=' 'sha256-K-7X5Ip3msvRvyQzf6fkrWZziuhaUIee1aLnlP5nX10='; connect-src 'self'; report-uri /content-security-policy/support/report.py?op=put&reportID={{$id}}
|
||||
Content-Security-Policy: script-src 'self' 'sha256-IFmozo9WnnsMXVl/Ka8XzJ3Nd8yzS2zA2ME0mwtd+Ck=' 'sha256-jSpTmJKcrnHttKdYM/wCCDJoQY5tdSxNf7zd2prwFfI=' 'sha256-qbgA2XjB2EZKjn/UmK7v/K77t+fvfxA89QT/K9qPNyE=' 'sha256-K+7X5Ip3msvRvyQzf6fkrWZziuhaUIee1aLnlP5nX10='; connect-src 'self'; report-uri /content-security-policy/support/report.py?op=put&reportID={{$id}}
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
</script>
|
||||
<!-- enforcing policy:
|
||||
script-src 'self' 'unsafe-inline' 'sha256-xy4iRAvdlFCq-M5-4yu4B7dy0Kc2FfljmZO4Jkj3Yhw='; connect-src 'self';
|
||||
script-src 'self' 'unsafe-inline' 'sha256-xy4iRAvdlFCq+M5+4yu4B7dy0Kc2FfljmZO4Jkj3Yhw='; connect-src 'self';
|
||||
-->
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<!-- The following two scripts contain two separate code points (U+00C5
|
||||
|
|
|
@ -3,4 +3,4 @@ Cache-Control: no-store, no-cache, must-revalidate
|
|||
Cache-Control: post-check=0, pre-check=0, false
|
||||
Pragma: no-cache
|
||||
Set-Cookie: scripthash-unicode-normalization={{$id:uuid()}}; Path=/content-security-policy/blink-contrib-2
|
||||
Content-Security-Policy: script-src 'self' 'sha256-xy4iRAvdlFCq-M5-4yu4B7dy0Kc2FfljmZO4Jkj3Yhw='; connect-src 'self'; report-uri /content-security-policy/support/report.py?op=put&reportID={{$id}}
|
||||
Content-Security-Policy: script-src 'self' 'sha256-xy4iRAvdlFCq+M5+4yu4B7dy0Kc2FfljmZO4Jkj3Yhw='; connect-src 'self'; report-uri /content-security-policy/support/report.py?op=put&reportID={{$id}}
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
<iframe src="/common/redirect.py?location=http://{{host}}:{{ports[http][0]}}/security/contentSecurityPolicy/resources/alert-fail.html"></iframe>
|
|
@ -1,6 +0,0 @@
|
|||
Expires: Mon, 26 Jul 1997 05:00:00 GMT
|
||||
Cache-Control: no-store, no-cache, must-revalidate
|
||||
Cache-Control: post-check=0, pre-check=0, false
|
||||
Pragma: no-cache
|
||||
Set-Cookie: frame-src-redirect-blocked={{$id:uuid()}}; Path=/content-security-policy/blink-contrib
|
||||
Content-Security-Policy: frame-src 127.0.0.1:8000; script-src 'self' 'unsafe-inline'; connect-src 'self'; report-uri /content-security-policy/support/report.py?op=put&reportID={{$id}}
|
|
@ -9,8 +9,8 @@
|
|||
<script src="../support/logTest.sub.js?logs=[]"></script>
|
||||
<script src='../support/alertAssert.sub.js?alerts=["Pass 1 of 2","Pass 2 of 2"]'></script>
|
||||
<!-- enforcing policy:
|
||||
script-src 'self' 'unsafe-inline' http://127.0.0.1:* 'unsafe-inline'; connect-src 'self';
|
||||
-->
|
||||
script-src 'self' 'unsafe-inline'; connect-src 'self';
|
||||
-->
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
|
|
@ -3,4 +3,4 @@ Cache-Control: no-store, no-cache, must-revalidate
|
|||
Cache-Control: post-check=0, pre-check=0, false
|
||||
Pragma: no-cache
|
||||
Set-Cookie: injected-inline-script-allowed={{$id:uuid()}}; Path=/content-security-policy/blink-contrib
|
||||
Content-Security-Policy: script-src 'self' 'unsafe-inline' http://127.0.0.1:* 'unsafe-inline'; connect-src 'self'; report-uri /content-security-policy/support/report.py?op=put&reportID={{$id}}
|
||||
Content-Security-Policy: script-src 'self' 'unsafe-inline'; connect-src 'self'; report-uri /content-security-policy/support/report.py?op=put&reportID={{$id}}
|
||||
|
|
|
@ -14,7 +14,7 @@ script-src 'self'; connect-src 'self';
|
|||
<body>
|
||||
<script src="resources/inject-script.js"></script>
|
||||
<div id="log"></div>
|
||||
<script async defer src="../support/checkReport.sub.js?reportExists=true&reportField=violated-directive&reportValue=script-src%20http://127.0.0.1:*"></script>
|
||||
<script async defer src="../support/checkReport.sub.js?reportExists=true&reportField=violated-directive&reportValue=script-src%20'self'"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
<script>
|
||||
// This script block will trigger a violation report.
|
||||
alert_assert('FAIL');
|
||||
|
||||
</script>
|
|
@ -1,6 +0,0 @@
|
|||
Expires: Mon, 26 Jul 1997 05:00:00 GMT
|
||||
Cache-Control: no-store, no-cache, must-revalidate
|
||||
Cache-Control: post-check=0, pre-check=0, false
|
||||
Pragma: no-cache
|
||||
Set-Cookie: report-uri-scheme-relative={{$id:uuid()}}; Path=/content-security-policy/blink-contrib
|
||||
Content-Security-Policy: script-src 'self' 'unsafe-inline' 'self'; report-uri //127.0.0.1:8080/security/contentSecurityPolicy/resources/save-report.php?test=report-uri-scheme-relative.html; connect-src 'self'; report-uri /content-security-policy/support/report.py?op=put&reportID={{$id}}
|
|
@ -1 +0,0 @@
|
|||
alert_assert('FAIL');
|
|
@ -1,5 +1,5 @@
|
|||
document.write("<script>alert_assert('Pass 1 of 2');</script>");
|
||||
|
||||
var s = document.createElement('script');
|
||||
s.innerText = "alert_assert('Pass 2 of 2');";
|
||||
s.textContent = "alert_assert('Pass 2 of 2');";
|
||||
document.body.appendChild(s);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
document.write("<style>#test1 { display: none; }</style>");
|
||||
|
||||
var s = document.createElement('style');
|
||||
s.innerText = "#test2 { display: none; }";
|
||||
s.textContent = "#test2 { display: none; }";
|
||||
document.body.appendChild(s);
|
||||
|
|
|
@ -8,6 +8,15 @@ somewhat describes the test, `###` is a zero-filled number used to
|
|||
keep the file names unique, and `ext` is typically either
|
||||
`html` or `xht`.
|
||||
|
||||
Test filenames must also be globally unique. There cannot be multiple
|
||||
tests with the same filename, even if they are in different parent
|
||||
directories. For example, having both
|
||||
`/css-values-3/foo-001.html` and `/css-variables-1/foo-001.html`
|
||||
would not be allowed. This restriction is in place because some tools
|
||||
that use the CSS tests dump all of the test files into a single
|
||||
directory, which would cause all but one of the tests with the same
|
||||
filename to be clobbered and accidentally skipped.
|
||||
|
||||
### test-topic
|
||||
|
||||
`test-topic` is a short identifier that describes the test. The
|
||||
|
|
|
@ -21,7 +21,11 @@ var data = {
|
|||
"xhr-test" : [],
|
||||
"script-svg" : [],
|
||||
"script-async" : [],
|
||||
"script-defer" : []
|
||||
"script-defer" : [],
|
||||
"script-async-false" : [],
|
||||
"iframe-src" : [],
|
||||
"cross-origin" : [null],
|
||||
"document-write" : []
|
||||
};
|
||||
|
||||
var expected = {};
|
||||
|
@ -189,3 +193,38 @@ function testLoadFail() {
|
|||
<script id='script-async' async src='data:text/plain,verify("script-async"),finish("script-async")'></script>
|
||||
|
||||
<script id='script-defer' defer src='data:text/plain,verify("script-defer"),finish("script-defer")'></script>
|
||||
|
||||
<!-- Test async = false dynamic script loading -->
|
||||
<script>
|
||||
var s = document.createElement("script");
|
||||
s.id = "script-async-false";
|
||||
s.src = "data:text/plain,verify('script-async-false');"
|
||||
s.onload = function() {
|
||||
finish('script-async-false');
|
||||
}
|
||||
s.async = false;
|
||||
document.body.appendChild(s);
|
||||
</script>
|
||||
|
||||
<!-- Verify in iframe javascript uri scheme -->
|
||||
<iframe src="javascript:parent.verify('iframe-src'),parent.finish('iframe-src')"
|
||||
style="visibility:hidden;display:none">
|
||||
</iframe>
|
||||
|
||||
<!-- Testing cross origin script -->
|
||||
<script>
|
||||
var s = document.createElement("script");
|
||||
s.id = "cross-origin";
|
||||
s.src = "http://{{domains[www1]}}:{{ports[http][1]}}/html/dom/documents/dom-tree-accessors/cross-domain.js"
|
||||
s.onload = function() {
|
||||
verify('cross-origin')
|
||||
finish('cross-origin');
|
||||
}
|
||||
document.body.appendChild(s);
|
||||
|
||||
</script>
|
||||
|
||||
<!-- Testing document.write -->
|
||||
<script>
|
||||
document.write('<script id="document-write">verify("document-write"); finish("document-write");</' + 'script>');
|
||||
</script>
|
|
@ -0,0 +1 @@
|
|||
//test script to check cross-domain script execution as in Document.currentScript.sub.html
|
|
@ -34,10 +34,15 @@ test(function() {
|
|||
assert_equals(document.forms.item(1).id, "form2");
|
||||
assert_equals(document.forms.namedItem("form1").id, "form1");
|
||||
assert_equals(document.forms.namedItem("form2").id, "form2");
|
||||
assert_equals(document.forms.item("form1").id, "form1");
|
||||
assert_equals(document.forms.item("form2").id, "form2");
|
||||
}, "document.forms")
|
||||
|
||||
test(function() {
|
||||
// The `item` method takes one *numeric* argument. Passing a string to `item`
|
||||
// results in that string getting converted to 0
|
||||
assert_equals(document.forms.item("form1").id, "form1");
|
||||
assert_equals(document.forms.item("form2").id, "form1");
|
||||
}, "document.forms.item with string arg")
|
||||
|
||||
test(function() {
|
||||
assert_equals(document.forms[""], undefined);
|
||||
assert_equals(document.forms.namedItem(""), null);
|
||||
|
|
|
@ -0,0 +1,33 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset=utf-8>
|
||||
<title>Test for [[SetPrototypeOf]] with Windows</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<div id="log"></div>
|
||||
<script>
|
||||
test(function() {
|
||||
assert_throws(new TypeError, function() {
|
||||
Object.setPrototypeOf(window, window);
|
||||
}, "Setting the prototype should throw");
|
||||
}, "Setting the prototype of a window to itself via setPrototypeOf");
|
||||
|
||||
test(function() {
|
||||
assert_throws(new TypeError, function() {
|
||||
window.__proto__ = window;
|
||||
}, "Setting the prototype should throw");
|
||||
}, "Setting the prototype of a window to itself via __proto__");
|
||||
|
||||
test(function() {
|
||||
assert_throws(new TypeError, function() {
|
||||
Object.setPrototypeOf(window, Object.create(window));
|
||||
}, "Setting the prototype should throw");
|
||||
}, "Setting the prototype of a window to something that has the window on " +
|
||||
"its proto chain via setPrototypeOf");
|
||||
|
||||
test(function() {
|
||||
assert_throws(new TypeError, function() {
|
||||
window.__proto__ = Object.create(window);
|
||||
}, "Setting the prototype should throw");
|
||||
}, "Setting the prototype of a window to something that has the window on " +
|
||||
"its proto chain via __proto__");
|
||||
</script>
|
|
@ -17,9 +17,9 @@ if (hasNotificationPermission()) {
|
|||
notifications = [],
|
||||
text1 = "This is the body: Room 101",
|
||||
text2 = "This is the body: Room 202"
|
||||
createPassFail("If two notifications appear: First one with the"
|
||||
+ " text \"" + text1 + "\", followed by one with the text \""
|
||||
+ text2 + "\"",
|
||||
createPassFail("If a notification with the text \""
|
||||
+ text2 + "\", replaces the notification with the text \""
|
||||
+ text1 + "\" in the same position",
|
||||
t, closeNotifications, notifications)
|
||||
notification1 = new Notification("New Email Received", {
|
||||
body: text1,
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<!doctype html>
|
||||
<title>Selection.addRange() tests</title>
|
||||
<div id=log></div>
|
||||
<meta name="timeout" content="long">
|
||||
<script src=/resources/testharness.js></script>
|
||||
<script src=/resources/testharnessreport.js></script>
|
||||
<script src=common.js></script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue