From 31ed359e3324f2f5c4fad10c6bfbad5675e1d577 Mon Sep 17 00:00:00 2001 From: Ahmad Saleem Date: Wed, 24 May 2023 16:36:21 -0700 Subject: [PATCH] Add additional test with `image` tag post 263850@main https://bugs.webkit.org/show_bug.cgi?id=257106 Reviewed by Ryosuke Niwa. This patch adds another test case scenario post 263850@main for incorrect tag within nested template to ensure it does not preload. Further, it also add 'image' (incorrect) tag test to confirm that it does not preload as well. * LayoutTests/fast/preloader/image-in-nested-template-01.html: Add Test Case * LayoutTests/fast/preloader/image-in-nested-template-01-expected.txt: Add Test Case Expectation * LayoutTests/fast/preloader/image-with-incorrect-tag.html: Add Test Case * LayoutTests/fast/preloader/image-with-incorrect-tag-expected.txt: Add Test Case Expectation Canonical link: https://commits.webkit.org/264492@main --- .../image-in-nested-template-01-expected.txt | 1 + .../preloader/image-in-nested-template-01.html | 17 +++++++++++++++++ .../image-with-incorrect-tag-expected.txt | 4 ++++ .../preloader/image-with-incorrect-tag.html | 11 +++++++++++ 4 files changed, 33 insertions(+) create mode 100644 LayoutTests/fast/preloader/image-in-nested-template-01-expected.txt create mode 100644 LayoutTests/fast/preloader/image-in-nested-template-01.html create mode 100644 LayoutTests/fast/preloader/image-with-incorrect-tag-expected.txt create mode 100644 LayoutTests/fast/preloader/image-with-incorrect-tag.html diff --git a/LayoutTests/fast/preloader/image-in-nested-template-01-expected.txt b/LayoutTests/fast/preloader/image-in-nested-template-01-expected.txt new file mode 100644 index 000000000000..8403f208bfd4 --- /dev/null +++ b/LayoutTests/fast/preloader/image-in-nested-template-01-expected.txt @@ -0,0 +1 @@ +This test requires DumpRenderTree to see the log of what resources are loaded. diff --git a/LayoutTests/fast/preloader/image-in-nested-template-01.html b/LayoutTests/fast/preloader/image-in-nested-template-01.html new file mode 100644 index 000000000000..4715c8fb50d9 --- /dev/null +++ b/LayoutTests/fast/preloader/image-in-nested-template-01.html @@ -0,0 +1,17 @@ + + + + This test requires DumpRenderTree to see the log of what resources are loaded. + + diff --git a/LayoutTests/fast/preloader/image-with-incorrect-tag-expected.txt b/LayoutTests/fast/preloader/image-with-incorrect-tag-expected.txt new file mode 100644 index 000000000000..2ae64e76dafe --- /dev/null +++ b/LayoutTests/fast/preloader/image-with-incorrect-tag-expected.txt @@ -0,0 +1,4 @@ +This test requires DumpRenderTree to see the log of what resources are loaded. + + + diff --git a/LayoutTests/fast/preloader/image-with-incorrect-tag.html b/LayoutTests/fast/preloader/image-with-incorrect-tag.html new file mode 100644 index 000000000000..d97e4113d98f --- /dev/null +++ b/LayoutTests/fast/preloader/image-with-incorrect-tag.html @@ -0,0 +1,11 @@ + + + This test requires DumpRenderTree to see the log of what resources are loaded. + + +