Commit 4264adc7 authored by Chromium WPT Sync's avatar Chromium WPT Sync Committed by Commit Bot

Import wpt@36b5d2e074d7fe19c027c1659640c53212096b53

Using wpt-import in Chromium aab823a8.
With Chromium commits locally applied on WPT:
e28269b6 "[LayoutNG/PE] Clear visual overflow for LayoutText before setting."
aff3c8fe "Add tests for crbug.com/363609 and crbug.com/954591"
c4dc3441 "[WPT] Reland Upload a test for sending mouse events with key pressed"
fec827fb "Added wpt tests for overscroll customization."
a554ea37 "Reland "[EventTiming] Round instead of ceil the |duration|""
a06bcc90 "WebXR: Rename requestSession parameter variables to match use"
eeafcaee "[sms] Introduce testing infrastructure and handle some corner cases."
c9077e39 "Restore original tail-processing for ScriptProcessor and AudioWorklet"


Note to sheriffs: This CL imports external tests and adds
expectations for those tests; if this CL is large and causes
a few new failures, please fix the failures by adding new
lines to TestExpectations rather than reverting. See:
https://chromium.googlesource.com/chromium/src/+/master/docs/testing/web_platform_tests.md

Directory owners for changes in this CL:
foolip@chromium.org, lpz@chromium.org, robertma@chromium.org:
  external/wpt/tools
hbos@chromium.org, hta@chromium.org:
  external/wpt/webrtc

NOAUTOREVERT=true
TBR=lpz

No-Export: true
Change-Id: Ia30ac02c4d057e7161a9742f28d40a9e0dae7eac
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1600596Reviewed-by: default avatarWPT Autoroller <wpt-autoroller@chops-service-accounts.iam.gserviceaccount.com>
Commit-Queue: Robert Ma <robertma@chromium.org>
Cr-Commit-Position: refs/heads/master@{#657574}
parent f625bc73
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Scroll Snap: getComputedValue().scrollMarginBlock</title>
<link rel="help" href="https://drafts.csswg.org/css-scroll-snap-1/#propdef-scroll-margin-block">
<meta name="assert" content="scroll-margin-block computed value is absolute length.">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/computed-testcommon.js"></script>
</head>
<body>
<div id="target"></div>
<style>
#target {
font-size: 40px;
}
</style>
<script>
test_computed_value("scroll-margin-block-start", "10px");
test_computed_value("scroll-margin-block-start", "calc(10px - 0.5em)", "-10px");
test_computed_value("scroll-margin-block-end", "10px");
test_computed_value("scroll-margin-block-end", "calc(10px - 0.5em)", "-10px");
test_computed_value("scroll-margin-block", "10px");
test_computed_value("scroll-margin-block", "calc(10px - 0.5em)", "-10px");
test_computed_value("scroll-margin-block", "1px 2px");
</script>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Scroll Snap: getComputedValue().scrollMargin</title>
<link rel="help" href="https://drafts.csswg.org/css-scroll-snap-1/#propdef-scroll-margin">
<meta name="assert" content="scroll-margin computed value is absolute length.">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/computed-testcommon.js"></script>
</head>
<body>
<div id="target"></div>
<style>
#target {
font-size: 40px;
}
</style>
<script>
test_computed_value("scroll-margin-top", "10px");
test_computed_value("scroll-margin-top", "calc(10px - 0.5em)", "-10px");
test_computed_value("scroll-margin-right", "10px");
test_computed_value("scroll-margin-right", "calc(10px - 0.5em)", "-10px");
test_computed_value("scroll-margin-bottom", "10px");
test_computed_value("scroll-margin-bottom", "calc(10px - 0.5em)", "-10px");
test_computed_value("scroll-margin-left", "10px");
test_computed_value("scroll-margin-left", "calc(10px - 0.5em)", "-10px");
test_computed_value("scroll-margin", "10px");
test_computed_value("scroll-margin", "calc(10px - 0.5em)", "-10px");
test_computed_value("scroll-margin", "1px 2px");
</script>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Scroll Snap: getComputedValue().scrollMarginInline</title>
<link rel="help" href="https://drafts.csswg.org/css-scroll-snap-1/#propdef-scroll-margin-inline">
<meta name="assert" content="scroll-margin-inline computed value is absolute length.">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/computed-testcommon.js"></script>
</head>
<body>
<div id="target"></div>
<style>
#target {
font-size: 40px;
}
</style>
<script>
test_computed_value("scroll-margin-inline-start", "10px");
test_computed_value("scroll-margin-inline-start", "calc(10px - 0.5em)", "-10px");
test_computed_value("scroll-margin-inline-end", "10px");
test_computed_value("scroll-margin-inline-end", "calc(10px - 0.5em)", "-10px");
test_computed_value("scroll-margin-inline", "10px");
test_computed_value("scroll-margin-inline", "calc(10px - 0.5em)", "-10px");
test_computed_value("scroll-margin-inline", "1px 2px");
</script>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Scroll Snap: getComputedValue().scrollSnapAlign</title>
<link rel="help" href="https://drafts.csswg.org/css-scroll-snap-1/#propdef-scroll-snap-align">
<meta name="assert" content="scroll-snap-align computed value is as specified.">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/computed-testcommon.js"></script>
</head>
<body>
<div id="target"></div>
<script>
test_computed_value("scroll-snap-align", "none");
test_computed_value("scroll-snap-align", "start");
test_computed_value("scroll-snap-align", "end");
test_computed_value("scroll-snap-align", "center");
test_computed_value("scroll-snap-align", "start none");
test_computed_value("scroll-snap-align", "center end");
test_computed_value("scroll-snap-align", "start start", "start");
</script>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Scroll Snap: getComputedValue().scrollSnapStop</title>
<link rel="help" href="https://drafts.csswg.org/css-scroll-snap-1/#propdef-scroll-snap-stop">
<meta name="assert" content="scroll-snap-stop computed value is as specified.">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/computed-testcommon.js"></script>
</head>
<body>
<div id="target"></div>
<script>
test_computed_value("scroll-snap-stop", "normal");
test_computed_value("scroll-snap-stop", "always");
</script>
</body>
</html>
This is a testharness.js-based test.
PASS Property scroll-snap-type value 'none' computes to 'none'
FAIL Property scroll-snap-type value 'x' computes to 'x' assert_equals: expected "x" but got "x proximity"
FAIL Property scroll-snap-type value 'y' computes to 'y' assert_equals: expected "y" but got "y proximity"
FAIL Property scroll-snap-type value 'block' computes to 'block' assert_equals: expected "block" but got "block proximity"
FAIL Property scroll-snap-type value 'inline' computes to 'inline' assert_equals: expected "inline" but got "inline proximity"
FAIL Property scroll-snap-type value 'both' computes to 'both' assert_equals: expected "both" but got "both proximity"
PASS Property scroll-snap-type value 'y mandatory' computes to 'y mandatory'
FAIL Property scroll-snap-type value 'inline proximity' computes to 'inline' assert_equals: expected "inline" but got "inline proximity"
Harness: the test ran to completion.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Scroll Snap: getComputedValue().scrollSnapType</title>
<link rel="help" href="https://drafts.csswg.org/css-scroll-snap-1/#propdef-scroll-snap-type">
<meta name="assert" content="scroll-snap-type computed value is as specified.">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/computed-testcommon.js"></script>
</head>
<body>
<div id="target"></div>
<script>
test_computed_value("scroll-snap-type", "none");
test_computed_value("scroll-snap-type", "x");
test_computed_value("scroll-snap-type", "y");
test_computed_value("scroll-snap-type", "block");
test_computed_value("scroll-snap-type", "inline");
test_computed_value("scroll-snap-type", "both");
test_computed_value("scroll-snap-type", "y mandatory");
test_computed_value("scroll-snap-type", "inline proximity", "inline");
</script>
</body>
</html>
<!DOCTYPE html>
<title>Custom Elements: CEReactions on HTMLStyleElement interface</title>
<link rel="author" title="Intel" href="http://www.intel.com">
<meta name="assert" content="media of HTMLStyleElement interface must have CEReactions">
<meta name="help" content="https://html.spec.whatwg.org/#the-style-element">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="../resources/custom-elements-helpers.js"></script>
<script src="./resources/reactions.js"></script>
<script>
function getParentElement() {
return document.head;
}
testReflectAttributeWithParentNode(
'media', 'media', 'print',
'screen', 'media on HTMLStyleElement', 'style',
getParentElement, HTMLStyleElement
);
</script>
<!DOCTYPE html>
<title>Custom Elements: CEReactions on HTMLTableCellElement interface</title>
<link rel="author" title="Intel" href="http://www.intel.com">
<meta name="assert" content="colSpan, rowSpan, headers, scope, abbr of
HTMLTableCellElement interface must have CEReactions">
<meta name="help" content="https://html.spec.whatwg.org/#the-td-element">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="../resources/custom-elements-helpers.js"></script>
<script src="./resources/reactions.js"></script>
<table><tr id="colSpan"></table>
<table><tr id="rowSpan"><tr><tr></table>
<table><tr><th id="id1"><th id="id2"><tr id="td_headers"><tr id="th_headers"></table>
<script>
function getParentElement(id) {
let parentElement = document.getElementById(id);
return parentElement;
}
testReflectAttributeWithParentNode(
'colSpan', 'colspan', '2',
'3', 'colSpan on HTMLTableCellElement in td', 'td',
() => getParentElement('colSpan'), HTMLTableCellElement
);
testReflectAttributeWithParentNode(
'colSpan', 'colspan', '2',
'3', 'colSpan on HTMLTableCellElement in th', 'th',
() => getParentElement('colSpan'), HTMLTableCellElement
);
testReflectAttributeWithParentNode(
'rowSpan', 'rowspan', '2',
'3', 'rowSpan on HTMLTableCellElement in td', 'td',
() => getParentElement('rowSpan'), HTMLTableCellElement
);
testReflectAttributeWithParentNode(
'rowSpan', 'rowspan', '2',
'3', 'rowSpan on HTMLTableCellElement in th', 'th',
() => getParentElement('rowSpan'), HTMLTableCellElement
);
testReflectAttributeWithParentNode(
'headers', 'headers', 'id1',
'id2', 'headers on HTMLTableCellElement in td', 'td',
() => getParentElement('td_headers'), HTMLTableCellElement
);
testReflectAttributeWithParentNode(
'headers', 'headers', 'id1',
'id2', 'headers on HTMLTableCellElement in th', 'th',
() => getParentElement('th_headers'), HTMLTableCellElement
);
testReflectAttributeWithParentNode(
'scope', 'scope', 'row',
'col', 'scope on HTMLTableCellElement in th', 'th',
() => getParentElement('colSpan'), HTMLTableCellElement
);
testReflectAttributeWithParentNode(
'abbr', 'abbr', 'Model1',
'Model2', 'abbr on HTMLTableCellElement in th', 'th',
() => getParentElement('colSpan'), HTMLTableCellElement
);
</script>
<!DOCTYPE html>
<title>Custom Elements: CEReactions on HTMLTableColElement interface</title>
<link rel="author" title="Intel" href="http://www.intel.com">
<meta name="assert" content="span of HTMLTableColElement interface must have CEReactions">
<meta name="help" content="https://html.spec.whatwg.org/#the-colgroup-element">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="../resources/custom-elements-helpers.js"></script>
<script src="./resources/reactions.js"></script>
<table id="tbl"></table>
<script>
function getParentElement() {
let parentElement = document.getElementById('tbl');
return parentElement;
}
testReflectAttributeWithParentNode(
'span', 'span', '2',
'1', 'span on HTMLTableColElement', 'colgroup',
getParentElement, HTMLTableColElement
);
</script>
...@@ -80,11 +80,20 @@ ResizeTestHelper.prototype = { ...@@ -80,11 +80,20 @@ ResizeTestHelper.prototype = {
delete this._timeoutId; delete this._timeoutId;
} }
this._harnessTest.step(() => { this._harnessTest.step(() => {
let rafDelay = this._currentStep.notify(entries, this._observer); try {
if (rafDelay) let rafDelay = this._currentStep.notify(entries, this._observer);
window.requestAnimationFrame(this._nextStepBind); if (rafDelay)
else window.requestAnimationFrame(this._nextStepBind);
this._nextStep(); else
this._nextStep();
}
catch(err) {
this._harnessTest.step(() => {
throw err;
});
// Force to _done() the current test.
this._done();
}
}); });
}, },
......
<!doctype html>
<meta charset=utf-8>
<title>CSS Test: symbol doesn't improperly render in svg use shadow tree</title>
<link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
<link rel="help" href="https://svgwg.org/svg2-draft/struct.html#UseElement">
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1547619">
<link rel="match" href="/svg/linking/reftests/use-descendant-combinator-ref.html">
<p>
You should see a green square, and no red.
</p>
<svg
version="1.1"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink">
<defs>
<symbol id="square">
<rect width="100" height="100"/>
<symbol>
<rect width="100" height="100" fill="red" />
</symbol>
</symbol>
</defs>
<g id="test">
<use xlink:href="#square" fill="green" />
</g>
</svg>
<!doctype html>
<meta charset=utf-8>
<title>CSS Test: symbol referenced in a use shadow tree should actually be a symbol</title>
<link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
<link rel="help" href="https://svgwg.org/svg2-draft/struct.html#SymbolNotes">
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1547619">
<link rel="match" href="/svg/linking/reftests/use-descendant-combinator-ref.html">
<p>
You should see a green square, and no red.
</p>
<style>
rect {
fill: red;
}
symbol rect {
fill: green;
}
</style>
<svg
version="1.1"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink">
<defs>
<symbol id="square">
<rect width="100" height="100"/>
</symbol>
</defs>
<g id="test">
<use xlink:href="#square" fill="green" />
</g>
</svg>
...@@ -310,8 +310,7 @@ class RoutesBuilder(object): ...@@ -310,8 +310,7 @@ class RoutesBuilder(object):
self.forbidden = [("*", "/_certs/*", handlers.ErrorHandler(404)), self.forbidden = [("*", "/_certs/*", handlers.ErrorHandler(404)),
("*", "/tools/*", handlers.ErrorHandler(404)), ("*", "/tools/*", handlers.ErrorHandler(404)),
("*", "{spec}/tools/*", handlers.ErrorHandler(404)), ("*", "{spec}/tools/*", handlers.ErrorHandler(404))]
("*", "/serve.py", handlers.ErrorHandler(404))]
self.extra = [] self.extra = []
......
...@@ -145,7 +145,6 @@ def env_options(): ...@@ -145,7 +145,6 @@ def env_options():
# #
# https://github.com/web-platform-tests/wpt/pull/9480 # https://github.com/web-platform-tests/wpt/pull/9480
return {"server_host": "127.0.0.1", return {"server_host": "127.0.0.1",
"bind_address": False,
"supports_debugger": True} "supports_debugger": True}
......
...@@ -100,6 +100,7 @@ def is_bad_port(port): ...@@ -100,6 +100,7 @@ def is_bad_port(port):
] ]
def get_port(host=''): def get_port(host=''):
host = host or '127.0.0.1'
port = 0 port = 0
while True: while True:
free_socket = _open_socket(host, 0) free_socket = _open_socket(host, 0)
......
...@@ -36,9 +36,9 @@ a=rtpmap:96 VP8/90000 ...@@ -36,9 +36,9 @@ a=rtpmap:96 VP8/90000
a=rtcp-fb:96 goog-remb a=rtcp-fb:96 goog-remb
a=rtcp-fb:96 transport-cc a=rtcp-fb:96 transport-cc
a=rtcp-fb:96 ccm fir a=rtcp-fb:96 ccm fir
a=rid:foo send a=rid:foo recv
a=rid:bar send a=rid:bar recv
a=rid:baz send a=rid:baz recv
a=simulcast:recv foo;bar;baz a=simulcast:recv foo;bar;baz
`; `;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment