Skip to content

Commit

Permalink
Add additional test with image tag post 263850@main
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Ahmad-S792 authored and Ahmad Saleem committed May 24, 2023
1 parent b5a4c01 commit 31ed359
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 0 deletions.
@@ -0,0 +1 @@
This test requires DumpRenderTree to see the log of what resources are loaded.
17 changes: 17 additions & 0 deletions LayoutTests/fast/preloader/image-in-nested-template-01.html
@@ -0,0 +1,17 @@
<!DOCTYPE html>
<body>
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.dumpResourceResponseMIMETypes();
}
</script>
This test requires DumpRenderTree to see the log of what resources are loaded.
<template>
<template></template>
<script src=resources/non-existant.js></script>
<script>document.write("<plaintext>");</script>
<!-- This test is copy of 'image-in-nested-template' with incorrect <image> tag -->
<image src=resources/image1.png>
</template>
</body>
@@ -0,0 +1,4 @@
This test requires DumpRenderTree to see the log of what resources are loaded.

<image src=resources/image1.png>

11 changes: 11 additions & 0 deletions LayoutTests/fast/preloader/image-with-incorrect-tag.html
@@ -0,0 +1,11 @@
<body>
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.dumpResourceResponseMIMETypes();
}
</script>
This test requires DumpRenderTree to see the log of what resources are loaded.
<script src=resources/non-existant.js></script>
<script>document.write("<plaintext>");</script>
<image src=resources/image1.png>

0 comments on commit 31ed359

Please sign in to comment.