Skip to content

Commit

Permalink
Import wpt@8fda756656d4629e5e21021bf06ca27ba4dcdb4c
Browse files Browse the repository at this point in the history
Using wpt-import in Chromium 9096f87.
With Chromium commits locally applied on WPT:
b6d84ae "[@layer] Implement layer serialization in @import rules"


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:
drott@chromium.org:
  external/wpt/css/css-text-decor

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

No-Export: true
Change-Id: I62fa98210f84945331823af5e2a062208f0cf4b0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3268224
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@{#939367}
  • Loading branch information
Chromium WPT Sync authored and Chromium LUCI CQ committed Nov 8, 2021
1 parent 239c4cd commit fb82331
Show file tree
Hide file tree
Showing 15 changed files with 333 additions and 31 deletions.
1 change: 1 addition & 0 deletions third_party/blink/web_tests/TestExpectations
Expand Up @@ -2980,6 +2980,7 @@ crbug.com/626703 fast/animation/scroll-animations/scrolltimeline-root-scroller-q
crbug.com/626703 virtual/plz-dedicated-worker/external/wpt/service-workers/service-worker/navigation-timing-extended.https.html [ Failure ]

# ====== New tests from wpt-importer added here ======
crbug.com/626703 [ Win10.20h2 ] external/wpt/web-locks/bfcache/abort.tentative.https.html [ Failure Skip Timeout ]
crbug.com/626703 external/wpt/css/css-backgrounds/border-image-width-should-extend-to-padding.html [ Failure ]
crbug.com/626703 virtual/threaded/external/wpt/css/css-backgrounds/border-image-width-should-extend-to-padding.html [ Failure ]
crbug.com/626703 [ Linux ] external/wpt/custom-elements/form-associated/ElementInternals-validation.html [ Crash Failure ]
Expand Down
68 changes: 60 additions & 8 deletions third_party/blink/web_tests/external/WPT_BASE_MANIFEST_8.json
Expand Up @@ -163185,6 +163185,19 @@
{}
]
],
"text-decoration-line-through-wavy-covers-whole-line-length-001.html": [
"20837062ac1d1053cc585e7bc461b879e382366d",
[
null,
[
[
"/css/css-text-decor/reference/text-decoration-wavy-covers-whole-line-length-001-notref.html",
"!="
]
],
{}
]
],
"text-decoration-line.html": [
"792bda47fa020f82a2e7962570a8c0c0b462f6a4",
[
Expand All @@ -163198,6 +163211,19 @@
{}
]
],
"text-decoration-overline-wavy-covers-whole-line-length-001.html": [
"4dfd0901733c1730a59ff3c29964938412174526",
[
null,
[
[
"/css/css-text-decor/reference/text-decoration-wavy-covers-whole-line-length-001-notref.html",
"!="
]
],
{}
]
],
"text-decoration-propagation-display-contents.html": [
"d77dfe55b19be6e9a66b2085d80a45c6e16c55ee",
[
Expand Down Expand Up @@ -163712,6 +163738,19 @@
{}
]
],
"text-decoration-underline-wavy-covers-whole-line-length-001.html": [
"9ff8cd00b2d514efda5bad117d2751dc8749c178",
[
null,
[
[
"/css/css-text-decor/reference/text-decoration-wavy-covers-whole-line-length-001-notref.html",
"!="
]
],
{}
]
],
"text-emphasis-color-001.xht": [
"b393c039372bff4ad9ca94e7c38fa2a9935ad53f",
[
Expand Down Expand Up @@ -256620,6 +256659,10 @@
"2370054a8fbd5cb8c00bfb95401129d01de38d00",
[]
],
"text-decoration-wavy-covers-whole-line-length-001-notref.html": [
"43ba81451d53b87640906aea3e73eae92b4d6977",
[]
],
"text-emphasis-color-001-ref.xht": [
"b38d04110e361bfb3e08e444b92d993e26e8b25c",
[]
Expand Down Expand Up @@ -272935,7 +272978,7 @@
[]
],
"helper.sub.js": [
"ba34a0b15a8c5e875e48bc494a3dd69c5c8d8f5d",
"b2087d9de507ede95c59a3862696603ef1e20e41",
[]
]
}
Expand Down Expand Up @@ -305074,15 +305117,15 @@
],
"bfcache": {
"abort.tentative.https-expected.txt": [
"895528b4f6002e501890f61e0d3c7d772fdc0926",
"6ab7a4a7862c9a0a05628326d96e0d173204f2bf",
[]
],
"helpers.js": [
"7997f982a8f748281c21e1be05c9c74407600fe2",
[]
],
"release.tentative.https-expected.txt": [
"c41ff93a132347adf5017e53e369f54c7a3f9ced",
"dc5d3a9f22bdddeb241a4fcc13dc5aa10413bce5",
[]
]
},
Expand Down Expand Up @@ -305112,7 +305155,7 @@
[]
],
"worker.js": [
"af5c73411279dd8675152f69c8f0613fd609ffea",
"cc71631ba6fa22b126bf39d399f8db991d74a267",
[]
]
}
Expand Down Expand Up @@ -503241,7 +503284,7 @@
],
"bfcache": {
"abort.tentative.https.html": [
"678d8b69a8c1d5ab82dc64b6d2fc15b106c09597",
"59231f9fe9f987c91de8cd7f77e19772905072ef",
[
null,
{
Expand All @@ -503250,7 +503293,7 @@
]
],
"held.tentative.https.html": [
"cfd89d65a73e7cbb4fed03cb60da04e2209e9072",
"dc35e5facaba26a91faf80bcb085a30aac6d2e4c",
[
null,
{
Expand All @@ -503259,7 +503302,7 @@
]
],
"release-across-thread.tentative.https.html": [
"6568d2731e0d08846352d46bef559a36787ab18c",
"cf5b914cee40dc918786810121ca3f3521436a9d",
[
null,
{
Expand All @@ -503268,7 +503311,16 @@
]
],
"release.tentative.https.html": [
"d117270940053db78a57ec2f3b8458f400ff995c",
"928073919c0ae4d6345b8639feb01e39b6b186e2",
[
null,
{
"timeout": "long"
}
]
],
"sharedworker-multiple.tentative.https.html": [
"febb0e1781e39aca64b8b7aa23ba709924dc2a03",
[
null,
{
Expand Down
@@ -0,0 +1,5 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Text Decoration Test: Wavy decorations covers the whole line length mismatch reference file</title>
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
<p>The test passes if you see some green below (the end of a wavy green text decoration).</p>
@@ -0,0 +1,38 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Text Decoration Test: Wavy line-through covers the whole line length</title>
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
<link rel="help" href="https://drafts.csswg.org/css-text-decor-4/#text-decoration-line-property">
<meta name="assert" content="Checks that a wavy line-through covers the whole line length.">
<link rel="mismatch" href="reference/text-decoration-wavy-covers-whole-line-length-001-notref.html">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
<style>
body {
overflow: hidden;
}
#wrapper {
position: absolute;
margin: 100px;
}
#decoration {
font: 400px/1 Ahem;
color: transparent;
text-decoration-line: line-through;
text-decoration-color: green;
text-decoration-style: wavy;
text-decoration-skip-ink: none;
}
#abspos {
position: absolute;
left: -100px;
top: -100px;
width: 480px;
height: 1000px;
background: white;
}
</style>
<p>The test passes if you see some green below (the end of a wavy green text decoration).</p>
<div id="wrapper">
<div id="decoration">X</div>
<div id="abspos"></div>
</div>
@@ -0,0 +1,39 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Text Decoration Test: Wavy overline covers the whole line length</title>
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
<link rel="help" href="https://drafts.csswg.org/css-text-decor-4/#text-decoration-line-property">
<meta name="assert" content="Checks that a wavy overline covers the whole line length.">
<link rel="mismatch" href="reference/text-decoration-wavy-covers-whole-line-length-001-notref.html">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
<style>
body {
overflow: hidden;
}
#wrapper {
position: absolute;
margin: 100px;
padding-top: 200px;
}
#decoration {
font: 400px/1 Ahem;
color: transparent;
text-decoration-line: overline;
text-decoration-color: green;
text-decoration-style: wavy;
text-decoration-skip-ink: none;
}
#abspos {
position: absolute;
left: -100px;
top: -100px;
width: 480px;
height: 1000px;
background: white;
}
</style>
<p>The test passes if you see some green below (the end of a wavy green text decoration).</p>
<div id="wrapper">
<div id="decoration">X</div>
<div id="abspos"></div>
</div>
@@ -0,0 +1,38 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Text Decoration Test: Wavy underline covers the whole line length</title>
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
<link rel="help" href="https://drafts.csswg.org/css-text-decor-4/#text-decoration-line-property">
<meta name="assert" content="Checks that a wavy underline covers the whole line length.">
<link rel="mismatch" href="reference/text-decoration-wavy-covers-whole-line-length-001-notref.html">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
<style>
body {
overflow: hidden;
}
#wrapper {
position: absolute;
margin: 100px;
}
#decoration {
font: 400px/1 Ahem;
color: transparent;
text-decoration-line: underline;
text-decoration-color: green;
text-decoration-style: wavy;
text-decoration-skip-ink: none;
}
#abspos {
position: absolute;
left: -100px;
top: -100px;
width: 480px;
height: 1000px;
background: white;
}
</style>
<p>The test passes if you see some green below (the end of a wavy green text decoration).</p>
<div id="wrapper">
<div id="decoration">X</div>
<div id="abspos"></div>
</div>
Expand Up @@ -104,6 +104,26 @@ function runEventTest(params, description) {
runBfcacheTest(params, description);
}

async function navigateAndThenBack(pageA, pageB, urlB) {
await pageA.execute_script(
(url) => {
prepareNavigation(() => {
location.href = url;
});
},
[urlB]
);

await pageB.execute_script(waitForPageShow);
await pageB.execute_script(
() => {
prepareNavigation(() => { history.back(); });
}
);

await pageA.execute_script(waitForPageShow);
}

function runBfcacheTest(params, description) {
const defaultParams = {
openFunc: url => window.open(url, '_blank', 'noopener'),
Expand Down Expand Up @@ -132,27 +152,12 @@ function runBfcacheTest(params, description) {
const script = document.createElement("script");
script.src = src;
document.head.append(script);
return new Promise(resolve => script.onload = resolve);
}, [src]);
}

await pageA.execute_script(params.funcBeforeNavigation);
await pageA.execute_script(
(url) => {
prepareNavigation(() => {
location.href = url;
});
},
[urlB]
);

await pageB.execute_script(waitForPageShow);
await pageB.execute_script(
() => {
prepareNavigation(() => { history.back(); });
}
);

await pageA.execute_script(waitForPageShow);
await navigateAndThenBack(pageA, pageB, urlB);

if (params.shouldBeCached) {
await assert_bfcached(pageA);
Expand Down
@@ -1,6 +1,7 @@
This is a testharness.js-based test.
NOTRUN An immediately aborted lock on main thread should not prevent bfcache Should be BFCached but actually wasn't
NOTRUN An aborted lock on a worker should not prevent bfcache Should be BFCached but actually wasn't
NOTRUN An aborted lock on a nested worker should not prevent bfcache Should be BFCached but actually wasn't
NOTRUN An immediately aborted lock on a worker should not prevent bfcache Should be BFCached but actually wasn't
NOTRUN An immediately aborted lock on a nested worker should not prevent bfcache Should be BFCached but actually wasn't
NOTRUN An immediately aborted lock on a shared worker should not prevent bfcache Should be BFCached but actually wasn't
Harness: the test ran to completion.

Expand Up @@ -35,7 +35,7 @@
});
},
shouldBeCached: true
}, "An aborted lock on a worker should not prevent bfcache");
}, "An immediately aborted lock on a worker should not prevent bfcache");

runWebLocksBfcacheTest({
funcBeforeNavigation: async () => {
Expand All @@ -47,5 +47,18 @@
});
},
shouldBeCached: true
}, "An aborted lock on a nested worker should not prevent bfcache");
}, "An immediately aborted lock on a nested worker should not prevent bfcache");

runWebLocksBfcacheTest({
funcBeforeNavigation: async () => {
window.worker = new SharedWorker("/web-locks/resources/worker.js");
worker.port.start();
await postToWorkerAndWait(worker.port, {
op: "request",
name: uniqueNameByQuery(),
abortImmediately: true
});
},
shouldBeCached: true
}, "An immediately aborted lock on a shared worker should not prevent bfcache");
</script>
Expand Up @@ -33,4 +33,13 @@
},
shouldBeCached: false
}, "A held lock on a nested worker must prevent bfcache");

runWebLocksBfcacheTest({
funcBeforeNavigation: async () => {
window.worker = new SharedWorker("/web-locks/resources/worker.js");
worker.port.start();
await postToWorkerAndWait(worker.port, { op: "request", name: uniqueNameByQuery() });
},
shouldBeCached: false
}, "A held lock on a shared worker must prevent bfcache");
</script>

0 comments on commit fb82331

Please sign in to comment.