From e030193e5fdf27703da5234015cb9cf65da525ee Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Mon, 19 Feb 2024 15:12:04 -0500 Subject: [PATCH] Tests/LibWeb: Move LibWeb test frames to their own directory We currently have a handful of iframe tests whose sources are in the "input" directory. This means they get run as their own tests, when they are really just helper files. We've had to add empty test expectation files for these "tests", and invoke a dummy test() method just to keep the test runner happy. Instead, move them to their own directory so the test runner does not see them at all. --- .../Text/data/history-pushstate-iframe.html | 15 ++++++++++++++ .../Text/data/iframe-test-content-1.html | 3 +++ .../Text/data/iframe-test-content-2.html | 3 +++ .../navigation-navigate-iframe.html | 11 +++------- .../navigation/history-pushstate-iframe.txt | 0 .../navigation/iframe-test-content-1.txt | 0 .../navigation/iframe-test-content-2.txt | 0 .../navigation/navigation-navigate-iframe.txt | 0 .../navigation/history-pushstate-iframe.html | 20 ------------------- .../input/navigation/history-pushstate.html | 4 ++-- .../input/navigation/iframe-navigate-src.html | 4 ++-- .../navigation/iframe-test-content-1.html | 8 -------- .../navigation/iframe-test-content-2.html | 8 -------- .../input/navigation/navigation-navigate.html | 4 ++-- 14 files changed, 30 insertions(+), 50 deletions(-) create mode 100644 Tests/LibWeb/Text/data/history-pushstate-iframe.html create mode 100644 Tests/LibWeb/Text/data/iframe-test-content-1.html create mode 100644 Tests/LibWeb/Text/data/iframe-test-content-2.html rename Tests/LibWeb/Text/{input/navigation => data}/navigation-navigate-iframe.html (94%) delete mode 100644 Tests/LibWeb/Text/expected/navigation/history-pushstate-iframe.txt delete mode 100644 Tests/LibWeb/Text/expected/navigation/iframe-test-content-1.txt delete mode 100644 Tests/LibWeb/Text/expected/navigation/iframe-test-content-2.txt delete mode 100644 Tests/LibWeb/Text/expected/navigation/navigation-navigate-iframe.txt delete mode 100644 Tests/LibWeb/Text/input/navigation/history-pushstate-iframe.html delete mode 100644 Tests/LibWeb/Text/input/navigation/iframe-test-content-1.html delete mode 100644 Tests/LibWeb/Text/input/navigation/iframe-test-content-2.html diff --git a/Tests/LibWeb/Text/data/history-pushstate-iframe.html b/Tests/LibWeb/Text/data/history-pushstate-iframe.html new file mode 100644 index 00000000000..1f227bb5238 --- /dev/null +++ b/Tests/LibWeb/Text/data/history-pushstate-iframe.html @@ -0,0 +1,15 @@ + diff --git a/Tests/LibWeb/Text/data/iframe-test-content-1.html b/Tests/LibWeb/Text/data/iframe-test-content-1.html new file mode 100644 index 00000000000..77d9d100753 --- /dev/null +++ b/Tests/LibWeb/Text/data/iframe-test-content-1.html @@ -0,0 +1,3 @@ + diff --git a/Tests/LibWeb/Text/data/iframe-test-content-2.html b/Tests/LibWeb/Text/data/iframe-test-content-2.html new file mode 100644 index 00000000000..d651bcbb303 --- /dev/null +++ b/Tests/LibWeb/Text/data/iframe-test-content-2.html @@ -0,0 +1,3 @@ + diff --git a/Tests/LibWeb/Text/input/navigation/navigation-navigate-iframe.html b/Tests/LibWeb/Text/data/navigation-navigate-iframe.html similarity index 94% rename from Tests/LibWeb/Text/input/navigation/navigation-navigate-iframe.html rename to Tests/LibWeb/Text/data/navigation-navigate-iframe.html index 30eee251a51..6bfcc111085 100644 --- a/Tests/LibWeb/Text/input/navigation/navigation-navigate-iframe.html +++ b/Tests/LibWeb/Text/data/navigation-navigate-iframe.html @@ -1,15 +1,10 @@ - diff --git a/Tests/LibWeb/Text/expected/navigation/history-pushstate-iframe.txt b/Tests/LibWeb/Text/expected/navigation/history-pushstate-iframe.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/Tests/LibWeb/Text/expected/navigation/iframe-test-content-1.txt b/Tests/LibWeb/Text/expected/navigation/iframe-test-content-1.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/Tests/LibWeb/Text/expected/navigation/iframe-test-content-2.txt b/Tests/LibWeb/Text/expected/navigation/iframe-test-content-2.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/Tests/LibWeb/Text/expected/navigation/navigation-navigate-iframe.txt b/Tests/LibWeb/Text/expected/navigation/navigation-navigate-iframe.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/Tests/LibWeb/Text/input/navigation/history-pushstate-iframe.html b/Tests/LibWeb/Text/input/navigation/history-pushstate-iframe.html deleted file mode 100644 index ae62b21d477..00000000000 --- a/Tests/LibWeb/Text/input/navigation/history-pushstate-iframe.html +++ /dev/null @@ -1,20 +0,0 @@ - - diff --git a/Tests/LibWeb/Text/input/navigation/history-pushstate.html b/Tests/LibWeb/Text/input/navigation/history-pushstate.html index 60a12d1654e..4c09ff4548c 100644 --- a/Tests/LibWeb/Text/input/navigation/history-pushstate.html +++ b/Tests/LibWeb/Text/input/navigation/history-pushstate.html @@ -18,6 +18,6 @@ done(); }); - await navigateIframe("./history-pushstate-iframe.html"); - }); + await navigateIframe("../../data/history-pushstate-iframe.html"); + }); diff --git a/Tests/LibWeb/Text/input/navigation/iframe-navigate-src.html b/Tests/LibWeb/Text/input/navigation/iframe-navigate-src.html index 0f0664b9f15..1248dfc4afd 100644 --- a/Tests/LibWeb/Text/input/navigation/iframe-navigate-src.html +++ b/Tests/LibWeb/Text/input/navigation/iframe-navigate-src.html @@ -21,8 +21,8 @@ } }); - await navigateIframe("iframe-test-content-1.html"); - await navigateIframe("iframe-test-content-2.html"); + await navigateIframe("../../data/iframe-test-content-1.html"); + await navigateIframe("../../data/iframe-test-content-2.html"); }); diff --git a/Tests/LibWeb/Text/input/navigation/iframe-test-content-1.html b/Tests/LibWeb/Text/input/navigation/iframe-test-content-1.html deleted file mode 100644 index 080d84daba9..00000000000 --- a/Tests/LibWeb/Text/input/navigation/iframe-test-content-1.html +++ /dev/null @@ -1,8 +0,0 @@ - - diff --git a/Tests/LibWeb/Text/input/navigation/iframe-test-content-2.html b/Tests/LibWeb/Text/input/navigation/iframe-test-content-2.html deleted file mode 100644 index 42694e61863..00000000000 --- a/Tests/LibWeb/Text/input/navigation/iframe-test-content-2.html +++ /dev/null @@ -1,8 +0,0 @@ - - diff --git a/Tests/LibWeb/Text/input/navigation/navigation-navigate.html b/Tests/LibWeb/Text/input/navigation/navigation-navigate.html index b478e54cef3..ab0181d0a36 100644 --- a/Tests/LibWeb/Text/input/navigation/navigation-navigate.html +++ b/Tests/LibWeb/Text/input/navigation/navigation-navigate.html @@ -19,6 +19,6 @@ done(); }); - await navigateIframe("./navigation-navigate-iframe.html"); - }); + await navigateIframe("../../data/navigation-navigate-iframe.html"); + });