aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/wpt')
-rw-r--r--tests/wpt/meta/MANIFEST.json4
-rw-r--r--tests/wpt/meta/content-security-policy/nonce-hiding/nonces.html.ini24
-rw-r--r--tests/wpt/meta/content-security-policy/nonce-hiding/script-nonces-hidden-meta.sub.html.ini3
-rw-r--r--tests/wpt/meta/content-security-policy/nonce-hiding/script-nonces-hidden.html.ini27
-rw-r--r--tests/wpt/meta/content-security-policy/nonce-hiding/svgscript-nonces-hidden-meta.sub.html.ini6
-rw-r--r--tests/wpt/meta/content-security-policy/nonce-hiding/svgscript-nonces-hidden.html.ini18
-rw-r--r--tests/wpt/tests/css/cssom-view/table-client-props.html13
-rw-r--r--tests/wpt/tests/html/dom/reflection.js6
8 files changed, 21 insertions, 80 deletions
diff --git a/tests/wpt/meta/MANIFEST.json b/tests/wpt/meta/MANIFEST.json
index 73aa09203dc..c847669c619 100644
--- a/tests/wpt/meta/MANIFEST.json
+++ b/tests/wpt/meta/MANIFEST.json
@@ -474524,7 +474524,7 @@
[]
],
"reflection.js": [
- "b2c3b30aae36b390a60c05b39901826ba71e0b1a",
+ "eeecd450fca8139e924affb298e7feb1a1fb46fb",
[]
],
"render-blocking": {
@@ -618436,7 +618436,7 @@
]
],
"table-client-props.html": [
- "4af06d6bf71f0df75d3710ec0906445e943d340d",
+ "2895bebebbf1868ef60f947d230ecca96dd6e85a",
[
null,
{}
diff --git a/tests/wpt/meta/content-security-policy/nonce-hiding/nonces.html.ini b/tests/wpt/meta/content-security-policy/nonce-hiding/nonces.html.ini
deleted file mode 100644
index dbf3c1db85e..00000000000
--- a/tests/wpt/meta/content-security-policy/nonce-hiding/nonces.html.ini
+++ /dev/null
@@ -1,24 +0,0 @@
-[nonces.html]
- [Basic nonce tests for meh in HTML namespace]
- expected: FAIL
-
- [Basic nonce tests for div in HTML namespace]
- expected: FAIL
-
- [Basic nonce tests for script in HTML namespace]
- expected: FAIL
-
- [Basic nonce tests for meh in SVG namespace]
- expected: FAIL
-
- [Basic nonce tests for svg in SVG namespace]
- expected: FAIL
-
- [Basic nonce tests for script in SVG namespace]
- expected: FAIL
-
- [Basic nonce tests for style in HTML namespace]
- expected: FAIL
-
- [Basic nonce tests for link in HTML namespace]
- expected: FAIL
diff --git a/tests/wpt/meta/content-security-policy/nonce-hiding/script-nonces-hidden-meta.sub.html.ini b/tests/wpt/meta/content-security-policy/nonce-hiding/script-nonces-hidden-meta.sub.html.ini
index 7268cf08bda..94d7bf64166 100644
--- a/tests/wpt/meta/content-security-policy/nonce-hiding/script-nonces-hidden-meta.sub.html.ini
+++ b/tests/wpt/meta/content-security-policy/nonce-hiding/script-nonces-hidden-meta.sub.html.ini
@@ -1,6 +1,3 @@
[script-nonces-hidden-meta.sub.html]
- [Writing 'nonce' IDL attribute.]
- expected: FAIL
-
[createElement.nonce.]
expected: FAIL
diff --git a/tests/wpt/meta/content-security-policy/nonce-hiding/script-nonces-hidden.html.ini b/tests/wpt/meta/content-security-policy/nonce-hiding/script-nonces-hidden.html.ini
index 8b687e4ecfb..e8896cde9c4 100644
--- a/tests/wpt/meta/content-security-policy/nonce-hiding/script-nonces-hidden.html.ini
+++ b/tests/wpt/meta/content-security-policy/nonce-hiding/script-nonces-hidden.html.ini
@@ -1,30 +1,3 @@
[script-nonces-hidden.html]
- [Reading 'nonce' content attribute and IDL attribute.]
- expected: FAIL
-
- [Cloned node retains nonce.]
- expected: FAIL
-
- [Cloned node retains nonce when inserted.]
- expected: FAIL
-
- [Writing 'nonce' IDL attribute.]
- expected: FAIL
-
- [Document-written script's nonce value.]
- expected: FAIL
-
[createElement.nonce.]
expected: FAIL
-
- [setAttribute('nonce') overwrites '.nonce' upon insertion.]
- expected: FAIL
-
- [createElement.setAttribute.]
- expected: FAIL
-
- [Custom elements expose the correct events.]
- expected: FAIL
-
- [Nonces don't leak via CSS side-channels.]
- expected: FAIL
diff --git a/tests/wpt/meta/content-security-policy/nonce-hiding/svgscript-nonces-hidden-meta.sub.html.ini b/tests/wpt/meta/content-security-policy/nonce-hiding/svgscript-nonces-hidden-meta.sub.html.ini
index 14a7cfae7aa..54fff6e8d97 100644
--- a/tests/wpt/meta/content-security-policy/nonce-hiding/svgscript-nonces-hidden-meta.sub.html.ini
+++ b/tests/wpt/meta/content-security-policy/nonce-hiding/svgscript-nonces-hidden-meta.sub.html.ini
@@ -2,9 +2,3 @@
expected: TIMEOUT
[Document-written script executes.]
expected: NOTRUN
-
- [createElement.nonce.]
- expected: FAIL
-
- [Writing 'nonce' IDL attribute.]
- expected: FAIL
diff --git a/tests/wpt/meta/content-security-policy/nonce-hiding/svgscript-nonces-hidden.html.ini b/tests/wpt/meta/content-security-policy/nonce-hiding/svgscript-nonces-hidden.html.ini
index 77270d6f4a2..277bef043c8 100644
--- a/tests/wpt/meta/content-security-policy/nonce-hiding/svgscript-nonces-hidden.html.ini
+++ b/tests/wpt/meta/content-security-policy/nonce-hiding/svgscript-nonces-hidden.html.ini
@@ -1,22 +1,4 @@
[svgscript-nonces-hidden.html]
expected: TIMEOUT
- [Reading 'nonce' content attribute and IDL attribute.]
- expected: FAIL
-
- [Cloned node retains nonce.]
- expected: FAIL
-
- [Cloned node retains nonce when inserted.]
- expected: FAIL
-
[Document-written script executes.]
expected: NOTRUN
-
- [createElement.nonce.]
- expected: FAIL
-
- [createElement.setAttribute.]
- expected: FAIL
-
- [Writing 'nonce' IDL attribute.]
- expected: FAIL
diff --git a/tests/wpt/tests/css/cssom-view/table-client-props.html b/tests/wpt/tests/css/cssom-view/table-client-props.html
index 4af06d6bf71..2895bebebbf 100644
--- a/tests/wpt/tests/css/cssom-view/table-client-props.html
+++ b/tests/wpt/tests/css/cssom-view/table-client-props.html
@@ -43,6 +43,19 @@
<tr><td>`,
26, 34,
"Table with collapsed border" ],
+ [ `<div style="display: flex">
+ <table style="width: 20px; height: 30px;
+ border-width: 1px 2px 3px 4px; border-style: solid;
+ border-collapse: separate; box-sizing: content-box">`,
+ 26, 34,
+ "Flex-level table with separated border" ],
+ [ `<div style="display: flex">
+ <table style="width: 20px; height: 30px;
+ border-width: 2px 4px 6px 8px; border-style: solid;
+ border-collapse: collapse; box-sizing: content-box">
+ <tr><td>`,
+ 26, 34,
+ "Flex-level table with collapsed border" ],
[ `<table>
<caption style="width: 40px; height: 50px; padding: 1px 2px 3px 4px">`,
46, 54,
diff --git a/tests/wpt/tests/html/dom/reflection.js b/tests/wpt/tests/html/dom/reflection.js
index b2c3b30aae3..eeecd450fca 100644
--- a/tests/wpt/tests/html/dom/reflection.js
+++ b/tests/wpt/tests/html/dom/reflection.js
@@ -967,6 +967,7 @@ ReflectionTests.reflects = function(data, idlName, idlObj, domName, domObj) {
"previous value", "getAttribute()");
ReflectionHarness.assertEquals(idlObj[idlName], previousIdl, "IDL get");
} else {
+ var previousValue = domObj.getAttribute(domName);
idlObj[idlName] = idlTests[i];
if (data.type == "boolean") {
// Special case yay
@@ -976,6 +977,11 @@ ReflectionTests.reflects = function(data, idlName, idlObj, domName, domObj) {
var expected = idlDomExpected[i] + "";
if (data.isNullable && idlDomExpected[i] === null) {
expected = null;
+ } else if (idlName == "nonce") {
+ // nonce doesn't reflect the value, as per /content-security-policy/nonce-hiding/
+ // tests that confirm that retrieving the nonce value post IDL change does not
+ // reflect back to the attribute (for security reasons)
+ expected = previousValue;
}
ReflectionHarness.assertEquals(domObj.getAttribute(domName), expected,
"getAttribute()");