Skip to content

Commit

Permalink
Bug 1937216 [wpt PR 49686] - [css-scroll-snap-2] Rename WPTs scroll-s…
Browse files Browse the repository at this point in the history
…tart-target to scroll-initial-*, a=testonly

Automatic update from web-platform-tests
[css-scroll-snap-2] Rename WPTs scroll-start-target to scroll-initial-*

This completes chromium's adoption of the CSS working group's
resolution[1] to rename scroll-start-target scroll-initial-target.

[1] w3c/csswg-drafts#11173 (comment)

Bug: 40909052
Change-Id: I9aa6717334432098e108c05351bb8446225fc3bf
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6089989
Reviewed-by: Steve Kobes <[email protected]>
Commit-Queue: David Awogbemila <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1396242}

--

wpt-commits: fd8bb33ca2493b086c7b92731aadcb9fc91fb947
wpt-pr: 49686
  • Loading branch information
David Awogbemila authored and moz-wptsync-bot committed Dec 18, 2024
1 parent 2987b62 commit 4803919
Show file tree
Hide file tree
Showing 18 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</head>

<body>
<iframe id="frame" src="scroll-start-target-with-anchor-navigation-inner-frame.html" onload="runTest()"></iframe>
<iframe id="frame" src="scroll-initial-target-with-anchor-navigation-inner-frame.html" onload="runTest()"></iframe>
<script>
function runTest() {
promise_test(async (t) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</head>

<body>
<iframe id="frame" src="scroll-start-target-with-fragment-navigation-inner-frame.html#fragment_target"
<iframe id="frame" src="scroll-initial-target-with-fragment-navigation-inner-frame.html#fragment_target"
onload="runTest()"></iframe>
<script>
function runTest() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
<div id="fragment_target">Target</div>
<script>
function stashResult(key, results) {
fetch(`/css/css-scroll-snap-2/scroll-start-target/stash.py?key=${key}`, {
fetch(`/css/css-scroll-snap-2/scroll-initial-target/stash.py?key=${key}`, {
method: "POST",
body: JSON.stringify(results)
}).then(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<body onload="runTest()">
<script>
function fetchResult(key, resolve, reject) {
fetch(`/css/css-scroll-snap-2/scroll-start-target/stash.py?key=${key}`).then(response => {
fetch(`/css/css-scroll-snap-2/scroll-initial-target/stash.py?key=${key}`).then(response => {
return response.text();
}).then(text => {
if (text) {
Expand All @@ -37,7 +37,7 @@
let key = token();

test_driver.bless("Open a URL with a text fragment directive", () => {
window.open(`scroll-start-target-with-text-fragment-navigation-target.html?key=${key}#:~:text=Target`, "_blank", "noopener");
window.open(`scroll-initial-target-with-text-fragment-navigation-target.html?key=${key}#:~:text=Target`, "_blank", "noopener");
});

fetchResult(key, resolve, reject);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
# found in the LICENSE file.
"""
This file allows the different windows created by
css/css-scroll-snap-2/scroll-start-target-with-text-fragment-navigation.html
css/css-scroll-snap-2/scroll-initial-target-with-text-fragment-navigation.html
to store and retrieve data.
scroll-start-target-with-text-fragment-navigation.html (test file) opens a window to
scroll-start-target-with-text-fragment-navigation-target.html which writes some data
scroll-initial-target-with-text-fragment-navigation.html (test file) opens a window to
scroll-initial-target-with-text-fragment-navigation-target.html which writes some data
which the test file will eventually read. This file handles the requests from
both windows.
"""
Expand All @@ -19,9 +19,9 @@ def main(request, response):

if request.method == u"POST":
# Received result data from target page
request.server.stash.put(key, request.body, u'/css/css-scroll-snap-2/scroll-start-target/')
request.server.stash.put(key, request.body, u'/css/css-scroll-snap-2/scroll-initial-target/')
return u"ok"
else:
# Request for result data from test page
value = request.server.stash.take(key, u'/css/css-scroll-snap-2/scroll-start-target/')
value = request.server.stash.take(key, u'/css/css-scroll-snap-2/scroll-initial-target/')
return value

0 comments on commit 4803919

Please sign in to comment.