Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
1 parent
b5a4c01
commit 31ed359
Showing
4 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
LayoutTests/fast/preloader/image-in-nested-template-01-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
This test requires DumpRenderTree to see the log of what resources are loaded. |
17 changes: 17 additions & 0 deletions
17
LayoutTests/fast/preloader/image-in-nested-template-01.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |
4 changes: 4 additions & 0 deletions
4
LayoutTests/fast/preloader/image-with-incorrect-tag-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
This test requires DumpRenderTree to see the log of what resources are loaded. | ||
|
||
<image src=resources/image1.png> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |