From 6cee028ecc7af7308c0ca5b2983394d04ea77e98 Mon Sep 17 00:00:00 2001 From: Shannon Booth Date: Mon, 21 Aug 2023 21:47:44 +1200 Subject: [PATCH] LibWeb/Tests: Port HTMLCollection [[SameObject]] test to a text test This test was written before we had the facility to write text tests - port this test to a text test so that we test against it in CI. --- ...ehavior-for-htmlcollection-properties.html | 52 ------------------- ...behavior-for-htmlcollection-properties.txt | 13 +++++ ...ehavior-for-htmlcollection-properties.html | 33 ++++++++++++ 3 files changed, 46 insertions(+), 52 deletions(-) delete mode 100644 Base/res/html/tests/sameobject-behavior-for-htmlcollection-properties.html create mode 100644 Tests/LibWeb/Text/expected/sameobject-behavior-for-htmlcollection-properties.txt create mode 100644 Tests/LibWeb/Text/input/sameobject-behavior-for-htmlcollection-properties.html diff --git a/Base/res/html/tests/sameobject-behavior-for-htmlcollection-properties.html b/Base/res/html/tests/sameobject-behavior-for-htmlcollection-properties.html deleted file mode 100644 index aa3b923ef6..0000000000 --- a/Base/res/html/tests/sameobject-behavior-for-htmlcollection-properties.html +++ /dev/null @@ -1,52 +0,0 @@ - - -

This test verifies that various HTMLCollection properties have [SameObject] behavior.

-

You should see a bunch of green balls below this line.

-
-
- - - diff --git a/Tests/LibWeb/Text/expected/sameobject-behavior-for-htmlcollection-properties.txt b/Tests/LibWeb/Text/expected/sameobject-behavior-for-htmlcollection-properties.txt new file mode 100644 index 0000000000..2fdd97f52c --- /dev/null +++ b/Tests/LibWeb/Text/expected/sameobject-behavior-for-htmlcollection-properties.txt @@ -0,0 +1,13 @@ + table.tBodies pass +table.rows pass +thead.rows pass +tr.cells pass +form.elements pass +document.applets pass +document.anchors pass +document.images pass +document.embeds pass +document.plugins pass +document.links pass +document.forms pass +document.scripts pass diff --git a/Tests/LibWeb/Text/input/sameobject-behavior-for-htmlcollection-properties.html b/Tests/LibWeb/Text/input/sameobject-behavior-for-htmlcollection-properties.html new file mode 100644 index 0000000000..7cd174a8d7 --- /dev/null +++ b/Tests/LibWeb/Text/input/sameobject-behavior-for-htmlcollection-properties.html @@ -0,0 +1,33 @@ + +
+ + +