Skip to content

Commit

Permalink
Import wpt@7d7911e885cf74f7a74b3782cbb60c16ff72ef31
Browse files Browse the repository at this point in the history
Using wpt-import in Chromium fd90db9.

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:
igrigorik@chromium.org, yoavweiss@chromium.org:
  external/wpt/preload
mek@chromium.org, stevebe@microsoft.com:
  external/wpt/file-system-access
rego@igalia.com:
  external/wpt/css/css-contain

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: I0709be971ef0bc33a59d4adcfd29a9d4ca341b0d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3564422
Auto-Submit: WPT Autoroller <wpt-autoroller@chops-service-accounts.iam.gserviceaccount.com>
Commit-Queue: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Cr-Commit-Position: refs/heads/main@{#987864}
  • Loading branch information
Chromium WPT Sync authored and Chromium LUCI CQ committed Apr 1, 2022
1 parent 236eb62 commit b38b408
Show file tree
Hide file tree
Showing 12 changed files with 380 additions and 91 deletions.
2 changes: 0 additions & 2 deletions third_party/blink/web_tests/android/WebviewWPTExpectations
Original file line number Diff line number Diff line change
Expand Up @@ -3522,8 +3522,6 @@ crbug.com/1050754 external/wpt/mixed-content/tentative/autoupgrades/audio-upgrad
crbug.com/1050754 external/wpt/mixed-content/tentative/autoupgrades/image-upgrade.https.sub.html [ Failure ]
crbug.com/1050754 external/wpt/mixed-content/tentative/autoupgrades/video-upgrade.https.sub.html [ Failure ]
crbug.com/1050754 external/wpt/mst-content-hint/idlharness.window.html [ Failure Pass ]
crbug.com/1050754 external/wpt/file-system-access/idlharness.https.any.html [ Failure ]
crbug.com/1050754 external/wpt/file-system-access/idlharness.https.any.worker.html [ Failure ]
crbug.com/1050754 external/wpt/file-system-access/opaque-origin.https.window.html [ Failure ]
crbug.com/1050754 external/wpt/file-system-access/sandboxed_FileSystemBaseHandle-IndexedDB.https.any.html [ Failure ]
crbug.com/1050754 external/wpt/file-system-access/sandboxed_FileSystemBaseHandle-IndexedDB.https.any.worker.html [ Failure ]
Expand Down
2 changes: 1 addition & 1 deletion third_party/blink/web_tests/external/Version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Version: 8678fd4c89c2efe2440f82a0a172dcafff462ff6
Version: 7d7911e885cf74f7a74b3782cbb60c16ff72ef31
160 changes: 151 additions & 9 deletions third_party/blink/web_tests/external/WPT_BASE_MANIFEST_8.json
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,13 @@
{}
]
],
"area-in-inline-crash.html": [
"d409457b2143f75479b1add0991efb45d4ec7b7a",
[
null,
{}
]
],
"auto-overflow-inside-second-abspos-fragment-crash.html": [
"c4ce36abac8299afe5157705c97b5b693c260e78",
[
Expand Down Expand Up @@ -560,6 +567,13 @@
{}
]
],
"max-height-with-margin-pushed-below-fragmentation-line-crash.html": [
"a1b3139bd53e2db82397b371852d7826d768d164",
[
null,
{}
]
],
"nested-oof-in-multicol-crash.html": [
"6b2f81005d3e41642c6a545050d7c5536bae6af3",
[
Expand Down Expand Up @@ -588,6 +602,13 @@
{}
]
],
"overflow-auto-height-with-bottom-padding-crash.html": [
"e25c8e3f2c15e3148aaf2cdd9b2f3c8dd89693e1",
[
null,
{}
]
],
"resumed-float-and-inline-block-crash.html": [
"c86034c3723c3dc8cb89a5383b4dcfdf9abb94d9",
[
Expand Down Expand Up @@ -1589,6 +1610,13 @@
{}
]
],
"trailing-parent-padding-between-spanners.html": [
"ffd10021772d21c1db6d77bb074a77d92bd4b145",
[
null,
{}
]
],
"vertical-rl-column-rules-wide-columns.html": [
"22eb9d56b6d1f50ab756899f21453f68c94521d6",
[
Expand Down Expand Up @@ -301021,6 +301049,12 @@
]
}
},
"fs": {
"META.yml": [
"05e66225cf220ab8d443e06e412b568c7642c7ce",
[]
]
},
"fullscreen": {
"DIR_METADATA": [
"1652c4fa811abc3de5100db23c1e35ff86f5d20d",
Expand Down Expand Up @@ -301442,10 +301476,6 @@
"307bd14234d626c558b4070b1f9225ae6b722981",
[]
],
"dedicated-worker-expected.txt": [
"85a5fdcde1ff95e636351f144acb89d9ea79b17f",
[]
],
"inflight-fetch-1-expected.txt": [
"56abf13334460a0a093be4e1ed36a97689a4c780",
[]
Expand Down Expand Up @@ -318695,7 +318725,7 @@
[]
],
"file-system-access.idl": [
"252e9cdc5987843894d8e27a3cdfb7a346290280",
"fac89ea54b10865e5d720b53905255bd2892c85b",
[]
],
"filter-effects.idl": [
Expand All @@ -318706,6 +318736,10 @@
"9bb94bc3a6a370ae099a817afc687813eebacc61",
[]
],
"fs.idl": [
"9263ca7dbeec000792315c51d4b1b980777d23a2",
[]
],
"fullscreen.idl": [
"2f67f09a39406c06c440b2343ed5f36141fbf48d",
[]
Expand Down Expand Up @@ -322238,6 +322272,18 @@
"98b7dd0fb58b4142f90eca341356eb0efbd09d2f",
[]
],
"navigate-parent.html": [
"8584bb5774a2820c853bf24bec1dcb16d8f011cb",
[]
],
"navigate-sibling.html": [
"29a5ee7390d0387d752a91be195e99739e039661",
[]
],
"navigation-back.html": [
"a1441801acf3be4f3d1c65334f0e604f864a41a3",
[]
],
"page-with-base-url-common.html": [
"8d9fedcc2b40d2eaeff55727ffa476a6e7c0e479",
[]
Expand Down Expand Up @@ -375250,6 +375296,13 @@
{}
]
],
"hit-test-transformed-inline.html": [
"239b2b23956818b25c401349e69dacbf03b169fc",
[
null,
{}
]
],
"hit-test-transformed.html": [
"99365c908cb7754ee2c1ee588c1157d9ebd36add",
[
Expand Down Expand Up @@ -376204,7 +376257,7 @@
]
],
"container-parsing.html": [
"0167c120b50bcd413e29620c90c86eee2407a462",
"1963603f5c6b87de8a231168ddc93f94f34b46a8",
[
null,
{}
Expand Down Expand Up @@ -376253,7 +376306,7 @@
]
],
"container-type-parsing.html": [
"2b28ebf1cd3c4c95821b7fe35d52e2ac18448b2d",
"cce8aa3b90630da9b2dcac6bb7911172fd1deeb3",
[
null,
{}
Expand Down Expand Up @@ -434044,7 +434097,7 @@
},
"file-system-access": {
"idlharness.https.any.js": [
"ab182537356a8234e2d826ad64c5e1bd9954eabd",
"ca3e92061a2a5a09f04c9548d9163bba8f39521d",
[
"file-system-access/idlharness.https.any.html",
{
Expand Down Expand Up @@ -435538,6 +435591,51 @@
]
]
},
"fs": {
"idlharness.https.any.js": [
"508beccc365d211c2b9e42ec162ef8c805b41220",
[
"fs/idlharness.https.any.html",
{
"script_metadata": [
[
"script",
"/resources/WebIDLParser.js"
],
[
"script",
"/resources/idlharness.js"
],
[
"timeout",
"long"
]
],
"timeout": "long"
}
],
[
"fs/idlharness.https.any.worker.html",
{
"script_metadata": [
[
"script",
"/resources/WebIDLParser.js"
],
[
"script",
"/resources/idlharness.js"
],
[
"timeout",
"long"
]
],
"timeout": "long"
}
]
]
},
"fullscreen": {
"api": {
"document-exit-fullscreen-active-document.html": [
Expand Down Expand Up @@ -463599,6 +463697,13 @@
}
},
"the-hidden-attribute": {
"beforematch-element-fragment-navigation.html": [
"812a55f3187f60bda3ae702142de47168b1d8abd",
[
null,
{}
]
],
"hidden-idl.html": [
"331b63f93fd80a360dbc46e7b2da93d24596367c",
[
Expand Down Expand Up @@ -473227,7 +473332,7 @@
]
],
"modal-dialog-selection.html": [
"ab8dc4fd9842aaa6509a0bcae22df0b305fc3c6b",
"0242080268fd435ca52908a8afe08a8607bdb76a",
[
null,
{
Expand Down Expand Up @@ -495738,6 +495843,34 @@
]
]
},
"sandboxing-back-parent.html": [
"bc3d4e2e9fb7e3906e027109fe18d275e5db744e",
[
null,
{}
]
],
"sandboxing-back-sibling.html": [
"718ea6d3ddada0bc73ea965a2969f5fe79642a9c",
[
null,
{}
]
],
"sandboxing-navigate-parent.html": [
"b7af32443f736097db489e57130058dc2b01a8a8",
[
null,
{}
]
],
"sandboxing-navigate-sibling.html": [
"c8e76fc4a67ea732a7e78871c7de3e5831c9f16d",
[
null,
{}
]
],
"traverseTo-after-adding-iframe.html": [
"5ab28205510800eccc6fffed97b972929e1c0068",
[
Expand Down Expand Up @@ -501718,6 +501851,15 @@
}
]
],
"preload-connect-to-doc.html": [
"ba45f6f3f848068ee9120b89c41307af22d570d3",
[
null,
{
"timeout": "long"
}
]
],
"preload-csp.sub.html": [
"a11214e9ec8e41a518f9fdb6b3db1b96b6e55df9",
[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
test_valid_value('container', 'size / block-size');
test_valid_value('container', 'inline-size / inline-size');
test_valid_value('container', 'size / size');
test_valid_value('container', 'size style / none', 'size style');
test_valid_value('container', 'size style / none', 'style size');
test_valid_value('container', 'size / foo');
test_valid_value('container', 'size / foo bar');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
test_valid_value('container-type', 'size');
test_valid_value('container-type', 'inline-size');

test_valid_value('container-type', 'inline-size style');
test_valid_value('container-type', 'inline-size style', 'style inline-size');
test_valid_value('container-type', 'style inline-size');
test_valid_value('container-type', 'style size');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@

idl_test(
['file-system-access'],
['storage', 'permissions', 'streams', 'html', 'dom'],
['fs', 'permissions', 'html', 'dom'],
idl_array => {
idl_array.add_objects({
// TODO: Add instances of FileSystemHandle, FileSystemFileHandle,
// FileSystemDirectoryHandle and FileSystemWriter.
});
if (self.GLOBAL.isWindow()) {
idl_array.add_objects({
Window: ['window'],
// TODO: DataTransferItem
});
}
}
);
3 changes: 3 additions & 0 deletions third_party/blink/web_tests/external/wpt/fs/META.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
spec: https://fs.spec.whatwg.org/
suggested_reviewers:
- mkruisselbrink
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// META: script=/resources/WebIDLParser.js
// META: script=/resources/idlharness.js
// META: timeout=long

'use strict';

idl_test(
['fs'],
['storage', 'streams'],
idl_array => {
idl_array.add_objects({
// TODO: Add instances of FileSystemHandle, FileSystemFileHandle,
// FileSystemDirectoryHandle, FileSystemWritableFileStream, and
// StorageManager.
});
}
);
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,32 @@
.send();
}

function clickOnBackdrop() {
getSelection().removeAllRanges();

return new test_driver.Actions()
.pointerMove(10, 10)
.pointerDown()
.pointerUp()
.send();
}

promise_test(async function() {
await selectSomeText();
assert_equals(getSelection().toString(), "345678");
}, "By default, text inside a modal dialog can be selected");

promise_test(async function() {
await clickOnBackdrop();
assert_equals(getSelection().toString(), "");
}, "Clicking on backdrop doesn't select text");

promise_test(async function() {
dialog.style.userSelect = "none";

await selectSomeText();
assert_equals(getSelection().toString(), "");

dialog.style.userSelect = "";
}, "'user-select: none' prevents text from being selected");
</script>

0 comments on commit b38b408

Please sign in to comment.