Skip to content

Commit

Permalink
Import wpt@fccee581c61d9c1e7a451bf1c0e7999b9f625c01
Browse files Browse the repository at this point in the history
Using wpt-import in Chromium 7f7fd57.
With Chromium commits locally applied on WPT:
188e75e "[@container] Feature check tests with container-type:size"
fe54a37 "Rename CookieStore wpt tests to remove `.tentative.` infix."


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:
rego@igalia.com:
  external/wpt/css/css-ui

NOAUTOREVERT=true

No-Export: true
Change-Id: Ia53aa76bb91bc0f114a1c8ef3d7a5a7b91f05467
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3321943
Commit-Queue: WPT Autoroller <wpt-autoroller@chops-service-accounts.iam.gserviceaccount.com>
Reviewed-by: Weizhong Xia <weizhong@google.com>
Commit-Queue: Weizhong Xia <weizhong@google.com>
Cr-Commit-Position: refs/heads/main@{#949573}
  • Loading branch information
Chromium WPT Sync authored and Chromium LUCI CQ committed Dec 8, 2021
1 parent 4a6248c commit c57281a
Show file tree
Hide file tree
Showing 15 changed files with 713 additions and 8 deletions.
9 changes: 9 additions & 0 deletions third_party/blink/web_tests/TestExpectations
Expand Up @@ -2985,6 +2985,15 @@ crbug.com/626703 virtual/plz-dedicated-worker/external/wpt/service-workers/servi
crbug.com/626703 external/wpt/preload/preload-resource-match.https.html [ Failure ]

# ====== New tests from wpt-importer added here ======
crbug.com/626703 [ Mac10.14 ] virtual/threaded/external/wpt/scroll-animations/css/at-scroll-timeline-default-descriptors-iframe.html [ Failure ]
crbug.com/626703 [ Mac10.15 ] virtual/threaded/external/wpt/scroll-animations/css/at-scroll-timeline-default-descriptors-iframe.html [ Failure ]
crbug.com/626703 [ Mac11 ] virtual/threaded/external/wpt/scroll-animations/css/at-scroll-timeline-default-descriptors-iframe.html [ Failure ]
crbug.com/626703 [ Mac11-arm64 ] virtual/threaded/external/wpt/scroll-animations/css/at-scroll-timeline-default-descriptors-iframe.html [ Failure ]
crbug.com/626703 virtual/threaded/external/wpt/scroll-animations/css/at-scroll-timeline-default-descriptors-quirks-mode.html [ Failure ]
crbug.com/626703 virtual/threaded/external/wpt/scroll-animations/css/at-scroll-timeline-default-descriptors-writing-mode-rl.html [ Failure ]
crbug.com/626703 virtual/threaded/external/wpt/scroll-animations/css/at-scroll-timeline-default-descriptors.html [ Failure ]
crbug.com/626703 virtual/threaded/external/wpt/scroll-animations/css/at-scroll-timeline-frame-size-changed.html [ Failure ]
crbug.com/626703 virtual/threaded/external/wpt/scroll-animations/css/at-scroll-timeline-inline-orientation.html [ Failure ]
crbug.com/626703 [ Mac10.15 ] virtual/plz-dedicated-worker/external/wpt/html/cross-origin-embedder-policy/reporting-subresource-corp.https.html [ Skip Timeout ]
crbug.com/626703 [ Mac10.12 ] virtual/fenced-frame-mparch/wpt_internal/fenced_frame/presentation-receiver.https.html [ Crash Failure ]
crbug.com/626703 [ Mac10.12 ] external/wpt/websockets/constructor/009.html?wpt_flags=h2 [ Crash Failure ]
Expand Down
116 changes: 116 additions & 0 deletions third_party/blink/web_tests/external/WPT_BASE_MANIFEST_8.json
Expand Up @@ -213054,6 +213054,86 @@
]
},
"scroll-animations": {
"css": {
"at-scroll-timeline-default-descriptors-iframe.html": [
"ddb06693c77d80cdcde9b4cecb13cfdad7ef20bf",
[
null,
[
[
"/scroll-animations/css/at-scroll-timeline-default-descriptors-iframe-ref.html",
"=="
]
],
{}
]
],
"at-scroll-timeline-default-descriptors-quirks-mode.html": [
"1bba34d5866a2dfc581d8f1a97c16d0fd2344a6c",
[
null,
[
[
"/scroll-animations/css/at-scroll-timeline-default-descriptors-ref.html",
"=="
]
],
{}
]
],
"at-scroll-timeline-default-descriptors-writing-mode-rl.html": [
"4d276497bc685ceba6ebece2df70f8dc8478c351",
[
null,
[
[
"/scroll-animations/css/at-scroll-timeline-default-descriptors-writing-mode-rl-ref.html",
"=="
]
],
{}
]
],
"at-scroll-timeline-default-descriptors.html": [
"58225341938822b6d9ff5d13034b1dc7617cd183",
[
null,
[
[
"/scroll-animations/css/at-scroll-timeline-default-descriptors-ref.html",
"=="
]
],
{}
]
],
"at-scroll-timeline-frame-size-changed.html": [
"e41af998c26ef375e6ce990b6dfba90200796c3e",
[
null,
[
[
"/scroll-animations/css/at-scroll-timeline-frame-size-changed-ref.html",
"=="
]
],
{}
]
],
"at-scroll-timeline-inline-orientation.html": [
"ca6ef1c3f7ae8d7cf5edb4aa3097facdad0843f1",
[
null,
[
[
"/scroll-animations/css/at-scroll-timeline-inline-orientation-ref.html",
"=="
]
],
{}
]
]
},
"scroll-timelines": {
"animation-with-animatable-interface.html": [
"b04aaf2d336eeb3d7ddc8cfebbe4f902d3ef94f0",
Expand Down Expand Up @@ -300692,6 +300772,26 @@
[]
],
"css": {
"at-scroll-timeline-default-descriptors-iframe-ref.html": [
"b05627d99400026dde2c568788a90a25af81f932",
[]
],
"at-scroll-timeline-default-descriptors-ref.html": [
"b72a4e8b733a57e119d01366cf44f32f28f0ca97",
[]
],
"at-scroll-timeline-default-descriptors-writing-mode-rl-ref.html": [
"2ea7d17577c2af1943f01784625a07dbea4e1605",
[]
],
"at-scroll-timeline-frame-size-changed-ref.html": [
"745c2f5472ee59f6a5bcaccff0a1181763bf720a",
[]
],
"at-scroll-timeline-inline-orientation-ref.html": [
"e87901e30a2c43b3d7e77c78805b1a6db87a920d",
[]
],
"scroll-timeline-cssom.tentative-expected.txt": [
"116f38ce142edb0efb004461c1a8a9a314c36283",
[]
Expand Down Expand Up @@ -369506,6 +369606,15 @@
{}
]
],
"user-select-001.html": [
"35febc38bb0bebd0d1ada8c63a6ff4e27a8727f3",
[
null,
{
"testdriver": true
}
]
],
"webkit-appearance-parsing.html": [
"0f08eab222493a123fd5a44afce3689385a42390",
[
Expand Down Expand Up @@ -432265,6 +432374,13 @@
{}
]
],
"coop-sandbox-redirects-cuts-opener.https.html": [
"01f60b425dbea78909c075382246d475c341dfde",
[
null,
{}
]
],
"coop-sandbox.https.html": [
"6f250c1b0920808f519ee1278920215981fcd5e6",
[
Expand Down
@@ -0,0 +1,42 @@
<!DOCTYPE html>
<html>
<meta charset="utf-8">
<title>CSS Basic User Interface Test: Block children of a inline parent with "user-select:text" should be selectable even with a user-select: none ancestor</title>
<link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com">
<link rel="author" title="Mozilla" href="https://www.mozilla.org/">
<link rel="help" href="https://drafts.csswg.org/css-ui/#propdef-user-select">
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1743074">

<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/testdriver.js"></script>
<script src="/resources/testdriver-actions.js"></script>
<script src='/resources/testdriver-vendor.js'></script>

<style>
:root {
user-select: none;
}
</style>

<span style="user-select: text">
<div>Let's select this <b id="target">word</b></div>
</span>

<script>
promise_test(async function() {
let target = document.getElementById("target");
let actions = new test_driver.Actions();

// Simulate a double click to select a word.
await actions.pointerMove(5, 5, {origin: target})
.pointerDown()
.pointerUp()
.pointerDown()
.pointerUp()
.send();
assert_equals(window.getSelection().toString(), "word",
"The text 'word' should be selectable.")
}, "Select the text 'word'");
</script>
</html>
@@ -0,0 +1,33 @@
<!DOCTYPE html>
<title>Reference for default @scroll-timeline</title>
<iframe width="400" height="400" srcdoc='
<html>
<style>
html {
min-height: 100%;
padding-bottom: 100px;
}
#box {
width: 100px;
height: 100px;
background-color: green;
transform: translateY(100px);
}
* {
margin-top: 0px;
margin-bottom: 0px;
}
</style>
<script>
window.addEventListener("load", function() {
// Move the scroller to halfway.
const scroller = document.scrollingElement;
const maxScroll = scroller.scrollHeight - scroller.clientHeight;
scroller.scrollTop = 0.5 * maxScroll;
});
</script>
<div id="box"></div>
</html>
'></iframe>
@@ -0,0 +1,69 @@
<!DOCTYPE HTML>
<html class="reftest-wait">
<title>The default scroll-timeline at rule in the iframe</title>
<link rel="help" href="https://drafts.csswg.org/scroll-animations-1/#scroll-timeline-at-rule">
<link rel="help" href="https://drafts.csswg.org/css-animations-2/#animation-timeline">
<meta name="assert" content="CSS animation correctly updates values when using the default scroll-timeline at rule">
<link rel="match" href="at-scroll-timeline-default-descriptors-iframe-ref.html">

<iframe id="target" width="400" height="400" srcdoc='
<html>
<style>
@keyframes update {
from { transform: translateY(0px); }
to { transform: translateY(200px); }
}
@scroll-timeline test-timeline {
source: auto;
orientation: auto;
scroll-offsets: none;
}
html {
min-height: 100%;
padding-bottom: 100px;
}
#box {
width: 100px;
height: 100px;
background-color: green;
animation: update 1s linear;
animation-timeline: test-timeline;
}
#covered {
width: 100px;
height: 100px;
background-color: red;
}
* {
margin-top: 0px;
margin-bottom: 0px;
}
</style>
<script>
window.addEventListener("load", function() {
const scroller = document.scrollingElement;
// Move the scroller to the halfway point.
const maxScroll = scroller.scrollHeight - scroller.clientHeight;
scroller.scrollTop = 0.5 * maxScroll;
window.requestAnimationFrame(() => {
window.parent.postMessage("success", "*");
});
});
</script>
<body>
<div id="box"></div>
<div id="covered"></div>
</body>
</html>
'></iframe>

<script>
window.addEventListener("message", event => {
if (event.data == "success") {
document.documentElement.classList.remove("reftest-wait");
}
}, false);
</script>
@@ -0,0 +1,60 @@
<html class="reftest-wait">
<title>The default scroll-timeline at rule in quirks mode</title>
<link rel="help" href="https://drafts.csswg.org/scroll-animations-1/#scroll-timeline-at-rule">
<link rel="help" href="https://drafts.csswg.org/css-animations-2/#animation-timeline">
<meta name="assert" content="CSS animation correctly updates values when using the default scroll-timeline at rule">
<link rel="match" href="at-scroll-timeline-default-descriptors-ref.html">

<style>
@keyframes update {
from { transform: translateY(0px); }
to { transform: translateY(200px); }
}

@scroll-timeline test-timeline {
source: auto;
orientation: auto;
scroll-offsets: none;
}

html {
min-height: 100%;
padding-bottom: 100px;
}

#box {
width: 100px;
height: 100px;
background-color: green;
animation: update 1s linear;
animation-timeline: test-timeline;
}

#covered {
width: 100px;
height: 100px;
background-color: red;
}

* {
margin-top: 0px;
margin-bottom: 0px;
}
</style>

<div id="box"></div>
<div id="covered"></div>

<script>
window.addEventListener('load', function() {
const scroller = document.scrollingElement;

// Move the scroller to the halfway point.
const maxScroll = scroller.scrollHeight - scroller.clientHeight;
scroller.scrollTop = 0.5 * maxScroll;

window.requestAnimationFrame(() => {
document.documentElement.classList.remove("reftest-wait");
});
});
</script>
@@ -0,0 +1,31 @@
<!DOCTYPE html>
<title>Reference for default @scroll-timeline</title>
<style>
html {
min-height: 100%;
padding-bottom: 100px;
}

#box {
width: 100px;
height: 100px;
background-color: green;
transform: translateY(100px);
}

* {
margin-top: 0px;
margin-bottom: 0px;
}
</style>

<div id="box"></div>

<script>
window.addEventListener('load', function() {
// Move the scroller to halfway.
const scroller = document.scrollingElement;
const maxScroll = scroller.scrollHeight - scroller.clientHeight;
scroller.scrollTop = 0.5 * maxScroll;
});
</script>

0 comments on commit c57281a

Please sign in to comment.