Skip to content

Commit

Permalink
Import wpt@cd26ed81191bad4f548128a092a825a25d00de3a
Browse files Browse the repository at this point in the history
Using wpt-import in Chromium ffd99f4.
With Chromium commits locally applied on WPT:
30c99b3 "Support replaced content in repeated (NG) table sections."


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

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: Ic1d79920766f45dc37cff2aac963f414117f2d35
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3826925
Commit-Queue: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Auto-Submit: WPT Autoroller <wpt-autoroller@chops-service-accounts.iam.gserviceaccount.com>
Cr-Commit-Position: refs/heads/main@{#1034455}
  • Loading branch information
Chromium WPT Sync authored and Chromium LUCI CQ committed Aug 12, 2022
1 parent f4ae5be commit eb7c75f
Show file tree
Hide file tree
Showing 7 changed files with 237 additions and 3 deletions.
5 changes: 3 additions & 2 deletions third_party/blink/web_tests/TestExpectations
Expand Up @@ -3364,6 +3364,9 @@ crbug.com/626703 [ Win ] virtual/prerender/external/wpt/speculation-rules/preren
crbug.com/626703 [ Win ] virtual/partitioned-cookies/http/tests/inspector-protocol/network/disabled-cache-navigation.js [ Failure ]

# ====== New tests from wpt-importer added here ======
crbug.com/626703 [ Mac10.15 ] virtual/off-main-thread-css-paint/external/wpt/css/css-paint-api/background-image-tiled.https.html [ Failure ]
crbug.com/626703 [ Mac10.15 ] wpt_internal/navigation-api/ordering-and-transition/navigate-cross-document-double.html [ Timeout ]
crbug.com/626703 [ Mac12 ] wpt_internal/navigation-api/ordering-and-transition/navigate-cross-document-double.html [ Timeout ]
crbug.com/626703 [ Mac11-arm64 ] wpt_internal/navigation-api/ordering-and-transition/navigate-cross-document-double.html [ Timeout ]
crbug.com/626703 [ Mac10.15 ] virtual/off-main-thread-css-paint/external/wpt/css/css-paint-api/dynamic-import.https.html [ Failure ]
crbug.com/626703 external/wpt/custom-elements/form-associated/ElementInternals-target-element-is-held-strongly.html [ Timeout ]
Expand Down Expand Up @@ -7091,9 +7094,7 @@ crbug.com/1352209 [ Fuchsia ] wpt_internal/navigation-api/ordering-and-transitio
crbug.com/1352209 [ Linux ] wpt_internal/navigation-api/ordering-and-transition/navigate-cross-document-double.html [ Failure Pass ]
crbug.com/1352209 [ Mac10.13 ] wpt_internal/navigation-api/ordering-and-transition/navigate-cross-document-double.html [ Failure Pass ]
crbug.com/1352209 [ Mac10.14 ] wpt_internal/navigation-api/ordering-and-transition/navigate-cross-document-double.html [ Failure Pass ]
crbug.com/1352209 [ Mac10.15 ] wpt_internal/navigation-api/ordering-and-transition/navigate-cross-document-double.html [ Failure Pass ]
crbug.com/1352209 [ Mac11 ] wpt_internal/navigation-api/ordering-and-transition/navigate-cross-document-double.html [ Failure Pass ]
crbug.com/1352209 [ Mac12 ] wpt_internal/navigation-api/ordering-and-transition/navigate-cross-document-double.html [ Failure Pass ]
crbug.com/1352209 [ Mac12-arm64 ] wpt_internal/navigation-api/ordering-and-transition/navigate-cross-document-double.html [ Failure Pass ]
crbug.com/1352209 [ Win ] wpt_internal/navigation-api/ordering-and-transition/navigate-cross-document-double.html [ Failure Pass ]

Expand Down
2 changes: 1 addition & 1 deletion third_party/blink/web_tests/external/Version
@@ -1 +1 @@
Version: f1ef84ca14e9e7f18d82544dfa2191ccab027757
Version: cd26ed81191bad4f548128a092a825a25d00de3a
34 changes: 34 additions & 0 deletions third_party/blink/web_tests/external/WPT_BASE_MANIFEST_8.json
Expand Up @@ -831,6 +831,13 @@
null,
{}
]
],
"special-elements-crash.html": [
"469e53460efd04ca6df377d06ffb2fd71c781748",
[
null,
{}
]
]
},
"table-in-abspos-multicol-with-nested-meter-crash.html": [
Expand Down Expand Up @@ -87636,6 +87643,19 @@
{}
]
],
"image.tentative.html": [
"72fea010d0e4d87ba647e25a5b2f0f401f4a3c48",
[
null,
[
[
"/css/reference/ref-filled-green-100px-square.xht",
"=="
]
],
{}
]
],
"inline-block.tentative.html": [
"6dee47e375752e73e63030fd0c27951b966683d8",
[
Expand Down Expand Up @@ -522702,6 +522722,20 @@
{}
]
],
"svg-with-css-box-001.html": [
"4ec0a7de72f74650d4748f2819f865de7afd51cc",
[
null,
{}
]
],
"svg-with-css-box-002.svg": [
"3c009641db3a92f18cae8856890feb1027b58566",
[
null,
{}
]
],
"svg.html": [
"08c1cf9a3734990dbd9bc6c60ce723f24e897f99",
[
Expand Down
@@ -0,0 +1,91 @@
<!doctype html>
<title>ResizeObserver for SVG elements with CSS box.</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="./resources/resizeTestHelper.js"></script>
<div id="container" style="width: 500px; height: 500px;">
<svg id="svg" width="100%" viewBox="0 0 100 100">
<circle cx="50" cy="50" r="45" style="fill:orange;stroke:black;stroke-width:1" />
<foreignObject id="foreign" x="0" y="0" width="100" height="100">
<svg xmlns="http://www.w3.org/2000/svg"
width="100%" height="100%"
viewBox="0 0 100 100"
id="foreign-svg">
<circle cx="50" cy="50" r="45" style="fill:orange;stroke:black;stroke-width:1" />
</svg>
</foreignObject>
</svg>
<script>
'use strict';

function test0() {
let targetWidth = 150;
let target = document.getElementById('foreign-svg');
let container = document.getElementById('foreign');
let helper = new ResizeTestHelper(
"test0: observe `foreignObject` SVG in HTML document",
[
{
setup: observer => {
observer.observe(target);
},
notify: (entries, observer) => {
return true; // Delay next step
}
},
{
setup: observer => {
target.setAttribute('width', targetWidth);
},
notify: entries => {
assert_equals(entries.length, 1);
const entry = entries[0];
assert_equals(entry.target, target);
assert_equals(entry.contentBoxSize[0].inlineSize, targetWidth);
},
}
]);
return helper.start();
}

function test1() {
let targetWidth = 400;
let target = document.getElementById('svg');
let container = document.getElementById('container');
let helper = new ResizeTestHelper(
"test1: observe inline SVG in HTML",
[
{
setup: observer => {
observer.observe(target);
},
notify: (entries, observer) => {
return true; // Delay next step
}
},
{
setup: observer => {
target.style.width = targetWidth + 'px';
},
notify: (entries, observer) => {
assert_equals(entries.length, 1);
const entry = entries[0];
assert_equals(entry.target, target);
assert_equals(entry.contentBoxSize[0].inlineSize, targetWidth);
}
}
]);
return helper.start();
}

let guard;
test(_ => {
assert_implements(window.ResizeObserver);
guard = async_test('guard');
}, "ResizeObserver implemented")

test0()
.then(() => { test1(); })
.then(() => { guard.done(); });

</script>
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1,7 @@
This is a testharness.js-based test.
PASS ResizeObserver implemented
PASS guard
FAIL test0: observe `foreignObject` SVG in HTML document assert_unreached: Timed out waiting for notification. (1000ms) Reached unreachable code
FAIL test1: observe inline SVG in HTML assert_unreached: Timed out waiting for notification. (1000ms) Reached unreachable code
Harness: the test ran to completion.

@@ -0,0 +1,7 @@
This is a testharness.js-based test.
PASS ResizeObserver implemented
PASS guard
FAIL test0: Root SVG resize observed assert_unreached: Timed out waiting for notification. (1000ms) Reached unreachable code
FAIL test1: `foreignObject` SVG resize observed assert_unreached: Timed out waiting for notification. (1000ms) Reached unreachable code
Harness: the test ran to completion.

0 comments on commit eb7c75f

Please sign in to comment.