Import wpt@9354b7ca6002e7d6351fa352440e6468e69c9eee
Using wpt-import in Chromium 6f0eae5a2e23b98ac3629aa3b59e4dd670c31b5e.
Build: https://ci.chromium.org/buildbot/chromium.infra.cron/wpt-importer/12515
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
TBR=leon.han@intel.com
No-Export: true
Change-Id: Id5663dcf336ad168f0afe4c9e0c979f3aaf3ae66
Reviewed-on: https://chromium-review.googlesource.com/913928
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@{#536129}
diff --git a/third_party/WebKit/LayoutTests/external/WPT_BASE_MANIFEST.json b/third_party/WebKit/LayoutTests/external/WPT_BASE_MANIFEST.json
index b932b51..2b3b790 100644
--- a/third_party/WebKit/LayoutTests/external/WPT_BASE_MANIFEST.json
+++ b/third_party/WebKit/LayoutTests/external/WPT_BASE_MANIFEST.json
@@ -8893,6 +8893,18 @@
{}
]
],
+ "css/CSS2/floats/intrinsic-size-float-and-line.html": [
+ [
+ "/css/CSS2/floats/intrinsic-size-float-and-line.html",
+ [
+ [
+ "/css/reference/ref-filled-green-200px-square.html",
+ "=="
+ ]
+ ],
+ {}
+ ]
+ ],
"css/CSS2/linebox/border-padding-bleed-001.xht": [
[
"/css/CSS2/linebox/border-padding-bleed-001.xht",
@@ -191247,6 +191259,12 @@
{}
]
],
+ "html/semantics/scripting-1/the-script-element/emptyish-script-elements.html": [
+ [
+ "/html/semantics/scripting-1/the-script-element/emptyish-script-elements.html",
+ {}
+ ]
+ ],
"html/semantics/scripting-1/the-script-element/execution-timing/001.html": [
[
"/html/semantics/scripting-1/the-script-element/execution-timing/001.html",
@@ -247124,6 +247142,10 @@
"3018403438b780cbebec6f22ecc6b18cca8358a6",
"reftest"
],
+ "css/CSS2/floats/intrinsic-size-float-and-line.html": [
+ "7287e2ce42cab8fda1f63e97c98b664f0b49e9fb",
+ "reftest"
+ ],
"css/CSS2/linebox/OWNERS": [
"5498c55b57270bb257281f8f2076a29a8af28fc4",
"support"
@@ -300277,7 +300299,7 @@
"testharness"
],
"css/cssom/cssimportrule.html": [
- "f8a110a236529e78b528117b25866015d67568d9",
+ "fbd8c0e93fbb53b289fd3a52a1b53c1c236e347d",
"testharness"
],
"css/cssom/cssom-cssText-serialize.html": [
@@ -300365,7 +300387,7 @@
"testharness"
],
"css/cssom/interfaces-expected.txt": [
- "f52cd725eb604485e5e6a302916229a21ad1ddaf",
+ "f7a8d8a1faeab5e37364bd722db996db5dab2367",
"support"
],
"css/cssom/interfaces.html": [
@@ -327576,6 +327598,10 @@
"a3a0ec93c287c9925d8da6303ae99af3953f81b8",
"support"
],
+ "html/semantics/scripting-1/the-script-element/emptyish-script-elements.html": [
+ "715290d70f861f496148666ec2fffd21e03974f4",
+ "testharness"
+ ],
"html/semantics/scripting-1/the-script-element/execution-timing/001.html": [
"d23ee4e0c5c00c5d7d4391ebb346536706667759",
"testharness"
@@ -359545,7 +359571,7 @@
"support"
],
"webrtc/RTCPeerConnection-setRemoteDescription-replaceTrack.https.html": [
- "9a52673bb20dd7eeabd01e6123c90ff181be32ed",
+ "38f2588fadab58203a7f22d25e0d828b1373fbd3",
"testharness"
],
"webrtc/RTCPeerConnection-setRemoteDescription-rollback-expected.txt": [
diff --git a/third_party/WebKit/LayoutTests/external/wpt/html/semantics/scripting-1/the-script-element/emptyish-script-elements.html b/third_party/WebKit/LayoutTests/external/wpt/html/semantics/scripting-1/the-script-element/emptyish-script-elements.html
new file mode 100644
index 0000000..37f4a87c9
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/external/wpt/html/semantics/scripting-1/the-script-element/emptyish-script-elements.html
@@ -0,0 +1,75 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>Treatment of various empty-ish script elements</title>
+<link rel="author" title="Domenic Denicola" href="mailto:d@domenic.me">
+<link rel="help" href="https://html.spec.whatwg.org/multipage/#prepare-a-script">
+<link rel="help" href="https://html.spec.whatwg.org/multipage/#already-started">
+<link rel="help" href="https://github.com/whatwg/html/issues/3419">
+
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+
+<script id="no-children"></script>
+<script id="whitespace-child"> </script>
+
+<script id="gets-a-no-text-child"></script>
+<script id="gets-an-empty-text-child"></script>
+<script id="gets-a-text-child"></script>
+<script id="gets-a-comment-child"></script>
+<script id="gets-a-text-descendant"></script>
+
+<script>
+"use strict";
+
+test(() => {
+ const el = document.querySelector("#no-children");
+ el.appendChild(document.createTextNode("window.noChildrenExecuted = true;"));
+ assert_true(window.noChildrenExecuted);
+}, "A script with no children bails early, before setting already-started, so can be executed when adding text");
+
+test(() => {
+ const el = document.querySelector("#whitespace-child");
+ el.appendChild(document.createTextNode("window.whitespaceChildExecuted = true;"));
+ assert_equals(window.whitespaceChildExecuted, undefined);
+}, "A script with a whitespace child executes, setting already-started, so adding text is a no-op");
+
+test(() => {
+ const el = document.querySelector("#gets-a-no-text-child");
+ el.appendChild(document.createElement("span"));
+ el.appendChild(document.createTextNode("window.getsANoTextChildExecuted = true;"));
+ assert_true(window.getsANoTextChildExecuted);
+}, "A script with an empty element inserted bails early, before setting already-started, so can be executed when adding text");
+
+test(() => {
+ const el = document.querySelector("#gets-an-empty-text-child");
+ el.appendChild(document.createTextNode(""));
+ el.appendChild(document.createTextNode("window.getsAnEmptyTextChildExecuted = true;"));
+ assert_true(window.getsAnEmptyTextChildExecuted);
+}, "A script with an empty text node inserted bails early, before setting already-started, so can be executed when adding text");
+
+test(() => {
+ const el = document.querySelector("#gets-a-text-child");
+ el.appendChild(document.createTextNode("window.getsATextChildExecuted1 = true;"));
+ el.appendChild(document.createTextNode("window.getsATextChildExecuted2 = true;"));
+ assert_true(window.getsATextChildExecuted1);
+ assert_equals(window.getsATextChildExecuted2, undefined);
+}, "A script with a text child inserted executes, setting already-started, so adding text is a no-op");
+
+test(() => {
+ const el = document.querySelector("#gets-a-comment-child");
+ el.appendChild(document.createComment("window.getsACommentChild1 = true;"));
+ el.appendChild(document.createTextNode("window.getsACommentChild2 = true;"));
+ assert_equals(window.getsACommentChild1, undefined);
+ assert_true(window.getsACommentChild2);
+}, "A script with a comment child inserted bails early, before setting already-started, so can be executed when adding text");
+
+test(() => {
+ const el = document.querySelector("#gets-a-text-descendant");
+ const child = document.createElement("span");
+ child.appendChild(document.createTextNode("window.getsATextDescendantExecuted1 = true;"));
+ el.appendChild(child);
+ el.appendChild(document.createTextNode("window.getsATextDescendantExecuted2 = true;"));
+ assert_equals(window.getsATextDescendantExecuted1, undefined);
+ assert_true(window.getsATextDescendantExecuted2);
+}, "A script with an element containing text inserted bails early, before setting already-started, so can be executed when adding text");
+</script>
diff --git a/third_party/WebKit/LayoutTests/platform/mac-mac10.12/external/wpt/html/semantics/scripting-1/the-script-element/emptyish-script-elements-expected.txt b/third_party/WebKit/LayoutTests/platform/mac-mac10.12/external/wpt/html/semantics/scripting-1/the-script-element/emptyish-script-elements-expected.txt
new file mode 100644
index 0000000..c024f203
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/mac-mac10.12/external/wpt/html/semantics/scripting-1/the-script-element/emptyish-script-elements-expected.txt
@@ -0,0 +1,10 @@
+This is a testharness.js-based test.
+PASS A script with no children bails early, before setting already-started, so can be executed when adding text
+PASS A script with a whitespace child executes, setting already-started, so adding text is a no-op
+FAIL A script with an empty element inserted bails early, before setting already-started, so can be executed when adding text assert_true: expected true got undefined
+FAIL A script with an empty text node inserted bails early, before setting already-started, so can be executed when adding text assert_true: expected true got undefined
+PASS A script with a text child inserted executes, setting already-started, so adding text is a no-op
+FAIL A script with a comment child inserted bails early, before setting already-started, so can be executed when adding text assert_true: expected true got undefined
+FAIL A script with an element containing text inserted bails early, before setting already-started, so can be executed when adding text assert_true: expected true got undefined
+Harness: the test ran to completion.
+
diff --git a/third_party/WebKit/LayoutTests/platform/win/external/wpt/html/semantics/scripting-1/the-script-element/emptyish-script-elements-expected.txt b/third_party/WebKit/LayoutTests/platform/win/external/wpt/html/semantics/scripting-1/the-script-element/emptyish-script-elements-expected.txt
new file mode 100644
index 0000000..c024f203
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/platform/win/external/wpt/html/semantics/scripting-1/the-script-element/emptyish-script-elements-expected.txt
@@ -0,0 +1,10 @@
+This is a testharness.js-based test.
+PASS A script with no children bails early, before setting already-started, so can be executed when adding text
+PASS A script with a whitespace child executes, setting already-started, so adding text is a no-op
+FAIL A script with an empty element inserted bails early, before setting already-started, so can be executed when adding text assert_true: expected true got undefined
+FAIL A script with an empty text node inserted bails early, before setting already-started, so can be executed when adding text assert_true: expected true got undefined
+PASS A script with a text child inserted executes, setting already-started, so adding text is a no-op
+FAIL A script with a comment child inserted bails early, before setting already-started, so can be executed when adding text assert_true: expected true got undefined
+FAIL A script with an element containing text inserted bails early, before setting already-started, so can be executed when adding text assert_true: expected true got undefined
+Harness: the test ran to completion.
+