-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix attachment tests -folder-icon, -type-attribute, -default-icon
https://bugs.webkit.org/show_bug.cgi?id=265962 rdar://119272478 Reviewed by Tim Nguyen. Let the attachments settle with the expected icons before taking a screenshot. * LayoutTests/fast/attachment/attachment-default-icon-expected.html: * LayoutTests/fast/attachment/attachment-default-icon.html: * LayoutTests/fast/attachment/attachment-folder-icon-expected.html: * LayoutTests/fast/attachment/attachment-folder-icon.html: * LayoutTests/fast/attachment/attachment-type-attribute-expected.html: * LayoutTests/fast/attachment/attachment-type-attribute.html: * LayoutTests/platform/mac-wk1/TestExpectations: * LayoutTests/platform/mac-wk2/TestExpectations: Canonical link: https://commits.webkit.org/272293@main
- Loading branch information
Showing
8 changed files
with
31 additions
and
11 deletions.
There are no files selected for viewing
6 changes: 5 additions & 1 deletion
6
LayoutTests/fast/attachment/attachment-default-icon-expected.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 |
---|---|---|
@@ -1,6 +1,10 @@ | ||
<!DOCTYPE html><!-- webkit-test-runner [ AttachmentElementEnabled=true ] --> | ||
<html> | ||
<html class="reftest-wait"> | ||
<body> | ||
<attachment id="attachment" title=" " type="public.data"></attachment> | ||
<script src="resources/attachment-test-utils.js"></script> | ||
<script> | ||
takeExpectedScreenshotWhenAttachmentsSettled(); | ||
</script> | ||
</body> | ||
</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 |
---|---|---|
@@ -1,6 +1,10 @@ | ||
<!DOCTYPE html><!-- webkit-test-runner [ AttachmentElementEnabled=true ] --> | ||
<html> | ||
<html class="reftest-wait"> | ||
<body> | ||
<attachment title=" "></attachment> | ||
<script src="resources/attachment-test-utils.js"></script> | ||
<script> | ||
takeActualScreenshotWhenAttachmentsSettled(); | ||
</script> | ||
</body> | ||
</html> |
5 changes: 4 additions & 1 deletion
5
LayoutTests/fast/attachment/attachment-folder-icon-expected.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 |
---|---|---|
@@ -1,15 +1,18 @@ | ||
<!DOCTYPE html><!-- webkit-test-runner [ AttachmentElementEnabled=true ] --> | ||
<html> | ||
<html class="reftest-wait"> | ||
<body> | ||
<attachment title=" "></attachment> | ||
<attachment title=" "></attachment> | ||
<script src="resources/attachment-test-utils.js"></script> | ||
<script> | ||
if (window.internals) | ||
file = window.internals.createFile("resources/"); | ||
|
||
var attachments = document.getElementsByTagName("attachment"); | ||
for (var i = 0; i < attachments.length; i++) | ||
attachments[i].file = file; | ||
|
||
takeExpectedScreenshotWhenAttachmentsSettled(); | ||
</script> | ||
</body> | ||
</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 |
---|---|---|
@@ -1,7 +1,11 @@ | ||
<!DOCTYPE html><!-- webkit-test-runner [ AttachmentElementEnabled=true ] --> | ||
<html> | ||
<html class="reftest-wait"> | ||
<body> | ||
<attachment title=" " type="multipart/x-folder"></attachment> | ||
<attachment title=" " type="application/vnd.apple.folder"></attachment> | ||
<script src="resources/attachment-test-utils.js"></script> | ||
<script> | ||
takeActualScreenshotWhenAttachmentsSettled(); | ||
</script> | ||
</body> | ||
</html> |
5 changes: 4 additions & 1 deletion
5
LayoutTests/fast/attachment/attachment-type-attribute-expected.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 |
---|---|---|
@@ -1,13 +1,16 @@ | ||
<!DOCTYPE html><!-- webkit-test-runner [ AttachmentElementEnabled=true ] --> | ||
<html> | ||
<html class="reftest-wait"> | ||
<body> | ||
<attachment id="attachment" title=" "></attachment> | ||
<script src="resources/attachment-test-utils.js"></script> | ||
<script> | ||
var file; | ||
if (window.internals) | ||
file = window.internals.createFile("resources/test-file.txt"); | ||
|
||
document.getElementById("attachment").file = file; | ||
|
||
takeExpectedScreenshotWhenAttachmentsSettled(); | ||
</script> | ||
</body> | ||
</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 |
---|---|---|
@@ -1,6 +1,10 @@ | ||
<!DOCTYPE html><!-- webkit-test-runner [ AttachmentElementEnabled=true ] --> | ||
<html> | ||
<html class="reftest-wait"> | ||
<body> | ||
<attachment type="text/plain" title=" "></attachment> | ||
<script src="resources/attachment-test-utils.js"></script> | ||
<script> | ||
takeActualScreenshotWhenAttachmentsSettled(); | ||
</script> | ||
</body> | ||
</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
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