Skip to content
Permalink
Browse files

Update web-platform-tests to revision 4beda31498f85ded322ea4d55870973…

…000364ac4
  • Loading branch information...
servo-wpt-sync committed Jul 2, 2019
1 parent f4ff9e2 commit 2f34737d476dede4d9adcc578693033776b02bb5
Showing with 351 additions and 108 deletions.
  1. +35 −8 tests/wpt/metadata/MANIFEST.json
  2. +12 −0 tests/wpt/metadata/css/css-transitions/properties-value-inherit-001.html.ini
  3. +2 −0 tests/wpt/metadata/css/cssom-view/matchMedia-display-none-iframe.html.ini
  4. +4 −0 tests/wpt/metadata/css/cssom/CSSGroupingRule-insertRule.html.ini
  5. +9 −0 tests/wpt/metadata/fetch/content-type/response.window.js.ini
  6. +3 −0 tests/wpt/metadata/fetch/content-type/script.window.js.ini
  7. +2 −2 tests/wpt/metadata/fetch/nosniff/parsing-nosniff.window.js.ini
  8. +4 −0 tests/wpt/metadata/html/browsers/history/the-history-interface/traverse_the_history_5.html.ini
  9. +0 −4 tests/wpt/metadata/html/syntax/parsing/DOMContentLoaded-defer.html.ini
  10. +6 −0 ...a/webaudio/the-audio-api/the-audiobuffersourcenode-interface/sub-sample-buffer-stitching.html.ini
  11. +1 −1 tests/wpt/web-platform-tests/css/css-text/line-break/line-break-anywhere-010.html
  12. +1 −1 tests/wpt/web-platform-tests/css/css-text/line-break/line-break-anywhere-012.html
  13. +54 −0 tests/wpt/web-platform-tests/css/cssom/CSSGroupingRule-cssRules.html
  14. +118 −0 tests/wpt/web-platform-tests/css/cssom/CSSGroupingRule-insertRule.html
  15. +0 −78 tests/wpt/web-platform-tests/docs/appendix/github-intro.md
  16. +83 −0 tests/wpt/web-platform-tests/docs/reviewing-tests/git.md
  17. +1 −0 tests/wpt/web-platform-tests/docs/reviewing-tests/index.md
  18. +0 −7 tests/wpt/web-platform-tests/interfaces/css-conditional.idl
  19. +12 −3 tests/wpt/web-platform-tests/interfaces/webrtc-stats.idl
  20. +3 −3 tests/wpt/web-platform-tests/screen-orientation/lock-unlock-check.html
  21. +1 −1 tests/wpt/web-platform-tests/screen-orientation/resources/orientation-utils.js
"docs/reviewing-tests/email.md": [
[]
],
"docs/reviewing-tests/git.md": [
[]
],
"docs/reviewing-tests/index.md": [
[]
],
{}
]
],
"css/cssom/CSSGroupingRule-cssRules.html": [
[
"css/cssom/CSSGroupingRule-cssRules.html",
{}
]
],
"css/cssom/CSSGroupingRule-insertRule.html": [
[
"css/cssom/CSSGroupingRule-insertRule.html",
{}
]
],
"css/cssom/CSSKeyframeRule.html": [
[
"css/cssom/CSSKeyframeRule.html",
"reftest"
],
"css/css-text/line-break/line-break-anywhere-010.html": [
"4c4b86c15b69f7d351b92477640808e297ed74f2",
"6554bf68ce13d0f3a3f3d020c01a749aca4228dd",
"reftest"
],
"css/css-text/line-break/line-break-anywhere-011.html": [
"6cbec13008edd1fadb022f0e8f50f63c6f0a1642",
"reftest"
],
"css/css-text/line-break/line-break-anywhere-012.html": [
"76fe279c50da6d2d429ecf19ecf2d77241aa87fa",
"2dfe6071fdfe2a2993812a28c7e1408d59da763c",
"reftest"
],
"css/css-text/line-break/line-break-anywhere-013.html": [
"ba048c58acaac5cd2550fb21cb9b6e9ee8fb0bb1",
"testharness"
],
"css/cssom/CSSGroupingRule-cssRules.html": [
"e4afd5e560fc317db0490010d692174522fafa66",
"testharness"
],
"css/cssom/CSSGroupingRule-insertRule.html": [
"2364465f8374bbf824e669a2e965c6ce19312c50",
"testharness"
],
"css/cssom/CSSKeyframeRule.html": [
"3f6d1821867ae42dc2e486597621fb079268e2c0",
"testharness"
"support"
],
"docs/appendix/github-intro.md": [
"d7ee052ce0e363a950f7c491a76c64cf361e9e4e",
"fae2d4e564da41b4afbe62828a1fbfc4fe1f2378",
"support"
],
"docs/appendix/index.md": [
"fbfa65d75cccca5b913da393788cd94faf637f6e",
"support"
],
"docs/reviewing-tests/git.md": [
"471edff0843ff760294838cbd9b52331c2bb351a",
"support"
],
"docs/reviewing-tests/index.md": [
"b9f3d33eb4fda35912842dd755d900b5b723707c",
"7f0767d22f707e48d7248d39e839d97e3882c155",
"support"
],
"docs/running-tests/chrome.md": [
"support"
],
"interfaces/css-conditional.idl": [
"8f928ad48269e4bfe3f2fd797b716e4e66cb6da2",
"a57cc6c205e290fab1244e7d8f5ef087011b6800",
"support"
],
"interfaces/css-counter-styles.idl": [
"support"
],
"interfaces/webrtc-stats.idl": [
"f29e00d195e898cb6c2dfce9a82bc81fd168787a",
"29604eafc2f4bff2ab1c0790cf7411589aefc214",
"support"
],
"interfaces/webrtc.idl": [
"testharness"
],
"screen-orientation/lock-unlock-check.html": [
"129882d64f6d323d93a183d59f4744a8e888d3f1",
"8e79033e614ce3f0e9db26bc0235d517f1d5e28e",
"testharness"
],
"screen-orientation/onchange-event-subframe.html": [
"support"
],
"screen-orientation/resources/orientation-utils.js": [
"8721818bec2fadcaa3010f3c48d9e38db854f669",
"85be16c3691dcd5498e117c165f8f4b17c53064b",
"support"
],
"screen-orientation/resources/sandboxed-iframe-locking.html": [
@@ -56,3 +56,15 @@
[background-position length(px) / events]
expected: FAIL

[font-size percentage(%) / events]
expected: FAIL

[font-size length(em) / values]
expected: FAIL

[font-size percentage(%) / values]
expected: FAIL

[font-size length(em) / events]
expected: FAIL

@@ -0,0 +1,2 @@
[matchMedia-display-none-iframe.html]
expected: ERROR
@@ -0,0 +1,4 @@
[CSSGroupingRule-insertRule.html]
[index not specified]
expected: FAIL

@@ -312,3 +312,12 @@
[<iframe>: separate response Content-Type: */* text/html]
expected: FAIL

[<iframe>: combined response Content-Type: text/html;charset=gbk text/plain text/html]
expected: FAIL

[<iframe>: separate response Content-Type: text/html */*]
expected: FAIL

[<iframe>: separate response Content-Type: text/plain */*]
expected: FAIL

@@ -56,3 +56,6 @@
[separate text/javascript x/x]
expected: FAIL

[separate text/javascript;charset=windows-1252 error text/javascript]
expected: FAIL

@@ -11,9 +11,9 @@
[X-Content-Type-Options%3A%20nosniff%0C]
expected: FAIL

[X-Content-Type-Options%3A%20'NosniFF']
[X-Content-Type-Options%3A%20%2Cnosniff]
expected: FAIL

[X-Content-Type-Options%3A%20%2Cnosniff]
[X-Content-Type-Options%3A%0D%0AX-Content-Type-Options%3A%20nosniff]
expected: FAIL

@@ -0,0 +1,4 @@
[traverse_the_history_5.html]
[Multiple history traversals, last would be aborted]
expected: FAIL

This file was deleted.

@@ -50,3 +50,9 @@
[X SNR (-183.0486244640611 dB) is not greater than or equal to 65.737. Got -183.0486244640611.]
expected: FAIL

[X Stitched sine-wave buffers at sample rate 43800 does not equal [0,0.06264832615852356,0.12505052983760834,0.18696144223213196,0.24813786149024963,0.308339387178421,0.36732959747314453,0.4248766601085663,0.480754554271698,0.5347436666488647,0.5866320133209229,0.6362156271934509,0.6832997798919678,0.7276994585990906,0.7692402601242065,0.8077589869499207...\] with an element-wise tolerance of {"absoluteThreshold":0.0038986,"relativeThreshold":0}.\n\tIndex\tActual\t\t\tExpected\t\tAbsError\t\tRelError\t\tTest threshold\n\t[30\]\t9.4836157560348511e-1\t9.5236867666244507e-1\t4.0071010589599609e-3\t4.2075103446311962e-3\t3.8985999999999999e-3\n\t[31\]\t9.2646563053131104e-1\t9.3139332532882690e-1\t4.9276947975158691e-3\t5.2906700783754857e-3\t3.8985999999999999e-3\n\t[32\]\t9.0087991952896118e-1\t9.0675884485244751e-1\t5.8789253234863281e-3\t6.4834496590358351e-3\t3.8985999999999999e-3\n\t[33\]\t8.7170630693435669e-1\t8.7856203317642212e-1\t6.8557262420654297e-3\t7.8033490899654511e-3\t3.8985999999999999e-3\n\t[34\]\t8.3906102180480957e-1\t8.4691369533538818e-1\t7.8526735305786133e-3\t9.2721059699818163e-3\t3.8985999999999999e-3\n\t...and 31037 more errors.\n\tMax AbsError of 3.6667328475749582e+7 at index of 20238.\n\t[20238\]\t3.6667328000000000e+7\t-4.7574958205223083e-1\t3.6667328475749582e+7\t7.7072749738588333e+7\t3.8985999999999999e-3\n\tMax RelError of 7.7072749738588333e+7 at index of 20238.\n\t[20238\]\t3.6667328000000000e+7\t-4.7574958205223083e-1\t3.6667328475749582e+7\t7.7072749738588333e+7\t3.8985999999999999e-3\n]
expected: FAIL

[X SNR (-107.86498904709346 dB) is not greater than or equal to 65.737. Got -107.86498904709346.]
expected: FAIL

@@ -28,7 +28,7 @@
.test {
color: green;
width: 4ch;
white-space: break-spaces;
white-space: pre-wrap;
line-break: anywhere;
}
</style>
@@ -6,7 +6,7 @@
<link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-line-break-anywhere">
<meta name="flags" content="">
<link rel="match" href="reference/line-break-anywhere-004-ref.html">
<meta name="assert" content="line-break:anywhere allows breaking opportunities around slash characters.">
<meta name="assert" content="line-break:anywhere allows breaking opportunities around backslash characters.">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<style>
div {
@@ -0,0 +1,54 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>CSSOM - CSSGroupingRule - cssRules</title>
<link rel="help" href="https://drafts.csswg.org/cssom/#the-cssgroupingrule-interface">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
function create(t) {
var style = document.createElement('style');
style.appendChild(document.createTextNode('@media all { * {} }'));
document.head.appendChild(style);
t.add_cleanup(function() {
document.head.removeChild(style);
});
assert_true(!!style.sheet, 'setup - sheet defined');
assert_equals(
style.sheet.cssRules.length, 1, 'setup - grouping rule created'
);
assert_equals(
style.sheet.cssRules[0].cssRules.length, 1, 'setup - rule created'
);
return style.sheet.cssRules[0];
}
test(function (t) {
var groupingRule = create(t);
groupingRule.cssRules.wptMarker = 'wpt';
// `insertRule` is used to prompt non-conforming implementations to
// create a new CSSRuleList object. Its behavior is verified by a
// dedicated test and should not influence the result of this
// particular test.
try {
groupingRule.insertRule('.foo {}', 0);
groupingRule.insertRule('.bar {}', 0);
groupingRule.insertRule('.baz {}', 0);
} catch (err) {}
assert_equals(groupingRule.cssRules.wptMarker, 'wpt');
try {
groupingRule.deleteRule('.foo {}', 0);
groupingRule.deleteRule('.bar {}', 0);
groupingRule.deleteRule('.baz {}', 0);
} catch (err) {}
assert_equals(groupingRule.cssRules.wptMarker, 'wpt');
}, '[SameObject] is honored');
</script>
</head>
</html>
@@ -0,0 +1,118 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>CSSOM - CSSGroupingRule - insertRule</title>
<link rel="help" href="https://drafts.csswg.org/cssom/#the-cssgroupingrule-interface">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
function create(t) {
var style = document.createElement('style');
style.appendChild(document.createTextNode('@media all { * {} }'));
document.head.appendChild(style);
t.add_cleanup(function() {
document.head.removeChild(style);
});
assert_true(!!style.sheet, 'setup - sheet defined');
assert_equals(
style.sheet.cssRules.length, 1, 'setup - grouping rule created'
);
assert_equals(
style.sheet.cssRules[0].cssRules.length, 1, 'setup - rule created'
);
return style.sheet.cssRules[0];
}
test(function (t) {
var groupingRule = create(t);
var first = groupingRule.cssRules[0].cssText;
var result;
result = groupingRule.insertRule('.foo {}', 0);
assert_equals(groupingRule.cssRules.length, 2);
assert_not_equals(groupingRule.cssRules[0].cssText, first);
assert_equals(groupingRule.cssRules[1].cssText, first);
assert_equals(result, 0, 'result');
}, 'index before first');
test(function (t) {
var groupingRule = create(t);
var first = groupingRule.cssRules[0].cssText;
var result;
result = groupingRule.insertRule('.foo {}', 1);
assert_equals(groupingRule.cssRules.length, 2);
assert_equals(groupingRule.cssRules[0].cssText, first);
assert_not_equals(groupingRule.cssRules[1].cssText, first);
assert_equals(result, 1);
}, 'index after final');
test(function (t) {
var groupingRule = create(t);
var first = groupingRule.cssRules[0].cssText;
var result;
result = groupingRule.insertRule('.foo {}');
assert_equals(groupingRule.cssRules.length, 2);
assert_not_equals(groupingRule.cssRules[0].cssText, first);
assert_equals(groupingRule.cssRules[1].cssText, first);
assert_equals(result, 0);
}, 'index not specified');
test(function (t) {
var groupingRule = create(t);
var first = groupingRule.cssRules[0].cssText;
assert_throws('IndexSizeError', function() {
// The syntax error is intentional; it verifies that the insertion
// index is validated prior to the CSS text.
groupingRule.insertRule('???', 2);
});
assert_equals(groupingRule.cssRules.length, 1);
assert_equals(groupingRule.cssRules[0].cssText, first);
}, 'index exceeds length');
test(function (t) {
var groupingRule = create(t);
var first = groupingRule.cssRules[0].cssText;
assert_throws('SyntaxError', function() {
groupingRule.insertRule('???', 0);
});
assert_equals(groupingRule.cssRules.length, 1);
assert_equals(groupingRule.cssRules[0].cssText, first);
}, 'CSS parsing error');
test(function (t) {
var groupingRule = create(t);
var first = groupingRule.cssRules[0].cssText;
assert_throws('HierarchyRequestError', function() {
groupingRule.insertRule('@import url("foo.css");', 0);
});
assert_equals(groupingRule.cssRules.length, 1);
assert_equals(groupingRule.cssRules[0].cssText, first);
}, 'constraint violation');
test(function (t) {
var groupingRule = create(t);
var first = groupingRule.cssRules[0].cssText;
assert_throws('HierarchyRequestError', function() {
groupingRule.insertRule('@namespace url(http://www.w3.org/1999/xhtml);', 0);
});
assert_equals(groupingRule.cssRules.length, 1);
assert_equals(groupingRule.cssRules[0].cssText, first);
}, 'disallowed namespace rule');
</script>
</head>
</html>

0 comments on commit 2f34737

Please sign in to comment.
You can’t perform that action at this time.