Commit 6d5346b0 authored by Chromium WPT Sync's avatar Chromium WPT Sync Committed by Chromium LUCI CQ

Import wpt@c559225e73f4917627e968225256e4eff077d0e0

Using wpt-import in Chromium 59a25f2b.

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:
cbiesinger@chromium.org:
  external/wpt/css/css-sizing
futhark@chromium.org, andruud@chromium.org, ericwilligers@chromium.org, shend@chromium.org:
  external/wpt/css/css-conditional

NOAUTOREVERT=true
TBR=lpz@google.com

No-Export: true
Cq-Include-Trybots: luci.chromium.try:linux-wpt-identity-fyi-rel,linux-wpt-input-fyi-rel
Change-Id: I865871111fc084532cae6d7dfff74ceaa3746aa8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2640755Reviewed-by: default avatarWPT Autoroller <wpt-autoroller@chops-service-accounts.iam.gserviceaccount.com>
Commit-Queue: WPT Autoroller <wpt-autoroller@chops-service-accounts.iam.gserviceaccount.com>
Cr-Commit-Position: refs/heads/master@{#845354}
parent 5c729acd
......@@ -2523,6 +2523,9 @@ crbug.com/958381 [ Mac ] external/wpt/css/CSS2/tables/table-anonymous-objects-20
crbug.com/958381 [ Mac ] external/wpt/css/CSS2/tables/table-anonymous-objects-206.xht [ Failure ]
# ====== New tests from wpt-importer added here ======
crbug.com/626703 [ Mac11.0 ] external/wpt/editing/other/typing-around-link-element-at-collapsed-selection.tentative.html?target=ContentEditable [ Timeout ]
crbug.com/626703 [ Mac10.12 ] virtual/feature-policy-permissions/external/wpt/mediacapture-streams/MediaStream-default-feature-policy.https.html [ Crash ]
crbug.com/626703 external/wpt/css/css-sizing/aspect-ratio/intrinsic-size-010.html [ Failure ]
crbug.com/626703 [ Mac11.0 ] external/wpt/editing/other/typing-around-link-element-at-collapsed-selection.tentative.html?target=ContentEditable&parent=b [ Timeout ]
crbug.com/626703 [ Mac11.0 ] virtual/threaded/external/wpt/css/css-scroll-snap/snap-after-initial-layout/scroll-snap-writing-mode-000.html [ Failure ]
crbug.com/626703 [ Mac11.0 ] external/wpt/editing/other/typing-around-link-element-at-non-collapsed-selection.tentative.html?target=ContentEditable&child=b [ Timeout ]
......
......@@ -278,9 +278,9 @@ The ```excluded_tests``` section have objects with the same format as [Test Expa
Taking the spec JSON, the generator follows this algorithm:
* Expand all ```excluded_tests``` to create a blacklist of selections
* Expand all ```excluded_tests``` to create a denylist of selections
* For each `specification` entries: Expand the ```test_expansion``` pattern into selections and check each against the blacklist, if not marked as suppresed, generate the test resources for the selection
* For each `specification` entries: Expand the ```test_expansion``` pattern into selections and check each against the denylist, if not marked as suppresed, generate the test resources for the selection
### SourceContext Resolution
......
This is a testharness.js-based test.
FAIL The third item should be snapped to by default, not the second's child. assert_equals: expected 200 but got 100
Harness: the test ran to completion.
<!doctype html>
<meta charset=utf-8>
<title>scroll-snap-type on non-scrollers traps snap positions</title>
<link rel=author title="Tab Atkins-Bittner" href="https://www.xanthir.com/contact/">
<link rel="help" href="https://drafts.csswg.org/css-scroll-snap/#captures-snap-positions">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<style>
.scroller {
width: 100px;
height: 100px;
overflow: auto;
scroll-snap-type: block mandatory;
}
.item {
background: gray;
height: 100px;
scroll-snap-type: block mandatory;
}
.item.snapped {
background: green;
scroll-snap-align: center;
}
.subitem {
background: red;
height: 100px;
scroll-snap-align: center;
}
</style>
<!--
Boxes with a non-none value for scroll-snap-type
will capture snap positions from their descendents,
preventing them from affecting higher-up scrollers,
even if they are not, themselves, scrollers.
-->
<div class=scroller>
<div class=item></div>
<div class=item><div class=subitem></div></div>
<div class="item snapped"></div>
<div class=item></div>
</div>
<script>
test(()=>{
const el = document.querySelector('.scroller');
assert_equals(el.scrollTop, 200);
}, "The third item should be snapped to by default, not the second's child.");
</script>
This is a testharness.js-based test.
Found 1520 tests; 1495 PASS, 25 FAIL, 0 TIMEOUT, 0 NOTRUN.
Found 1522 tests; 1495 PASS, 27 FAIL, 0 TIMEOUT, 0 NOTRUN.
PASS -apple-color-filter: _camel_cased_attribute v. CSS.supports
PASS -apple-color-filter: _webkit_cased_attribute must only exist for -webkit-
PASS -apple-color-filter: _dashed_attribute v. CSS.supports
......@@ -1347,6 +1347,8 @@ PASS shape-rendering: _camel_cased_attribute v. CSS.supports
PASS shape-rendering: _dashed_attribute v. CSS.supports
PASS size: _camel_cased_attribute v. CSS.supports
PASS speak: _camel_cased_attribute v. CSS.supports
FAIL speak-as: _camel_cased_attribute v. CSS.supports assert_equals: expected true but got false
FAIL speak-as: _dashed_attribute v. CSS.supports assert_equals: expected true but got false
FAIL src: _camel_cased_attribute v. CSS.supports assert_equals: expected true but got false
PASS stop-color: _camel_cased_attribute v. CSS.supports
PASS stop-color: _dashed_attribute v. CSS.supports
......
......@@ -612,6 +612,7 @@ const properties = [
"shape-rendering",
"size",
"speak",
"speak-as",
"src",
"stop-color",
"stop-opacity",
......
......@@ -2,13 +2,11 @@
<title>CSS aspect-ratio: min-content size keyword</title>
<link rel="author" title="Google LLC" href="https://www.google.com/">
<link rel="help" href="https://drafts.csswg.org/css-sizing-4/#aspect-ratio">
<link rel="help" href="https://github.com/w3c/csswg-drafts/issues/5032">
<link rel="match" href="../../reference/ref-filled-green-100px-square.xht" />
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<!-- This is still under discussion in https://github.com/w3c/csswg-drafts/issues/5032
but this testcase tests the likely outcome. -->
<div style="height: 100px; width: min-content; aspect-ratio: 1/1; background: green;"></div>
<div style="height: 50px; width: min-content; aspect-ratio: 2/1; background: green;"></div>
<!-- min-content in the block axis is treated as auto -->
<div style="height: min-content; width: 100px; aspect-ratio: 2/1; background: green;"></div>
<!DOCTYPE html>
<title>CSS aspect-ratio: min-content size keyword together with min-size</title>
<link rel="author" title="Mozilla" href="https://www.mozilla.org/">
<link rel="help" href="https://drafts.csswg.org/css-sizing-4/#aspect-ratio">
<link rel="help" href="https://drafts.csswg.org/css-sizing-4/#aspect-ratio-minimum">
<link rel="help" href="https://github.com/w3c/csswg-drafts/issues/5032">
<link rel="match" href="../../reference/ref-filled-green-100px-square.xht" />
<style>
.target {
background: green;
}
</style>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<!-- The tests below are based on the discussion:
https://github.com/w3c/csswg-drafts/issues/5032#issuecomment-655637111 -->
<!-- `min-width:auto` takes the content size into account.
`width: min-content` is resolved as 25px (= 25px * 1), and the content size
is 100px, so the final width should be max(25px, 100px) = 100px. -->
<div class="target" style="height: 25px; width: min-content; min-width: auto; aspect-ratio: 1/1;">
<div style="width: 100px;"></div>
</div>
<!-- `min-width:min-content` doesn't take the content size into account.
`width:auto` is resolved as 100px (= 25px * 4), and it shouldn't be
floored by the content size (i.e. 150px), so the final width is 100px. -->
<div class= "target" style="height: 25px; width: auto; min-width: min-content; aspect-ratio: 4/1;">
<div style="width: 150px;"></div>
</div>
<!-- `min-height:auto` takes the content size into account.
`height: min-content` is resolved as 10px (= 100px / 10), and the content
size is 25px, so the final height should be max(10px, 25px) = 25px. -->
<div class="target" style="height: min-content; min-height: auto; width: 100px; aspect-ratio: 10/1;">
<div style="height: 25px;"></div>
</div>
<!-- `min-height:min-content` doesn't take content size into account.
`height:auto` is resolved as 25px (= 100px / 4), and it shouldn't be
floored by the content size (i.e. 50px), so the final height is 25px. -->
<div class="target" style="height: auto; min-height: min-content; width: 100px; aspect-ratio: 4/1;">
<div style="height: 50px;"></div>
</div>
<!DOCTYPE html>
<title>CSS aspect-ratio: fit-content size keyword</title>
<link rel="author" title="Mozilla" href="https://www.mozilla.org/">
<link rel="help" href="https://drafts.csswg.org/css-sizing-4/#aspect-ratio">
<link rel="help" href="https://drafts.csswg.org/css-sizing-4/#valdef-width-fit-content">
<link rel="help" href="https://github.com/w3c/csswg-drafts/issues/5032">
<link rel="match" href="../../reference/ref-filled-green-100px-square.xht" />
<style>
div {
background: green;
aspect-ratio: 2/1;
}
</style>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div style="height: 50px; width: -moz-fit-content; width: fit-content;"></div>
<!-- fit-content in the block axis is treated as auto -->
<div style="height: -moz-fit-content; height: fit-content; width: 100px;"></div>
......@@ -19,6 +19,7 @@ th, td {
<tr>
<th style='background: green; width: 100px; aspect-ratio: 1/1;'></th>
<td style='background: red; height: 50px; aspect-ratio: 4/1;'></td>
<td style='background: red; height: 50px; min-width: min-content; aspect-ratio: 4/1;'></td>
</tr>
</table>
<!-- aspect-ratio should apply to the table element -->
......
......@@ -4,6 +4,19 @@ PASS idl_test validation
PASS Partial interface ElementInternals: original interface defined
PASS Partial interface ElementInternals: member names are unique
PASS ElementInternals includes ARIAMixin: member names are unique
FAIL ElementInternals interface: attribute states assert_equals: setter must be function for PutForwards, Replaceable, or non-readonly attributes expected "function" but got "undefined"
FAIL CustomStateSet interface: existence and properties of interface object assert_own_property: self does not have own property "CustomStateSet" expected property "CustomStateSet" missing
FAIL CustomStateSet interface object length assert_own_property: self does not have own property "CustomStateSet" expected property "CustomStateSet" missing
FAIL CustomStateSet interface object name assert_own_property: self does not have own property "CustomStateSet" expected property "CustomStateSet" missing
FAIL CustomStateSet interface: existence and properties of interface prototype object assert_own_property: self does not have own property "CustomStateSet" expected property "CustomStateSet" missing
FAIL CustomStateSet interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "CustomStateSet" expected property "CustomStateSet" missing
FAIL CustomStateSet interface: existence and properties of interface prototype object's @@unscopables property assert_own_property: self does not have own property "CustomStateSet" expected property "CustomStateSet" missing
FAIL CustomStateSet interface: operation add(DOMString) assert_own_property: self does not have own property "CustomStateSet" expected property "CustomStateSet" missing
FAIL CustomStateSet must be primary interface of customStateSet assert_own_property: self does not have own property "CustomStateSet" expected property "CustomStateSet" missing
FAIL Stringification of customStateSet assert_class_string: class string of customStateSet expected "[object CustomStateSet]" but got "[object DOMTokenList]"
PASS CustomStateSet interface: customStateSet must inherit property "add(DOMString)" with the proper type
FAIL CustomStateSet interface: calling add(DOMString) on customStateSet with too few arguments must throw TypeError assert_throws_js: Called with 0 arguments function "function() {
fn.apply(obj, args);
}" did not throw
PASS ElementInternals interface: attribute states
Harness: the test ran to completion.
......@@ -4,6 +4,8 @@
<script src="/resources/testharnessreport.js"></script>
<div id=log></div>
<script>
// TOUCH
function isInterfaceRemoved(name) {
test(function() {
assert_equals(window[name], undefined)
......
......@@ -8,11 +8,7 @@ dictionary WebAppManifest {
DOMString lang;
USVString name;
USVString short_name;
USVString description;
sequence<ManifestImageResource> icons;
sequence<ManifestImageResource> screenshots;
sequence<USVString> categories;
DOMString iarc_rating_id;
USVString start_url;
DisplayModeType display = "browser";
OrientationLockType orientation;
......
This is a testharness.js-based test.
PASS idl_test setup
PASS idl_test validation
PASS Partial interface ElementInternals: original interface defined
PASS Partial interface ElementInternals: member names are unique
PASS ElementInternals includes ARIAMixin: member names are unique
FAIL ElementInternals interface: attribute states assert_equals: setter must be function for PutForwards, Replaceable, or non-readonly attributes expected "function" but got "undefined"
Harness: the test ran to completion.
This is a testharness.js-based test.
PASS idl_test setup
PASS idl_test validation
PASS Partial interface ElementInternals: original interface defined
PASS Partial interface ElementInternals: member names are unique
PASS ElementInternals includes ARIAMixin: member names are unique
FAIL CustomStateSet interface: existence and properties of interface object assert_own_property: self does not have own property "CustomStateSet" expected property "CustomStateSet" missing
FAIL CustomStateSet interface object length assert_own_property: self does not have own property "CustomStateSet" expected property "CustomStateSet" missing
FAIL CustomStateSet interface object name assert_own_property: self does not have own property "CustomStateSet" expected property "CustomStateSet" missing
FAIL CustomStateSet interface: existence and properties of interface prototype object assert_own_property: self does not have own property "CustomStateSet" expected property "CustomStateSet" missing
FAIL CustomStateSet interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "CustomStateSet" expected property "CustomStateSet" missing
FAIL CustomStateSet interface: existence and properties of interface prototype object's @@unscopables property assert_own_property: self does not have own property "CustomStateSet" expected property "CustomStateSet" missing
FAIL CustomStateSet interface: operation add(DOMString) assert_own_property: self does not have own property "CustomStateSet" expected property "CustomStateSet" missing
FAIL CustomStateSet must be primary interface of customStateSet assert_own_property: self does not have own property "CustomStateSet" expected property "CustomStateSet" missing
FAIL Stringification of customStateSet assert_class_string: class string of customStateSet expected "[object CustomStateSet]" but got "[object DOMTokenList]"
PASS CustomStateSet interface: customStateSet must inherit property "add(DOMString)" with the proper type
FAIL CustomStateSet interface: calling add(DOMString) on customStateSet with too few arguments must throw TypeError assert_throws_js: Called with 0 arguments function "function() {
fn.apply(obj, args);
}" did not throw
PASS ElementInternals interface: attribute states
Harness: the test ran to completion.
This is a testharness.js-based test.
PASS idl_test setup
PASS idl_test validation
PASS Partial interface ElementInternals: original interface defined
PASS Partial interface ElementInternals: member names are unique
PASS ElementInternals includes ARIAMixin: member names are unique
FAIL CustomStateSet interface: existence and properties of interface object assert_own_property: self does not have own property "CustomStateSet" expected property "CustomStateSet" missing
FAIL CustomStateSet interface object length assert_own_property: self does not have own property "CustomStateSet" expected property "CustomStateSet" missing
FAIL CustomStateSet interface object name assert_own_property: self does not have own property "CustomStateSet" expected property "CustomStateSet" missing
FAIL CustomStateSet interface: existence and properties of interface prototype object assert_own_property: self does not have own property "CustomStateSet" expected property "CustomStateSet" missing
FAIL CustomStateSet interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "CustomStateSet" expected property "CustomStateSet" missing
FAIL CustomStateSet interface: existence and properties of interface prototype object's @@unscopables property assert_own_property: self does not have own property "CustomStateSet" expected property "CustomStateSet" missing
FAIL CustomStateSet interface: operation add(DOMString) assert_own_property: self does not have own property "CustomStateSet" expected property "CustomStateSet" missing
FAIL CustomStateSet must be primary interface of customStateSet assert_own_property: self does not have own property "CustomStateSet" expected property "CustomStateSet" missing
FAIL Stringification of customStateSet assert_class_string: class string of customStateSet expected "[object CustomStateSet]" but got "[object DOMTokenList]"
PASS CustomStateSet interface: customStateSet must inherit property "add(DOMString)" with the proper type
FAIL CustomStateSet interface: calling add(DOMString) on customStateSet with too few arguments must throw TypeError assert_throws_js: Called with 0 arguments function "function() {
fn.apply(obj, args);
}" did not throw
PASS ElementInternals interface: attribute states
Harness: the test ran to completion.
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