Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add test for invalid ancillary after IDAT #44936

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions png/errors/unknown-ancillary-error-recovery-2-ref.html
@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html>
<meta charset="utf-8">
<title>PNG Third Edition: Decoder error recovery, invalid ancillary</title>
<link rel="author" title="Chris Lilley" href="mailto:chris@w3.org">
<style>
.test {
width: 32px;
height: 32px;
background-color: green;
}
</style>
<body>
<p>Test passes if you see a rainbow square, and not a red one.</p>
<div class="test"><img src="support/no-invalid-chunks.png" alt=""></div>
</body>
</html>
21 changes: 21 additions & 0 deletions png/errors/unknown-ancillary-error-recovery-2.html
@@ -0,0 +1,21 @@
<!DOCTYPE html>
<html>
<meta charset="utf-8">
<title>PNG Third Edition: Decoder error recovery, invalid ancillary after IDAT</title>
<link rel="author" title="Chris Lilley" href="mailto:chris@w3.org">
<link rel="help" href="https://www.w3.org/TR/png-3/#13Decoders.Errors">
<link rel="help" href="https://github.com/w3c/PNG-spec/issues/320">
<link rel="match" href="unknown-ancillary-error-recovery-2-ref.html">
<meta name="assert" content="Encountering an unknown ancillary chunk is never an error. The chunk can simply be ignored.">
<style>
.test {
width: 32px;
height: 32px;
background-color: red;
}
</style>
<body>
<p>Test passes if you see a rainbow square, and not a red one.</p>
<div class="test"><img src="support/invalid-unknown-ancillary-after-IDAT.png" alt=""></div>
</body>
</html>