Import wpt@cce26e3757dcfd21629f3334072ce9c1292c4d9f
Using wpt-import in Chromium f5178f38e338e9ed7d1e527f26fb31fdc1e09bfd.
With Chromium commits locally applied on WPT:
6e358318d1 "[soft navigations] Ignore non-attributed LCP before softnav detection"
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:
japhet@chromium.org:
external/wpt/fetch
NOAUTOREVERT=true
No-Export: true
Validate-Test-Flakiness: skip
Cq-Include-Trybots: luci.chromium.try:linux-blink-rel
Cq-Include-Trybots: luci.chromium.try:linux-wpt-chromium-rel
Change-Id: Iaa04274c666ad7cae23c123694c1249ea847fb4e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5082617
Commit-Queue: Jonathan Lee <jonathanjlee@google.com>
Auto-Submit: WPT Autoroller <wpt-autoroller@chops-service-accounts.iam.gserviceaccount.com>
Reviewed-by: Jonathan Lee <jonathanjlee@google.com>
Cr-Commit-Position: refs/heads/main@{#1232554}
diff --git a/third_party/blink/web_tests/external/WPT_BASE_MANIFEST_8.json b/third_party/blink/web_tests/external/WPT_BASE_MANIFEST_8.json
index 4cbb0f5f..bfac17c 100644
--- a/third_party/blink/web_tests/external/WPT_BASE_MANIFEST_8.json
+++ b/third_party/blink/web_tests/external/WPT_BASE_MANIFEST_8.json
@@ -2604,6 +2604,13 @@
{}
]
],
+ "interleaved-bfc-crash.html": [
+ "30a619de67b0e13e73a866931a45e7796250c93a",
+ [
+ null,
+ {}
+ ]
+ ],
"margin-and-break-before-child-spanner.html": [
"8ec36250cf025b5ad98baf9029582a0f2252713b",
[
@@ -5730,6 +5737,13 @@
"fetch": {
"api": {
"crashtests": {
+ "aborted-fetch-response.https.html": [
+ "fa1ad1717f0060b82ef07d9d41ca650a0b9b186c",
+ [
+ null,
+ {}
+ ]
+ ],
"body-window-destroy.html": [
"646d3c5f8ce9e6591e6bd1eb2096e36d611a8899",
[
@@ -93567,6 +93581,19 @@
{}
]
],
+ "float-017.html": [
+ "5ca1f80a4e8b6061af99f2708f30398f7206e76d",
+ [
+ null,
+ [
+ [
+ "/css/css-break/float-017-ref.html",
+ "=="
+ ]
+ ],
+ {}
+ ]
+ ],
"float-in-self-collapsing-block-000.html": [
"e42d941e78ab45e9107ac49ee8c8c2b4c6d43c9d",
[
@@ -283818,6 +283845,32 @@
{}
]
],
+ "use-data-url-set-attributeName.tentative.svg": [
+ "248f218bd792e1ffd07711095b3612c45ecb7a6c",
+ [
+ null,
+ [
+ [
+ "/svg/struct/reftests/reference/green-100x100.svg",
+ "=="
+ ]
+ ],
+ {}
+ ]
+ ],
+ "use-data-url-setAttribute.tentative.html": [
+ "b28dd0ecf5b9e798ad8af8c5d6e2c01aea07b7e6",
+ [
+ null,
+ [
+ [
+ "/svg/struct/reftests/reference/green-100x100.html",
+ "=="
+ ]
+ ],
+ {}
+ ]
+ ],
"use-data-url.tentative.svg": [
"04414030a3e65ee05314386e90e75184e8c80042",
[
@@ -283896,6 +283949,19 @@
{}
]
],
+ "use-ref-inside-data-url.tentative.html": [
+ "d6ac2e3654a6f1ae2591c47415b38f8c279b3b37",
+ [
+ null,
+ [
+ [
+ "/svg/struct/reftests/reference/green-100x100.html",
+ "=="
+ ]
+ ],
+ {}
+ ]
+ ],
"use-same-origin.svg": [
"0aa1ec83afd68b3ea6022d33f6ec6f8103d99661",
[
@@ -305051,6 +305117,10 @@
"9e117c49c2bab5b8b2fbad4fcfc2eef13b5b8ab6",
[]
],
+ "float-017-ref.html": [
+ "2be6253c053294bed5309c9353f7dad32e795841",
+ []
+ ],
"float-with-large-margin-bottom-cross-page-001-print-ref.html": [
"dd78a266f426ba676446a78188fe4916348bfe31",
[]
@@ -345116,7 +345186,7 @@
[]
],
"print-reftests.md": [
- "62a037da124406872a3414c4719dbe1ec46a4e95",
+ "cbcd5e920b25d37fd67dcc218ceb14a89211a497",
[]
],
"python-handlers": {
@@ -386526,7 +386596,7 @@
[]
],
"soft-navigation-helper.js": [
- "685bc21f43c03482e9c0f8ac9a83137cc20df620",
+ "d405adb4e7eb7690fe73f31db523d357a38734ee",
[]
]
}
@@ -467785,6 +467855,13 @@
{}
]
],
+ "CSSStyleSheet-constructable-replace-cssRules.html": [
+ "adb1b5f70988a33a6535e9c27c9c86dffdb99aaf",
+ [
+ null,
+ {}
+ ]
+ ],
"CSSStyleSheet-constructable-replace-on-regular-sheet.html": [
"76bee452a661bb95908c66e176797dd62f918ab2",
[
@@ -566124,7 +566201,7 @@
]
],
"invoketarget-on-popover-behavior.tentative.html": [
- "9d9bbaee721edccef6bfca6f0b07f9eec1221227",
+ "03eba222855307009c4691a27002c6d2d13414cf",
[
null,
{
@@ -622047,6 +622124,24 @@
}
]
],
+ "image-lcp-before-detection-second-softnav.tentative.html": [
+ "4d26bb926955f6c86e3adae583d1828c8e6b833a",
+ [
+ null,
+ {
+ "testdriver": true
+ }
+ ]
+ ],
+ "image-lcp-before-detection.tentative.html": [
+ "0de675d372b68866d92eca772461cb0800f6e7f1",
+ [
+ null,
+ {
+ "testdriver": true
+ }
+ ]
+ ],
"image-lcp-followed-by-image-softnav-lcp.tentative.html": [
"7a2018d20ee811ff1ec9ca88c80038b0f1239874",
[
@@ -622343,6 +622438,24 @@
{}
]
],
+ "text-lcp-before-detection-second-softnav.tentative.html": [
+ "bed27c3506914e34cfb7d288ed745fd1fc2cea01",
+ [
+ null,
+ {
+ "testdriver": true
+ }
+ ]
+ ],
+ "text-lcp-before-detection.tentative.html": [
+ "11e82e539ff08b249be1fe79f64e4b8df0859601",
+ [
+ null,
+ {
+ "testdriver": true
+ }
+ ]
+ ],
"text-lcp-followed-by-anim-image-softnav-lcp.tentative.html": [
"0615b513e61319d61bcbed3540aa1a5d47289cb6",
[
@@ -696833,7 +696946,7 @@
]
],
"clip.py": [
- "4e37c4714c3ae27e4bb1bfe968cf2d81618b654e",
+ "8300e962b92c50c019c0afd3347c5c79cdb0c0d6",
[
null,
{}
@@ -696854,7 +696967,7 @@
]
],
"invalid.py": [
- "58481c4e7ad4464f107dc8bb11ad2def93e7c67d",
+ "6fef42a48f01522a7cfa26baed85d12cdfb4df65",
[
null,
{}
@@ -697721,7 +697834,7 @@
]
],
"remote_values.py": [
- "ae8e55d7746acbbe0a2758de5529679d14beeb7e",
+ "b9399662cddcd04a438bae3ce2d34ad436ab2808",
[
null,
{}
@@ -697881,7 +697994,7 @@
]
],
"remote_values.py": [
- "d62f09e5df947b83938e59bc4549a29a4f5689d3",
+ "c3f29cbab5d8e40bcee1013803018099319ad57d",
[
null,
{}
diff --git a/third_party/blink/web_tests/external/wpt/css/cssom/CSSStyleSheet-constructable-replace-cssRules.html b/third_party/blink/web_tests/external/wpt/css/cssom/CSSStyleSheet-constructable-replace-cssRules.html
new file mode 100644
index 0000000..adb1b5f70
--- /dev/null
+++ b/third_party/blink/web_tests/external/wpt/css/cssom/CSSStyleSheet-constructable-replace-cssRules.html
@@ -0,0 +1,41 @@
+<!doctype html>
+<meta charset="utf-8">
+<title>CSSStyleSheet.replace reflects the right cssRules.</title>
+<link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
+<link rel="author" title="Mozilla" href="https://mozilla.org">
+<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1864815">
+<link rel="help" href="https://drafts.csswg.org/cssom/#dom-cssstylesheet-replace">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<p></p>
+<script>
+async function runTest(sync) {
+ let sheet = new CSSStyleSheet();
+ let rules = sheet.cssRules;
+ function replace(text) {
+ return sync ? sheet.replaceSync(text) : sheet.replace(text);
+ }
+ function assert_color(color) {
+ assert_equals(sheet.cssRules, rules, "StyleSheet.cssRules is [SameObject]");
+ assert_equals(rules.length, 1, "Should have one rule");
+ assert_equals(rules[0].style.color, color, "Should be the right css rule");
+ }
+ async function replace_and_test(color) {
+ await replace(`p { color: ${color} }`);
+ assert_equals(sheet.cssRules, rules, "StyleSheet.cssRules is [SameObject]");
+ assert_equals(rules.length, 1, "Should have one rule");
+ assert_equals(rules[0].style.color, color, "Should be the right css rule");
+ }
+
+ await replace_and_test("red");
+ await replace_and_test("green");
+ document.adoptedStyleSheets.push(sheet);
+ assert_equals(getComputedStyle(document.querySelector("p")).color, "rgb(0, 128, 0)", "Sheet should apply");
+ document.adoptedStyleSheets.pop(sheet);
+ assert_not_equals(getComputedStyle(document.querySelector("p")).color, "rgb(0, 128, 0)", "Sheet should stop applying");
+}
+
+for (let sync of [true, false]) {
+ promise_test(() => runTest(sync), `cssRules tests (sync: ${sync})`);
+}
+</script>
diff --git a/third_party/blink/web_tests/external/wpt/docs/writing-tests/print-reftests.md b/third_party/blink/web_tests/external/wpt/docs/writing-tests/print-reftests.md
index 62a037da..cbcd5e9 100644
--- a/third_party/blink/web_tests/external/wpt/docs/writing-tests/print-reftests.md
+++ b/third_party/blink/web_tests/external/wpt/docs/writing-tests/print-reftests.md
@@ -16,8 +16,10 @@
Like ordinary reftests, the reference is specified using a `<link
rel=match>` element.
-The default page size for print reftests is 12.7 cm by 7.62 cm (5
-inches by 3 inches).
+The default page size
+([page box](https://drafts.csswg.org/css-page-3/#page-model)) for
+print reftests is 12.7 cm by 7.62 cm (5 inches by 3 inches) with a
+default margin of 12.7 mm (0.5 inches) on all sides.
All the features of ordinary reftests also work with print reftests
including [fuzzy matching](reftests.html#fuzzy-matching). Any fuzzy
diff --git a/third_party/blink/web_tests/external/wpt/fetch/api/crashtests/aborted-fetch-response.https.html b/third_party/blink/web_tests/external/wpt/fetch/api/crashtests/aborted-fetch-response.https.html
new file mode 100644
index 0000000..fa1ad17
--- /dev/null
+++ b/third_party/blink/web_tests/external/wpt/fetch/api/crashtests/aborted-fetch-response.https.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<script type="module">
+ const abort = new AbortController();
+ const resp = await fetch("5401a7dfd80adbd578b3e91b86fdc6966a752de7.vtt", {
+ signal: abort.signal,
+ });
+ abort.abort();
+ await resp.body.closed;
+ const cache = await caches.open("cache_name_0");
+ await cache.put("bb4ea079adb4fe423f1d6cec18bc1caf78ac4cd6.ico", resp);
+</script>
diff --git a/third_party/blink/web_tests/external/wpt/svg/struct/reftests/use-data-url-set-attributeName.tentative.svg b/third_party/blink/web_tests/external/wpt/svg/struct/reftests/use-data-url-set-attributeName.tentative.svg
new file mode 100644
index 0000000..248f218
--- /dev/null
+++ b/third_party/blink/web_tests/external/wpt/svg/struct/reftests/use-data-url-set-attributeName.tentative.svg
@@ -0,0 +1,9 @@
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:h="http://www.w3.org/1999/xhtml" xmlns:xlink="http://www.w3.org/1999/xlink">
+ <title><use> with a data: URL resource loaded by <set attributeName></title>
+ <h:link rel="help" href="https://svgwg.org/svg2-draft/struct.html#UseElementHrefAttribute"/>
+ <h:link rel="match" href="reference/green-100x100.svg"/>
+ <rect width="100" height="100" fill="green"/>
+ <use>
+ <set attributeName="href" to="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogIDxyZWN0IGlkPSJyZWQtcmVjdCIgd2lkdGg9IjEwMCIgaGVpZ2h0PSIxMDAiIGZpbGw9InJlZCIvPgo8L3N2Zz4=#red-rect"/>
+ </use>
+</svg>
diff --git a/third_party/blink/web_tests/external/wpt/svg/struct/reftests/use-data-url-setAttribute.tentative.html b/third_party/blink/web_tests/external/wpt/svg/struct/reftests/use-data-url-setAttribute.tentative.html
new file mode 100644
index 0000000..b28dd0e
--- /dev/null
+++ b/third_party/blink/web_tests/external/wpt/svg/struct/reftests/use-data-url-setAttribute.tentative.html
@@ -0,0 +1,18 @@
+<!doctype HTML>
+<meta charset="utf-8">
+<title>Testcase for changing a valid <use> to a data URL:</title>
+<link rel="help" href="https://svgwg.org/svg2-draft/struct.html#UseElementHrefAttribute">
+<link rel="match" href="reference/green-100x100.html">
+<script>
+ function go() {
+ const use = document.querySelector("use");
+ use.setAttribute("href", "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogIDxyZWN0IGlkPSJvcmFuZ2UtcmVjdCIgd2lkdGg9IjEwMCIgaGVpZ2h0PSIxMDAiIGZpbGw9Im9yYW5nZSIvPgo8L3N2Zz4=#orange-rect");
+ }
+</script>
+<body onload="go()">
+ <svg id="mySVG">
+ <rect id="red" width="100" height="100" fill="red"></rect>
+ <rect id="green" width="100" height="100" fill="green"></rect>
+ <use x="100" y="0" href="#red"></use>
+ </svg>
+</body>
diff --git a/third_party/blink/web_tests/external/wpt/svg/struct/reftests/use-ref-inside-data-url.tentative.html b/third_party/blink/web_tests/external/wpt/svg/struct/reftests/use-ref-inside-data-url.tentative.html
new file mode 100644
index 0000000..d6ac2e3
--- /dev/null
+++ b/third_party/blink/web_tests/external/wpt/svg/struct/reftests/use-ref-inside-data-url.tentative.html
@@ -0,0 +1,15 @@
+<!doctype HTML>
+<meta charset="utf-8">
+<title>Testcase for where SVG loaded via data: uses #ref</title>
+<link rel="help" href="https://svgwg.org/svg2-draft/struct.html#UseElementHrefAttribute">
+<link rel="match" href="reference/green-100x100.html">
+<body>
+<!-- base64 SVG source:
+<svg xmlns="http://www.w3.org/2000/svg">
+ <rect id="green-rect" width="100" height="100" fill="green"/>
+ <rect width="100" height="100" fill="red"/>
+ <use href="#green-rect"/>
+</svg>
+-->
+<img src="data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPg0KICA8cmVjdCBpZD0iZ3JlZW4tcmVjdCIgd2lkdGg9IjEwMCIgaGVpZ2h0PSIxMDAiIGZpbGw9ImdyZWVuIi8+DQogIDxyZWN0IHdpZHRoPSIxMDAiIGhlaWdodD0iMTAwIiBmaWxsPSJyZWQiLz4NCiAgPHVzZSBocmVmPSIjZ3JlZW4tcmVjdCIvPg0KPC9zdmc+">
+</body>
diff --git a/third_party/blink/web_tests/external/wpt/webdriver/tests/bidi/browsing_context/capture_screenshot/clip.py b/third_party/blink/web_tests/external/wpt/webdriver/tests/bidi/browsing_context/capture_screenshot/clip.py
index 4e37c47..8300e96 100644
--- a/third_party/blink/web_tests/external/wpt/webdriver/tests/bidi/browsing_context/capture_screenshot/clip.py
+++ b/third_party/blink/web_tests/external/wpt/webdriver/tests/bidi/browsing_context/capture_screenshot/clip.py
@@ -263,23 +263,71 @@
assert comparison.equal()
-async def test_clip_box_outside_of_window_viewport(bidi_session, top_context):
+@pytest.mark.parametrize("origin", ["document", "viewport"])
+async def test_clip_box_outside_of_window_viewport(
+ bidi_session, top_context, inline, compare_png_bidi, origin
+):
+ element_styles = "background-color: black; width: 50px; height:50px;"
viewport_dimensions = await get_viewport_dimensions(bidi_session, top_context)
- with pytest.raises(error.UnableToCaptureScreenException):
- await bidi_session.browsing_context.capture_screenshot(
+ # Render the element outside of viewport.
+ url = inline(
+ f"""<div style="{element_styles} margin-top: {viewport_dimensions["height"]}px"></div>"""
+ )
+ await bidi_session.browsing_context.navigate(
+ context=top_context["context"], url=url, wait="complete"
+ )
+ element = await bidi_session.script.call_function(
+ await_promise=False,
+ function_declaration="""() => document.querySelector('div')""",
+ target=ContextTarget(top_context["context"]),
+ )
+ element_coordinates = await get_element_coordinates(
+ bidi_session, top_context, element
+ )
+ element_dimensions = await get_physical_element_dimensions(
+ bidi_session, top_context, element
+ )
+
+ if origin == "viewport":
+ with pytest.raises(error.UnableToCaptureScreenException):
+ await bidi_session.browsing_context.capture_screenshot(
+ context=top_context["context"],
+ clip=BoxOptions(
+ x=element_coordinates[0],
+ y=element_coordinates[1],
+ width=element_dimensions[0],
+ height=element_dimensions[1],
+ ),
+ )
+ else:
+ data = await bidi_session.browsing_context.capture_screenshot(
context=top_context["context"],
clip=BoxOptions(
- x=viewport_dimensions["width"],
- y=viewport_dimensions["height"],
- width=1,
- height=1,
+ x=element_coordinates[0],
+ y=element_coordinates[1],
+ width=element_dimensions[0],
+ height=element_dimensions[1],
),
+ origin="document",
+ )
+ assert png_dimensions(data) == element_dimensions
+
+ # Render an element inside of viewport for the reference.
+ reference_data = await get_reference_screenshot(
+ bidi_session,
+ inline,
+ top_context["context"],
+ f"""<div style="{element_styles}"></div>""",
)
+ comparison = await compare_png_bidi(reference_data, data)
+ assert comparison.equal()
+
+@pytest.mark.parametrize("origin", ["document", "viewport"])
async def test_clip_element_outside_of_window_viewport(
- bidi_session, top_context, inline
+ bidi_session, top_context, inline, compare_png_bidi, origin
):
viewport_dimensions = await get_viewport_dimensions(bidi_session, top_context)
@@ -297,8 +345,31 @@
target=ContextTarget(top_context["context"]),
)
- with pytest.raises(error.UnableToCaptureScreenException):
- await bidi_session.browsing_context.capture_screenshot(
+ if origin == "viewport":
+ with pytest.raises(error.UnableToCaptureScreenException):
+ await bidi_session.browsing_context.capture_screenshot(
+ context=top_context["context"],
+ clip=ElementOptions(element=element),
+ )
+ else:
+ data = await bidi_session.browsing_context.capture_screenshot(
context=top_context["context"],
clip=ElementOptions(element=element),
+ origin="document",
)
+
+ expected_size = await get_physical_element_dimensions(
+ bidi_session, top_context, element
+ )
+ assert png_dimensions(data) == expected_size
+
+ # Render an element inside of viewport for the reference.
+ reference_data = await get_reference_screenshot(
+ bidi_session,
+ inline,
+ top_context["context"],
+ f"""<div style="{element_styles}"></div>""",
+ )
+
+ comparison = await compare_png_bidi(reference_data, data)
+ assert comparison.equal()
diff --git a/third_party/blink/web_tests/external/wpt/webdriver/tests/bidi/browsing_context/capture_screenshot/invalid.py b/third_party/blink/web_tests/external/wpt/webdriver/tests/bidi/browsing_context/capture_screenshot/invalid.py
index 58481c4e..6fef42a 100644
--- a/third_party/blink/web_tests/external/wpt/webdriver/tests/bidi/browsing_context/capture_screenshot/invalid.py
+++ b/third_party/blink/web_tests/external/wpt/webdriver/tests/bidi/browsing_context/capture_screenshot/invalid.py
@@ -6,7 +6,6 @@
ElementOptions,
FormatOptions,
)
-from webdriver.bidi.modules.script import ContextTarget
pytestmark = pytest.mark.asyncio
@@ -128,6 +127,14 @@
)
+@pytest.mark.parametrize("value", [False, 42, [], {}])
+async def test_params_origin_invalid_type(bidi_session, top_context, value):
+ with pytest.raises(error.InvalidArgumentException):
+ await bidi_session.browsing_context.capture_screenshot(
+ context=top_context["context"], origin=value
+ )
+
+
async def test_params_origin_invalid_value(bidi_session, top_context):
with pytest.raises(error.InvalidArgumentException):
await bidi_session.browsing_context.capture_screenshot(
diff --git a/third_party/blink/web_tests/external/wpt/webdriver/tests/bidi/script/call_function/remote_values.py b/third_party/blink/web_tests/external/wpt/webdriver/tests/bidi/script/call_function/remote_values.py
index ae8e55d..b9399662c 100644
--- a/third_party/blink/web_tests/external/wpt/webdriver/tests/bidi/script/call_function/remote_values.py
+++ b/third_party/blink/web_tests/external/wpt/webdriver/tests/bidi/script/call_function/remote_values.py
@@ -65,14 +65,17 @@
@pytest.mark.asyncio
+@pytest.mark.parametrize("domain", ["", "alt"],
+ ids=["same_origin", "cross_origin"])
@pytest.mark.parametrize("await_promise", [True, False])
async def test_window_context_iframe_window(bidi_session, top_context,
- test_page_same_origin_frame,
- await_promise):
+ inline, domain, await_promise):
+ frame_url = inline("<div>foo</div>")
+ url = inline(f"<iframe src='{frame_url}'></iframe>", domain=domain)
await bidi_session.browsing_context.navigate(
context=top_context["context"],
- url=test_page_same_origin_frame,
+ url=url,
wait="complete",
)
@@ -99,13 +102,17 @@
@pytest.mark.asyncio
+@pytest.mark.parametrize("domain", ["", "alt"],
+ ids=["same_origin", "cross_origin"])
@pytest.mark.parametrize("await_promise", [True, False])
async def test_window_context_iframe_content_window(
- bidi_session, top_context, test_page_same_origin_frame, await_promise):
+ bidi_session, top_context, inline, domain, await_promise):
+ frame_url = inline("<div>foo</div>")
+ url = inline(f"<iframe src='{frame_url}'></iframe>", domain=domain)
await bidi_session.browsing_context.navigate(
context=top_context["context"],
- url=test_page_same_origin_frame,
+ url=url,
wait="complete",
)
diff --git a/third_party/blink/web_tests/external/wpt/webdriver/tests/bidi/script/evaluate/remote_values.py b/third_party/blink/web_tests/external/wpt/webdriver/tests/bidi/script/evaluate/remote_values.py
index d62f09e..c3f29cb 100644
--- a/third_party/blink/web_tests/external/wpt/webdriver/tests/bidi/script/evaluate/remote_values.py
+++ b/third_party/blink/web_tests/external/wpt/webdriver/tests/bidi/script/evaluate/remote_values.py
@@ -37,13 +37,16 @@
@pytest.mark.asyncio
+@pytest.mark.parametrize("domain", ["", "alt"],
+ ids=["same_origin", "cross_origin"])
@pytest.mark.parametrize("await_promise", [True, False])
async def test_window_context_iframe_window(
- bidi_session, top_context, test_page_same_origin_frame, await_promise):
-
+ bidi_session, top_context, inline, domain, await_promise):
+ frame_url = inline("<div>foo</div>")
+ url = inline(f"<iframe src='{frame_url}'></iframe>", domain=domain)
await bidi_session.browsing_context.navigate(
context=top_context["context"],
- url=test_page_same_origin_frame,
+ url=url,
wait="complete",
)
@@ -67,13 +70,17 @@
@pytest.mark.asyncio
+@pytest.mark.parametrize("domain", ["", "alt"],
+ ids=["same_origin", "cross_origin"])
@pytest.mark.parametrize("await_promise", [True, False])
async def test_window_context_iframe_content_window(
- bidi_session, top_context, test_page_same_origin_frame, await_promise):
+ bidi_session, top_context, inline, domain, await_promise):
+ frame_url = inline("<div>foo</div>")
+ url = inline(f"<iframe src='{frame_url}'></iframe>", domain=domain)
await bidi_session.browsing_context.navigate(
context=top_context["context"],
- url=test_page_same_origin_frame,
+ url=url,
wait="complete",
)
diff --git a/third_party/blink/web_tests/platform/linux-chrome/external/wpt/webdriver/tests/bidi/browsing_context/capture_screenshot/clip-expected.txt b/third_party/blink/web_tests/platform/linux-chrome/external/wpt/webdriver/tests/bidi/browsing_context/capture_screenshot/clip-expected.txt
index d55c0b8..6fa9428 100644
--- a/third_party/blink/web_tests/platform/linux-chrome/external/wpt/webdriver/tests/bidi/browsing_context/capture_screenshot/clip-expected.txt
+++ b/third_party/blink/web_tests/platform/linux-chrome/external/wpt/webdriver/tests/bidi/browsing_context/capture_screenshot/clip-expected.txt
@@ -1,4 +1,8 @@
This is a wdspec test.
[FAIL] test_clip_box_scroll_to
assert False
+[FAIL] test_clip_box_outside_of_window_viewport[document]
+ TypeError: capture_screenshot() got an unexpected keyword argument 'origin'
+[FAIL] test_clip_element_outside_of_window_viewport[document]
+ TypeError: capture_screenshot() got an unexpected keyword argument 'origin'
Harness: the test ran to completion.
diff --git a/third_party/blink/web_tests/platform/linux-chrome/external/wpt/webdriver/tests/bidi/network/add_intercept/add_intercept-expected.txt b/third_party/blink/web_tests/platform/linux-chrome/external/wpt/webdriver/tests/bidi/network/add_intercept/add_intercept-expected.txt
index f372305..13e4faf0 100644
--- a/third_party/blink/web_tests/platform/linux-chrome/external/wpt/webdriver/tests/bidi/network/add_intercept/add_intercept-expected.txt
+++ b/third_party/blink/web_tests/platform/linux-chrome/external/wpt/webdriver/tests/bidi/network/add_intercept/add_intercept-expected.txt
@@ -1,3 +1,6 @@
This is a wdspec test.
-Harness Error. harness_status.status = 1 , harness_status.message =
+[FAIL] test_other_context[beforeRequestSent]
+ webdriver.bidi.modules.script.ScriptEvaluateResultException: AbortError: The user aborted a request.
+[FAIL] test_other_context[responseStarted]
+ webdriver.bidi.modules.script.ScriptEvaluateResultException: AbortError: The user aborted a request.
Harness: the test ran to completion.