Skip to content

Commit

Permalink
Import wpt@4d1dc1971a0688048c804261711c639fe96ee187
Browse files Browse the repository at this point in the history
Using wpt-import in Chromium e55721a.

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/+/main/docs/testing/web_platform_tests.md

Directory owners for changes in this CL:
japhet@chromium.org:
  external/wpt/fetch

NOAUTOREVERT=true
R=rubber-stamper@appspot.gserviceaccount.com

No-Export: true
Cq-Include-Trybots: luci.chromium.try:linux-wpt-identity-fyi-rel,linux-wpt-input-fyi-rel,linux-blink-rel
Change-Id: Id52930dc1adf479813c1efad71216c48becc3178
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4587081
Auto-Submit: WPT Autoroller <wpt-autoroller@chops-service-accounts.iam.gserviceaccount.com>
Commit-Queue: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Cr-Commit-Position: refs/heads/main@{#1153021}
  • Loading branch information
Chromium WPT Sync authored and Chromium LUCI CQ committed Jun 4, 2023
1 parent e7ed165 commit 753915b
Show file tree
Hide file tree
Showing 16 changed files with 165 additions and 96 deletions.
39 changes: 28 additions & 11 deletions third_party/blink/web_tests/external/WPT_BASE_MANIFEST_8.json
Expand Up @@ -4947,6 +4947,13 @@
"fetch": {
"api": {
"crashtests": {
"body-window-destroy.html": [
"646d3c5f8ce9e6591e6bd1eb2096e36d611a8899",
[
null,
{}
]
],
"request.html": [
"2d21930c3bbc8743ebfe5ad679e62f41a776ebde",
[
Expand Down Expand Up @@ -273083,11 +273090,11 @@
"support": {
".cache": {
"gitignore2.json": [
"b4102a11596a93e4a50c6be9e983895ee4d286de",
"f143a127f4529e4b139132362984c693fb0d63f2",
[]
],
"mtime.json": [
"5dcca4b6728c5138c58b4d4f05ad60115ea6b071",
"a79d8733929b4344afa06f3b32acee0e806d8a46",
[]
]
},
Expand Down Expand Up @@ -338276,7 +338283,7 @@
[]
],
"backdrop-filters-saturate.html.ini": [
"54fa147072000a13154fba488d0942f9ac161eb8",
"13ccc02531b037dcb0e73ede520397c13daa9f30",
[]
],
"backdrop-filters-sepia-ref.html": [
Expand Down Expand Up @@ -347575,6 +347582,12 @@
]
}
},
"crashtests": {
"body-window-destroy.html.ini": [
"14ed17f078a717ae800856848c03070af9b242ae",
[]
]
},
"credentials": {
"authentication-redirection.any-expected.txt": [
"9fb8be1b5efe80a8fccb8de5c10f0b544ebf308e",
Expand Down Expand Up @@ -358978,7 +358991,7 @@
[]
],
"iframe-popup-to-so.https.html.ini": [
"94da8c853e7ad72629fd0ec41dc4933bc10c797d",
"d656e5d508627664907905ffdc1da4ec11da2a9e",
[]
],
"iframe-popup-to-soap.https.html.headers": [
Expand Down Expand Up @@ -363704,7 +363717,7 @@
}
},
"dimension-attributes-expected.txt": [
"7a1df9368817826774c87eac3bfad90f118cdf73",
"bf08f89f309fb87e8257f8febf23fe284cf55da7",
[]
],
"dimension-attributes.html.ini": [
Expand Down Expand Up @@ -365969,6 +365982,10 @@
"cf9cad9876ad605493d5f796590f47de57df5d8e",
[]
],
"track-cues-sorted-before-dispatch.html.ini": [
"2877e071990f902b31bcafb8bc816e378e0c03c0",
[]
],
"track-element-src-change-error-expected.txt": [
"4c3f1e5fdded729f49f8dbd82a4953d060002a38",
[]
Expand Down Expand Up @@ -380895,7 +380912,7 @@
[]
],
"pointerevent_contextmenu_is_a_pointerevent.html.ini": [
"a2c6066fd08feca5b04cde504552a920df0e42e6",
"8b54c2e03bcc4ddd143a8ca30188cbfbfb1a0c89",
[]
],
"pointerevent_fractional_coordinates.html.ini": [
Expand Down Expand Up @@ -381383,7 +381400,7 @@
[]
],
"modulepreload-as.html.ini": [
"336d2480ac917ae4a0b4134f2d60f0421949c94d",
"2c0f0a40c06d1df7e019c94e337bb21e76e51943",
[]
],
"modulepreload-expected.txt": [
Expand Down Expand Up @@ -396151,7 +396168,7 @@
[]
],
"full-cycle-test.https.any.js.ini": [
"5aa0dd339983f306f8a4233d32a3245a618350b1",
"32114a16db46455a5aaae321e722fb60c96c1783",
[]
],
"h264.annexb": [
Expand Down Expand Up @@ -396187,7 +396204,7 @@
[]
],
"reconfiguring-encoder.https.any.js.ini": [
"1f7e751a15d59bc88db8a185ad895a758fceedce",
"bdea86ee7cc56b7294b42ebb3c01d44e8abfd4ee",
[]
],
"sfx-aac.mp4": [
Expand Down Expand Up @@ -549739,7 +549756,7 @@
},
"rendering": {
"dimension-attributes.html": [
"f3dc8f8171807c3940930a25dff56b1245adee7f",
"1d94205e0b1ee6eab918ab7f32af7634ff5a0bf9",
[
null,
{
Expand Down Expand Up @@ -559201,7 +559218,7 @@
]
],
"popover-light-dismiss.html": [
"59a12a2c9ac18e8eefe603c481057074541109a5",
"0f206f1c700a5fd4def13f49ee927e4526fa1e56",
[
null,
{
Expand Down
@@ -1,3 +1,4 @@
[backdrop-filters-saturate.html]
expected:
if (product == "content_shell") and (os == "mac") and (port == "mac12-arm64"): FAIL
if (product == "content_shell") and (os == "mac") and (port == "mac10.15"): FAIL
@@ -0,0 +1,11 @@
<!DOCTYPE html>
<meta charset="utf-8">
<iframe srcdoc='
<script>
let a = new Blob(["a", "𢕾"], {})
let b = new Response(a)
try { let _ = b.body } catch (e) { }
frameElement.remove()
b.json().catch(() => {})
</script>
'></iframe>
@@ -0,0 +1,2 @@
[body-window-destroy.html]
expected: CRASH
Expand Up @@ -6,6 +6,10 @@
expected:
if product == "chrome": [ERROR, OK]

[iframe-popup-to-so.https.html?5-5]
expected:
if product == "chrome": [ERROR, OK]

[iframe-popup-to-so.https.html?7-7]
expected:
if product == "chrome": [ERROR, OK, CRASH]
Expand Down
@@ -1,5 +1,5 @@
This is a testharness.js-based test.
Found 1720 tests; 1704 PASS, 16 FAIL, 0 TIMEOUT, 0 NOTRUN.
Found 1720 tests; 1713 PASS, 7 FAIL, 0 TIMEOUT, 0 NOTRUN.
PASS <hr width="200"> mapping to <hr> width property
PASS <hr width="1007"> mapping to <hr> width property
PASS <hr width=" 00523 "> mapping to <hr> width property
Expand Down Expand Up @@ -736,6 +736,9 @@ PASS <table height="200.25%"> mapping to <table> height property
PASS <table height="200.%"> mapping to <table> height property
PASS <table height="20.25e2"> mapping to <table> height property
PASS <table height="20.25E2"> mapping to <table> height property
PASS <table height="0"> mapping to <table> height property
PASS <table height="0%"> mapping to <table> height property
PASS <table height="0px"> mapping to <table> height property
PASS <table height="-0"> mapping to <table> height property
PASS <table height="-0%"> mapping to <table> height property
PASS <table height="-200"> mapping to <table> height property
Expand All @@ -757,9 +760,6 @@ PASS <table height=".%"> mapping to <table> height property
PASS <table height=".x"> mapping to <table> height property
PASS <table height=".5"> mapping to <table> height property
PASS <table height=".5%"> mapping to <table> height property
FAIL <table height="0"> mapping to <table> height property assert_equals: expected "auto" but got "0px"
FAIL <table height="0%"> mapping to <table> height property assert_equals: expected "auto" but got "0%"
FAIL <table height="0px"> mapping to <table> height property assert_equals: expected "auto" but got "0px"
PASS <tr height="200"> mapping to <tr> height property
PASS <tr height="1007"> mapping to <tr> height property
PASS <tr height=" 00523 "> mapping to <tr> height property
Expand All @@ -776,6 +776,9 @@ PASS <tr height="200.25%"> mapping to <tr> height property
PASS <tr height="200.%"> mapping to <tr> height property
PASS <tr height="20.25e2"> mapping to <tr> height property
PASS <tr height="20.25E2"> mapping to <tr> height property
PASS <tr height="0"> mapping to <tr> height property
PASS <tr height="0%"> mapping to <tr> height property
PASS <tr height="0px"> mapping to <tr> height property
PASS <tr height="-0"> mapping to <tr> height property
PASS <tr height="-0%"> mapping to <tr> height property
PASS <tr height="-200"> mapping to <tr> height property
Expand All @@ -797,9 +800,6 @@ PASS <tr height=".%"> mapping to <tr> height property
PASS <tr height=".x"> mapping to <tr> height property
PASS <tr height=".5"> mapping to <tr> height property
PASS <tr height=".5%"> mapping to <tr> height property
FAIL <tr height="0"> mapping to <tr> height property assert_equals: expected "auto" but got "0px"
FAIL <tr height="0%"> mapping to <tr> height property assert_equals: expected "auto" but got "0%"
FAIL <tr height="0px"> mapping to <tr> height property assert_equals: expected "auto" but got "0px"
PASS <col width="200"> mapping to <col> width property
PASS <col width="1007"> mapping to <col> width property
PASS <col width=" 00523 "> mapping to <col> width property
Expand All @@ -816,6 +816,9 @@ PASS <col width="200.25%"> mapping to <col> width property
PASS <col width="200.%"> mapping to <col> width property
PASS <col width="20.25e2"> mapping to <col> width property
PASS <col width="20.25E2"> mapping to <col> width property
PASS <col width="0"> mapping to <col> width property
PASS <col width="0%"> mapping to <col> width property
PASS <col width="0px"> mapping to <col> width property
PASS <col width="-0"> mapping to <col> width property
PASS <col width="-0%"> mapping to <col> width property
PASS <col width="-200"> mapping to <col> width property
Expand All @@ -837,9 +840,6 @@ PASS <col width=".%"> mapping to <col> width property
PASS <col width=".x"> mapping to <col> width property
PASS <col width=".5"> mapping to <col> width property
PASS <col width=".5%"> mapping to <col> width property
FAIL <col width="0"> mapping to <col> width property assert_equals: expected "auto" but got "0px"
FAIL <col width="0%"> mapping to <col> width property assert_equals: expected "auto" but got "0%"
FAIL <col width="0px"> mapping to <col> width property assert_equals: expected "auto" but got "0px"
PASS <embed hspace="200"> mapping to <embed> marginLeft property
PASS <embed hspace="1007"> mapping to <embed> marginLeft property
PASS <embed hspace=" 00523 "> mapping to <embed> marginLeft property
Expand Down
Expand Up @@ -137,17 +137,10 @@
[ newElem("img"), "height", "height", true ],
[ newElem("td"), "width", "width", false ],
[ newElem("td"), "height", "height", false ],
// https://github.com/whatwg/html/issues/4715 tracks the fact that for
// <table width> and <table height> the "0 is valid" boolean should probably
// be true.
[ newElem("table"), "width", "width", false ],
[ newElem("table"), "height", "height", false ],
// https://github.com/whatwg/html/issues/4716 tracks the fact that for the
// <tr height> case that "0 is valid" boolean should probably be true.
[ newElem("tr"), "height", "height", false ],
// https://github.com/whatwg/html/issues/4717 tracks the fact that for the
// <col width> case that "0 is valid" boolean should probably be true.
[ newElem("col"), "width", "width", false ],
[ newElem("table"), "height", "height", true ],
[ newElem("tr"), "height", "height", true ],
[ newElem("col"), "width", "width", true ],
[ newElem("embed"), "hspace", "marginLeft", true ],
[ newElem("embed"), "hspace", "marginRight", true ],
[ newElem("embed"), "vspace", "marginTop", true ],
Expand Down
@@ -0,0 +1,4 @@
[track-cues-sorted-before-dispatch.html]
[All events are triggered in chronological order]
expected:
if (product == "content_shell") and (os == "mac") and (port == "mac11"): FAIL
Expand Up @@ -587,3 +587,30 @@
p20.hidePopover(); // Cleanup
},'Show an unrelated popover during "hide popover"');
</script>

<div id=p21 popover>21
<div id=p22 popover>22</div>
<div id=p23 popover>23</div>
<div id=p24 popover>24</div>
</div>

<script>
promise_test(async () => {
p21.showPopover();
p22.showPopover();
let events = [];
const logEvents = (e) => { events.push(`${e.newState === 'open' ? 'show' : 'hide'} ${e.target.id}`) };
p22.addEventListener('beforetoggle', (e) => {
logEvents(e);
p24.showPopover()
});
p23.addEventListener('beforetoggle', logEvents);
p24.addEventListener('beforetoggle', logEvents);
p23.showPopover();
assert_array_equals(events, ['show p23', 'hide p22', 'show p24'], 'hiding p24 does not fire event');
assert_false(p22.matches(':popover-open'));
assert_true(p23.matches(':popover-open'));
assert_false(p24.matches(':popover-open'));
p21.hidePopover(); // Cleanup
},'Show other auto popover during "hide all popover until"');
</script>
@@ -1,6 +1,4 @@
[pointerevent_contextmenu_is_a_pointerevent.html?touch]
expected:
if product == "chrome": CRASH
TIMEOUT
expected: TIMEOUT
[contextmenu is a PointerEvent]
expected: NOTRUN

0 comments on commit 753915b

Please sign in to comment.