Skip to content

Commit

Permalink
Upstream wpt_internal display-lock WPTs
Browse files Browse the repository at this point in the history
Some of these tests should have been upstreamed already, and some of
them test scroll to text fragment which I previously thought were not
tested in WPT.

This patch moves over everything that doesn't use content_shell internal
APIs which can't be move to WPT.

Change-Id: I59cb579202f82fbc3d9d1ef3433b75df0d29f74b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4957457
Reviewed-by: Vladimir Levin <vmpstr@chromium.org>
Commit-Queue: Joey Arhar <jarhar@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1212775}
  • Loading branch information
josepharhar authored and Chromium LUCI CQ committed Oct 20, 2023
1 parent 1fae420 commit 26b033c
Show file tree
Hide file tree
Showing 22 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
const fragment = '#:~:text=hiddentext';
const key = token();
test_driver.bless("Open a URL with a text fragment directive", () => {
window.open(`../resources/text-fragment-target-matchable.html?key=${key}${fragment}`,
window.open(`./resources/text-fragment-target-matchable.html?key=${key}${fragment}`,
'_blank',
'noopener');
});
Expand All @@ -33,7 +33,7 @@
const fragment = '#:~:text=start,end';
const key = token();
test_driver.bless("Open a URL with a text fragment directive", () => {
window.open(`../resources/text-fragment-target-matchable.html?key=${key}${fragment}`,
window.open(`./resources/text-fragment-target-matchable.html?key=${key}${fragment}`,
'_blank',
'noopener');
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<title>content-visibility changes after a delay</title>
<link rel="author" title="Vladimir Levin" href="mailto:vmpstr@chromium.org">
<link rel="help" href="https://github.com/WICG/display-locking">
<link rel="match" href="../container-ref.html">
<link rel="match" href="./resources/container-ref.html">
<meta name="assert" content="scrollIntoView has no effect on hidden=until-found">
<script src="/common/reftest-wait.js"></script>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<title>hidden=until-found does not paint</title>
<link rel="author" title="Vladimir Levin" href="mailto:vmpstr@chromium.org">
<link rel="help" href="https://github.com/WICG/display-locking">
<link rel="match" href="../container-ref.html">
<link rel="match" href="./resources/container-ref.html">
<meta name="assert" content="content-visibility subtrees are not painted">

<style>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<title>hidden=until-found + focus</title>
<link rel="author" title="Vladimir Levin" href="mailto:vmpstr@chromium.org">
<link rel="help" href="https://github.com/WICG/display-locking">
<link rel="match" href="../spacer-and-container-ref.html">
<link rel="match" href="./resources/spacer-and-container-ref.html">
<meta name="assert" content="focus does not scroll or focus element under hidden=until-found">
<script src="/common/reftest-wait.js"></script>

Expand Down

0 comments on commit 26b033c

Please sign in to comment.