From b1796ebd2c5f81efafd5e68b55fc2d055e2f9cb0 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 3 Dec 2024 00:27:37 +0100 Subject: [PATCH] Tests: Import a WPT test that uses HTMLIFrameElement.sandbox.supports() --- Tests/LibWeb/TestConfig.ini | 4 ++ .../sandbox-ascii-case-insensitive.txt | 7 ++++ .../sandbox-ascii-case-insensitive.html | 41 +++++++++++++++++++ .../the-iframe-element/support/blank.htm | 1 + .../support/sandbox_allow_script.html | 8 ++++ 5 files changed, 61 insertions(+) create mode 100644 Tests/LibWeb/Text/expected/wpt-import/html/semantics/embedded-content/the-iframe-element/sandbox-ascii-case-insensitive.txt create mode 100644 Tests/LibWeb/Text/input/wpt-import/html/semantics/embedded-content/the-iframe-element/sandbox-ascii-case-insensitive.html create mode 100644 Tests/LibWeb/Text/input/wpt-import/html/semantics/embedded-content/the-iframe-element/support/blank.htm create mode 100644 Tests/LibWeb/Text/input/wpt-import/html/semantics/embedded-content/the-iframe-element/support/sandbox_allow_script.html diff --git a/Tests/LibWeb/TestConfig.ini b/Tests/LibWeb/TestConfig.ini index c986374bc58..e3ec7071372 100644 --- a/Tests/LibWeb/TestConfig.ini +++ b/Tests/LibWeb/TestConfig.ini @@ -44,9 +44,13 @@ Text/input/wpt-import/html/syntax/parsing/html5lib_tests19.html Text/input/wpt-import/html/syntax/parsing/html5lib_tests5.html Text/input/wpt-import/html/syntax/parsing/html5lib_webkit01.html Text/input/wpt-import/html/syntax/parsing/named-character-references.html + +; Support files (not tests themselves) Text/input/wpt-import/html/syntax/parsing/support/no-doctype-name-eof.html Text/input/wpt-import/html/syntax/parsing/support/no-doctype-name-line.html Text/input/wpt-import/html/syntax/parsing/support/no-doctype-name-space.html +Text/input/wpt-import/html/semantics/embedded-content/the-iframe-element/support/sandbox_allow_script.html +Text/input/wpt-import/html/semantics/embedded-content/the-iframe-element/support/blank.htm ; Unknown, imported as skipped in #2148 Text/input/wpt-import/html/infrastructure/safe-passing-of-structured-data/structuredclone_0.html diff --git a/Tests/LibWeb/Text/expected/wpt-import/html/semantics/embedded-content/the-iframe-element/sandbox-ascii-case-insensitive.txt b/Tests/LibWeb/Text/expected/wpt-import/html/semantics/embedded-content/the-iframe-element/sandbox-ascii-case-insensitive.txt new file mode 100644 index 00000000000..3b538906604 --- /dev/null +++ b/Tests/LibWeb/Text/expected/wpt-import/html/semantics/embedded-content/the-iframe-element/sandbox-ascii-case-insensitive.txt @@ -0,0 +1,7 @@ +Harness status: OK + +Found 2 tests + +2 Fail +Fail iframe 'sandbox' ASCII case insensitive, allow-same-orİgin +Fail iframe 'sandbox' ASCII case insensitive, allow-ſcripts \ No newline at end of file diff --git a/Tests/LibWeb/Text/input/wpt-import/html/semantics/embedded-content/the-iframe-element/sandbox-ascii-case-insensitive.html b/Tests/LibWeb/Text/input/wpt-import/html/semantics/embedded-content/the-iframe-element/sandbox-ascii-case-insensitive.html new file mode 100644 index 00000000000..1769ddd9a5e --- /dev/null +++ b/Tests/LibWeb/Text/input/wpt-import/html/semantics/embedded-content/the-iframe-element/sandbox-ascii-case-insensitive.html @@ -0,0 +1,41 @@ + + +iframe 'sandbox' ASCII case insensitive + + + + + diff --git a/Tests/LibWeb/Text/input/wpt-import/html/semantics/embedded-content/the-iframe-element/support/blank.htm b/Tests/LibWeb/Text/input/wpt-import/html/semantics/embedded-content/the-iframe-element/support/blank.htm new file mode 100644 index 00000000000..18ecdcb795c --- /dev/null +++ b/Tests/LibWeb/Text/input/wpt-import/html/semantics/embedded-content/the-iframe-element/support/blank.htm @@ -0,0 +1 @@ + diff --git a/Tests/LibWeb/Text/input/wpt-import/html/semantics/embedded-content/the-iframe-element/support/sandbox_allow_script.html b/Tests/LibWeb/Text/input/wpt-import/html/semantics/embedded-content/the-iframe-element/support/sandbox_allow_script.html new file mode 100644 index 00000000000..a2d5b73eda8 --- /dev/null +++ b/Tests/LibWeb/Text/input/wpt-import/html/semantics/embedded-content/the-iframe-element/support/sandbox_allow_script.html @@ -0,0 +1,8 @@ + + +HTML Test: sandbox_allow_scripts + +
Before change
+