From 36d22d82aa202bb199967e9512281e9a53db42c9 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 21:33:14 +0200 Subject: Adding upstream version 115.7.0esr. Signed-off-by: Daniel Baumann --- .../declarative-after-attachshadow.tentative.html | 46 ++++ .../declarative-parser-interaction.tentative.html | 39 +++ ...eclarative-shadow-dom-attachment.tentative.html | 98 +++++++ .../declarative-shadow-dom-basic.tentative.html | 294 +++++++++++++++++++++ .../declarative-shadow-dom-opt-in.tentative.html | 198 ++++++++++++++ ...declarative-with-disabled-shadow.tentative.html | 31 +++ .../declarative/getinnerhtml.tentative.html | 79 ++++++ .../innerhtml-before-closing-tag.tentative.html | 51 ++++ .../innerhtml-on-ordinary-template.tentative.html | 49 ++++ ...move-template-before-closing-tag.tentative.html | 91 +++++++ .../declarative/script-access.tentative.html | 120 +++++++++ .../support/declarative-child-frame.html | 23 ++ .../shadow-dom/declarative/support/helpers.js | 4 + 13 files changed, 1123 insertions(+) create mode 100644 testing/web-platform/tests/shadow-dom/declarative/declarative-after-attachshadow.tentative.html create mode 100644 testing/web-platform/tests/shadow-dom/declarative/declarative-parser-interaction.tentative.html create mode 100644 testing/web-platform/tests/shadow-dom/declarative/declarative-shadow-dom-attachment.tentative.html create mode 100644 testing/web-platform/tests/shadow-dom/declarative/declarative-shadow-dom-basic.tentative.html create mode 100644 testing/web-platform/tests/shadow-dom/declarative/declarative-shadow-dom-opt-in.tentative.html create mode 100644 testing/web-platform/tests/shadow-dom/declarative/declarative-with-disabled-shadow.tentative.html create mode 100644 testing/web-platform/tests/shadow-dom/declarative/getinnerhtml.tentative.html create mode 100644 testing/web-platform/tests/shadow-dom/declarative/innerhtml-before-closing-tag.tentative.html create mode 100644 testing/web-platform/tests/shadow-dom/declarative/innerhtml-on-ordinary-template.tentative.html create mode 100644 testing/web-platform/tests/shadow-dom/declarative/move-template-before-closing-tag.tentative.html create mode 100644 testing/web-platform/tests/shadow-dom/declarative/script-access.tentative.html create mode 100644 testing/web-platform/tests/shadow-dom/declarative/support/declarative-child-frame.html create mode 100644 testing/web-platform/tests/shadow-dom/declarative/support/helpers.js (limited to 'testing/web-platform/tests/shadow-dom/declarative') diff --git a/testing/web-platform/tests/shadow-dom/declarative/declarative-after-attachshadow.tentative.html b/testing/web-platform/tests/shadow-dom/declarative/declarative-after-attachshadow.tentative.html new file mode 100644 index 0000000000..bfe2d66cfa --- /dev/null +++ b/testing/web-platform/tests/shadow-dom/declarative/declarative-after-attachshadow.tentative.html @@ -0,0 +1,46 @@ + +Declarative Shadow DOM after attachShadow + + + + + + + + +
+ + + +
+ + + diff --git a/testing/web-platform/tests/shadow-dom/declarative/declarative-parser-interaction.tentative.html b/testing/web-platform/tests/shadow-dom/declarative/declarative-parser-interaction.tentative.html new file mode 100644 index 0000000000..f5ff13822b --- /dev/null +++ b/testing/web-platform/tests/shadow-dom/declarative/declarative-parser-interaction.tentative.html @@ -0,0 +1,39 @@ + + +Declarative Shadow DOM + + + + + + + + +This test should not crash, and there should be two lines of text visible below. + + +

Line 1

+
+ + + +

Line 2

+
+ + diff --git a/testing/web-platform/tests/shadow-dom/declarative/declarative-shadow-dom-attachment.tentative.html b/testing/web-platform/tests/shadow-dom/declarative/declarative-shadow-dom-attachment.tentative.html new file mode 100644 index 0000000000..d752b62d31 --- /dev/null +++ b/testing/web-platform/tests/shadow-dom/declarative/declarative-shadow-dom-attachment.tentative.html @@ -0,0 +1,98 @@ + +Declarative Shadow DOM Element Attachment + + + + + + + + diff --git a/testing/web-platform/tests/shadow-dom/declarative/declarative-shadow-dom-basic.tentative.html b/testing/web-platform/tests/shadow-dom/declarative/declarative-shadow-dom-basic.tentative.html new file mode 100644 index 0000000000..b71f7d1a37 --- /dev/null +++ b/testing/web-platform/tests/shadow-dom/declarative/declarative-shadow-dom-basic.tentative.html @@ -0,0 +1,294 @@ + + +Declarative Shadow DOM + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/testing/web-platform/tests/shadow-dom/declarative/declarative-shadow-dom-opt-in.tentative.html b/testing/web-platform/tests/shadow-dom/declarative/declarative-shadow-dom-opt-in.tentative.html new file mode 100644 index 0000000000..0a59768d22 --- /dev/null +++ b/testing/web-platform/tests/shadow-dom/declarative/declarative-shadow-dom-opt-in.tentative.html @@ -0,0 +1,198 @@ + + +Declarative Shadow DOM + + + + + + + + +
+ + + + + + + diff --git a/testing/web-platform/tests/shadow-dom/declarative/declarative-with-disabled-shadow.tentative.html b/testing/web-platform/tests/shadow-dom/declarative/declarative-with-disabled-shadow.tentative.html new file mode 100644 index 0000000000..849bffa5a7 --- /dev/null +++ b/testing/web-platform/tests/shadow-dom/declarative/declarative-with-disabled-shadow.tentative.html @@ -0,0 +1,31 @@ + +Declarative Shadow DOM with shadow disabled + + + + + + + + + + + + + + diff --git a/testing/web-platform/tests/shadow-dom/declarative/getinnerhtml.tentative.html b/testing/web-platform/tests/shadow-dom/declarative/getinnerhtml.tentative.html new file mode 100644 index 0000000000..ad7734d51e --- /dev/null +++ b/testing/web-platform/tests/shadow-dom/declarative/getinnerhtml.tentative.html @@ -0,0 +1,79 @@ + +getInnerHTML + + + + + + + + + diff --git a/testing/web-platform/tests/shadow-dom/declarative/innerhtml-before-closing-tag.tentative.html b/testing/web-platform/tests/shadow-dom/declarative/innerhtml-before-closing-tag.tentative.html new file mode 100644 index 0000000000..e87c425860 --- /dev/null +++ b/testing/web-platform/tests/shadow-dom/declarative/innerhtml-before-closing-tag.tentative.html @@ -0,0 +1,51 @@ + +Declarative Shadow DOM innerHTML + + + + + + + + +
+ +
+ + + diff --git a/testing/web-platform/tests/shadow-dom/declarative/innerhtml-on-ordinary-template.tentative.html b/testing/web-platform/tests/shadow-dom/declarative/innerhtml-on-ordinary-template.tentative.html new file mode 100644 index 0000000000..87260013de --- /dev/null +++ b/testing/web-platform/tests/shadow-dom/declarative/innerhtml-on-ordinary-template.tentative.html @@ -0,0 +1,49 @@ + +Declarative Shadow DOM innerHTML + + + + + + + + +
+ + + + + +
+ + + diff --git a/testing/web-platform/tests/shadow-dom/declarative/move-template-before-closing-tag.tentative.html b/testing/web-platform/tests/shadow-dom/declarative/move-template-before-closing-tag.tentative.html new file mode 100644 index 0000000000..a3d7806f5d --- /dev/null +++ b/testing/web-platform/tests/shadow-dom/declarative/move-template-before-closing-tag.tentative.html @@ -0,0 +1,91 @@ + +Declarative Shadow DOM: moving the template doesn't change attachment point + + + + + + + + + + +
+
+
+ +
+
+ +
+
+
+ +
+
+ +
+
+ +
+ + + diff --git a/testing/web-platform/tests/shadow-dom/declarative/script-access.tentative.html b/testing/web-platform/tests/shadow-dom/declarative/script-access.tentative.html new file mode 100644 index 0000000000..6c927b1bd7 --- /dev/null +++ b/testing/web-platform/tests/shadow-dom/declarative/script-access.tentative.html @@ -0,0 +1,120 @@ + +Declarative Shadow DOM + + + + + + + + +
+ +
+ +
+ + + + + + +
+ +
+ +
+ +
+ + diff --git a/testing/web-platform/tests/shadow-dom/declarative/support/declarative-child-frame.html b/testing/web-platform/tests/shadow-dom/declarative/support/declarative-child-frame.html new file mode 100644 index 0000000000..603c47743b --- /dev/null +++ b/testing/web-platform/tests/shadow-dom/declarative/support/declarative-child-frame.html @@ -0,0 +1,23 @@ +
+
+
+ +
+
+
+ + diff --git a/testing/web-platform/tests/shadow-dom/declarative/support/helpers.js b/testing/web-platform/tests/shadow-dom/declarative/support/helpers.js new file mode 100644 index 0000000000..0be3add620 --- /dev/null +++ b/testing/web-platform/tests/shadow-dom/declarative/support/helpers.js @@ -0,0 +1,4 @@ +function setInnerHTML(el,content) { + const fragment = (new DOMParser()).parseFromString(`
${content}
`, 'text/html', {includeShadowRoots: true}); + (el instanceof HTMLTemplateElement ? el.content : el).replaceChildren(...fragment.body.firstChild.childNodes); +} -- cgit v1.2.3