Import wpt@86e157b387e63ba586d8ad51d2fcd5690626f5ad
Using wpt-import in Chromium 41e330628ed6c793a133c05383aed23bf436f667.
With Chromium commits locally applied on WPT:
7dad0f1723 "Added new Sec-Metadata Web Platform Tests."
Build: https://ci.chromium.org/buildbot/chromium.infra.cron/wpt-importer/22735
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/+/master/docs/testing/web_platform_tests.md
NOAUTOREVERT=true
TBR=raphael.kubo.da.costa@intel.com
No-Export: true
Change-Id: Iefbd3121e68ae03c7e379e45525770da0c780f0b
Reviewed-on: https://chromium-review.googlesource.com/1175402
Commit-Queue: Blink WPT Bot <blink-w3c-test-autoroller@chromium.org>
Reviewed-by: Blink WPT Bot <blink-w3c-test-autoroller@chromium.org>
Cr-Commit-Position: refs/heads/master@{#583149}
diff --git a/third_party/WebKit/LayoutTests/external/WPT_BASE_MANIFEST.json b/third_party/WebKit/LayoutTests/external/WPT_BASE_MANIFEST.json
index 158e9f6..122aeb59 100644
--- a/third_party/WebKit/LayoutTests/external/WPT_BASE_MANIFEST.json
+++ b/third_party/WebKit/LayoutTests/external/WPT_BASE_MANIFEST.json
@@ -36298,7 +36298,7 @@
"/css/css-contain/contain-size-001.html",
[
[
- "/css/reference/pass_if_pass_below.html",
+ "/css/css-contain/reference/pass_if_pass_below_clipped.html",
"=="
]
],
@@ -36310,7 +36310,7 @@
"/css/css-contain/contain-size-002.html",
[
[
- "/css/reference/pass_if_pass_below.html",
+ "/css/css-contain/reference/pass_if_pass_below_clipped.html",
"=="
]
],
@@ -36322,7 +36322,7 @@
"/css/css-contain/contain-size-003.html",
[
[
- "/css/reference/pass_if_pass_below.html",
+ "/css/css-contain/reference/pass_if_pass_below_clipped.html",
"=="
]
],
@@ -36358,7 +36358,7 @@
"/css/css-contain/contain-size-006.html",
[
[
- "/css/reference/pass_if_pass_below.html",
+ "/css/css-contain/reference/pass_if_pass_below_clipped.html",
"=="
]
],
@@ -36430,7 +36430,7 @@
"/css/css-contain/contain-size-012.html",
[
[
- "/css/reference/pass_if_pass_below.html",
+ "/css/css-contain/reference/pass_if_pass_below_clipped.html",
"=="
]
],
@@ -113980,6 +113980,11 @@
{}
]
],
+ "css/css-contain/reference/pass_if_pass_below_clipped.html": [
+ [
+ {}
+ ]
+ ],
"css/css-contain/reference/quote-scoping-001-ref.html": [
[
{}
@@ -141445,6 +141450,11 @@
{}
]
],
+ "custom-elements/range-and-constructors-expected.txt": [
+ [
+ {}
+ ]
+ ],
"custom-elements/reactions/resources/reactions.js": [
[
{}
@@ -201768,6 +201778,12 @@
{}
]
],
+ "custom-elements/range-and-constructors.html": [
+ [
+ "/custom-elements/range-and-constructors.html",
+ {}
+ ]
+ ],
"custom-elements/reaction-timing.html": [
[
"/custom-elements/reaction-timing.html",
@@ -303044,15 +303060,15 @@
"reftest"
],
"css/css-contain/contain-size-001.html": [
- "05060bb62063edcc4b7d7ad095e73f703c68eb01",
+ "2adbb0ab3d828bd05d07f397d46fece9ffcee442",
"reftest"
],
"css/css-contain/contain-size-002.html": [
- "122275c9a80ef31ea681b6356f49b04a03b4bd13",
+ "b0ecf6cad70623ca86832dda92bba1071766515f",
"reftest"
],
"css/css-contain/contain-size-003.html": [
- "9d227d5290bc38b103f13cfd76df5dedbfff1c46",
+ "6fb3478977d77f9850b912390a6507c6dbe3f5c6",
"reftest"
],
"css/css-contain/contain-size-004.html": [
@@ -303064,7 +303080,7 @@
"reftest"
],
"css/css-contain/contain-size-006.html": [
- "bd204b37cafa98d3d3eb1796896c893c55c3e028",
+ "d2ec9abfb9bb3c4717322f7ce5fccd125f8289d9",
"reftest"
],
"css/css-contain/contain-size-007.html": [
@@ -303088,7 +303104,7 @@
"reftest"
],
"css/css-contain/contain-size-012.html": [
- "b85a20c31a5b0c33f2f4f459c6507e3eb40958f0",
+ "eed87d5b285e4c18c36d08689f738ce2d8db68a6",
"reftest"
],
"css/css-contain/contain-size-013.html": [
@@ -303316,7 +303332,7 @@
"support"
],
"css/css-contain/reference/contain-size-004-ref.html": [
- "090aba85ddcf927a33de227157ac8e411fd5c268",
+ "450fcff3ca7954f708c69c3bcecadcc99a625a40",
"support"
],
"css/css-contain/reference/contain-size-005-ref.html": [
@@ -303391,6 +303407,10 @@
"c70a518f29860142ffdc6ddc8d5d605658886189",
"support"
],
+ "css/css-contain/reference/pass_if_pass_below_clipped.html": [
+ "572a987e08d4ffb01933ebb0372c7c61cdb1d105",
+ "support"
+ ],
"css/css-contain/reference/quote-scoping-001-ref.html": [
"7e07a6919212e35288220342886e703c2e1094b4",
"support"
@@ -352851,6 +352871,14 @@
"9cef47df0d95c620f754c477609f6088059879a2",
"testharness"
],
+ "custom-elements/range-and-constructors-expected.txt": [
+ "24a529dbf663468277b1ba436e90e042141bcb56",
+ "support"
+ ],
+ "custom-elements/range-and-constructors.html": [
+ "79c40348bf4d6f32f78a79dbd9ce90b7b6db9aac",
+ "testharness"
+ ],
"custom-elements/reaction-timing.html": [
"2e390d9b3f4b725cfcaf02e4a5b088a2b7ca7f4d",
"testharness"
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/css-contain/contain-size-001.html b/third_party/WebKit/LayoutTests/external/wpt/css/css-contain/contain-size-001.html
index 85bc4f4..49dfc41 100644
--- a/third_party/WebKit/LayoutTests/external/wpt/css/css-contain/contain-size-001.html
+++ b/third_party/WebKit/LayoutTests/external/wpt/css/css-contain/contain-size-001.html
@@ -5,7 +5,7 @@
<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net">
<meta name=flags content="">
<meta name=assert content="size containment does not apply to non atomic inlines">
- <link rel="match" href="../reference/pass_if_pass_below.html">
+ <link rel="match" href="reference/pass_if_pass_below_clipped.html">
<link rel=help href="https://drafts.csswg.org/css-contain-1/#containment-size">
<style>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/css-contain/contain-size-002.html b/third_party/WebKit/LayoutTests/external/wpt/css/css-contain/contain-size-002.html
index bfc6401..b30b024 100644
--- a/third_party/WebKit/LayoutTests/external/wpt/css/css-contain/contain-size-002.html
+++ b/third_party/WebKit/LayoutTests/external/wpt/css/css-contain/contain-size-002.html
@@ -5,7 +5,7 @@
<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net">
<meta name=flags content="">
<meta name=assert content="size containment does not to apply ruby-base, which is an internal ruby element">
- <link rel="match" href="../reference/pass_if_pass_below.html">
+ <link rel="match" href="reference/pass_if_pass_below_clipped.html">
<link rel=help href="https://drafts.csswg.org/css-contain-1/#containment-size">
<link rel=help href="https://drafts.csswg.org/css-display-3/#internal-ruby-element">
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/css-contain/contain-size-003.html b/third_party/WebKit/LayoutTests/external/wpt/css/css-contain/contain-size-003.html
index 1bce52c..95596c9 100644
--- a/third_party/WebKit/LayoutTests/external/wpt/css/css-contain/contain-size-003.html
+++ b/third_party/WebKit/LayoutTests/external/wpt/css/css-contain/contain-size-003.html
@@ -5,7 +5,7 @@
<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net">
<meta name=flags content="">
<meta name=assert content="size containment does not to apply ruby-base-container, which is an internal ruby element">
- <link rel="match" href="../reference/pass_if_pass_below.html">
+ <link rel="match" href="reference/pass_if_pass_below_clipped.html">
<link rel=help href="https://drafts.csswg.org/css-contain-1/#containment-size">
<link rel=help href="https://drafts.csswg.org/css-display-3/#internal-ruby-element">
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/css-contain/contain-size-006.html b/third_party/WebKit/LayoutTests/external/wpt/css/css-contain/contain-size-006.html
index f5c17152d..f5a5faa 100644
--- a/third_party/WebKit/LayoutTests/external/wpt/css/css-contain/contain-size-006.html
+++ b/third_party/WebKit/LayoutTests/external/wpt/css/css-contain/contain-size-006.html
@@ -3,7 +3,7 @@
<title>CSS Containment Test: Size containment on table-cell</title>
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
<link rel="help" href="https://drafts.csswg.org/css-contain-1/#containment-size">
-<link rel="match" href="../reference/pass_if_pass_below.html">
+<link rel="match" href="reference/pass_if_pass_below_clipped.html">
<meta name=assert content="Size containment doesn't apply to table-cell elements.">
<style>
div {
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/css-contain/contain-size-012.html b/third_party/WebKit/LayoutTests/external/wpt/css/css-contain/contain-size-012.html
index 6823292..b80e605 100644
--- a/third_party/WebKit/LayoutTests/external/wpt/css/css-contain/contain-size-012.html
+++ b/third_party/WebKit/LayoutTests/external/wpt/css/css-contain/contain-size-012.html
@@ -3,7 +3,7 @@
<title>CSS Containment Test: Size containment on table</title>
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
<link rel="help" href="https://drafts.csswg.org/css-contain-1/#containment-size">
-<link rel="match" href="../reference/pass_if_pass_below.html">
+<link rel="match" href="reference/pass_if_pass_below_clipped.html">
<meta name=assert content="Size containment doesn't apply to table elements.">
<style>
div {
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/css-contain/reference/contain-size-004-ref.html b/third_party/WebKit/LayoutTests/external/wpt/css/css-contain/reference/contain-size-004-ref.html
index 3048d55..75ae2bc 100644
--- a/third_party/WebKit/LayoutTests/external/wpt/css/css-contain/reference/contain-size-004-ref.html
+++ b/third_party/WebKit/LayoutTests/external/wpt/css/css-contain/reference/contain-size-004-ref.html
@@ -9,6 +9,9 @@
display: ruby-text-container;
font-size: 1rem;
}
+div {
+ overflow: hidden;
+}
</style>
<p>This test passes if you can see the word PASS below.
diff --git a/third_party/WebKit/LayoutTests/external/wpt/css/css-contain/reference/pass_if_pass_below_clipped.html b/third_party/WebKit/LayoutTests/external/wpt/css/css-contain/reference/pass_if_pass_below_clipped.html
new file mode 100644
index 0000000..044783d
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/external/wpt/css/css-contain/reference/pass_if_pass_below_clipped.html
@@ -0,0 +1,13 @@
+<!doctype html>
+<html>
+<head>
+ <title>Reference rendering - passes if there is the word "PASS" below</title>
+<style>
+div { overflow: hidden; }
+</style>
+</head>
+<body>
+ <p>Test passes if there is the word "PASS" below.</p>
+ <div>PASS</div>
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/external/wpt/custom-elements/range-and-constructors-expected.txt b/third_party/WebKit/LayoutTests/external/wpt/custom-elements/range-and-constructors-expected.txt
new file mode 100644
index 0000000..45bdc056
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/external/wpt/custom-elements/range-and-constructors-expected.txt
@@ -0,0 +1,5 @@
+This is a testharness.js-based test.
+FAIL Range.cloneContents should invoke constructor in tree order assert_array_equals: property 0, expected "root-0" but got "root-0-0"
+FAIL Range.extractContents should invoke constructor in tree order assert_array_equals: property 0, expected "root-0" but got "root-0-0"
+Harness: the test ran to completion.
+
diff --git a/third_party/WebKit/LayoutTests/external/wpt/custom-elements/range-and-constructors.html b/third_party/WebKit/LayoutTests/external/wpt/custom-elements/range-and-constructors.html
new file mode 100644
index 0000000..d17c3b7
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/external/wpt/custom-elements/range-and-constructors.html
@@ -0,0 +1,61 @@
+<!DOCTYPE html>
+<html>
+<head>
+<title>Custom elements: Range APIs should invoke constructor in tree order</title>
+<meta name="author" title="Edgar Chen" href="mailto:echen@mozilla.com">
+<link rel="help" href="https://html.spec.whatwg.org/multipage/scripting.html#concept-upgrade-an-element">
+<link rel="help" href="https://dom.spec.whatwg.org/#concept-create-element">
+<line rel="help" href="https://dom.spec.whatwg.org/#concept-range-extract">
+<line rel="help" href="https://dom.spec.whatwg.org/#concept-range-clone">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+</head>
+<body>
+<div id="log"></div>
+
+<c-e data-index="root">
+ <c-e data-index="root-0">
+ <c-e data-index="root-0-0">
+ <c-e data-index="root-0-0-0"></c-e>
+ <span id="start"></span>
+ </c-e>
+ </c-e>
+ <c-e data-index="root-1"></c-e>
+ <span id="end"></span>
+</c-e>
+
+<script>
+
+var logs = [];
+class CE extends HTMLElement {
+ constructor() {
+ super();
+ logs.push(this.dataset.index);
+ }
+}
+customElements.define('c-e', CE);
+
+function getRange() {
+ const range = new Range();
+ range.setStart(document.getElementById('start'), 0);
+ range.setEnd(document.getElementById('end'), 0);
+ return range;
+}
+
+test(function () {
+ // Clear log for testing.
+ logs = [];
+ getRange().cloneContents();
+ assert_array_equals(logs, ['root-0', 'root-0-0', 'root-1']);
+}, 'Range.cloneContents should invoke constructor in tree order');
+
+test(function () {
+ // Clear log for testing.
+ logs = [];
+ getRange().extractContents();
+ assert_array_equals(logs, ['root-0', 'root-0-0']);
+}, 'Range.extractContents should invoke constructor in tree order');
+
+</script>
+</body>
+</html>