diff options
Diffstat (limited to 'testing/web-platform/tests/png/errors')
7 files changed, 76 insertions, 0 deletions
diff --git a/testing/web-platform/tests/png/errors/support/invalid-unknown-ancillary-after-IDAT.png b/testing/web-platform/tests/png/errors/support/invalid-unknown-ancillary-after-IDAT.png Binary files differnew file mode 100644 index 0000000000..e9c9e7ee02 --- /dev/null +++ b/testing/web-platform/tests/png/errors/support/invalid-unknown-ancillary-after-IDAT.png diff --git a/testing/web-platform/tests/png/errors/support/invalid-unknown-ancillary.png b/testing/web-platform/tests/png/errors/support/invalid-unknown-ancillary.png Binary files differnew file mode 100644 index 0000000000..21373a5a5a --- /dev/null +++ b/testing/web-platform/tests/png/errors/support/invalid-unknown-ancillary.png diff --git a/testing/web-platform/tests/png/errors/support/no-invalid-chunks.png b/testing/web-platform/tests/png/errors/support/no-invalid-chunks.png Binary files differnew file mode 100644 index 0000000000..6605d47985 --- /dev/null +++ b/testing/web-platform/tests/png/errors/support/no-invalid-chunks.png diff --git a/testing/web-platform/tests/png/errors/unknown-ancillary-error-recovery-2-ref.html b/testing/web-platform/tests/png/errors/unknown-ancillary-error-recovery-2-ref.html new file mode 100644 index 0000000000..cfa2cbb6f1 --- /dev/null +++ b/testing/web-platform/tests/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>
\ No newline at end of file diff --git a/testing/web-platform/tests/png/errors/unknown-ancillary-error-recovery-2.html b/testing/web-platform/tests/png/errors/unknown-ancillary-error-recovery-2.html new file mode 100644 index 0000000000..23191fe39f --- /dev/null +++ b/testing/web-platform/tests/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>
\ No newline at end of file diff --git a/testing/web-platform/tests/png/errors/unknown-ancillary-error-recovery-ref.html b/testing/web-platform/tests/png/errors/unknown-ancillary-error-recovery-ref.html new file mode 100644 index 0000000000..cfa2cbb6f1 --- /dev/null +++ b/testing/web-platform/tests/png/errors/unknown-ancillary-error-recovery-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>
\ No newline at end of file diff --git a/testing/web-platform/tests/png/errors/unknown-ancillary-error-recovery.html b/testing/web-platform/tests/png/errors/unknown-ancillary-error-recovery.html new file mode 100644 index 0000000000..df37153fd7 --- /dev/null +++ b/testing/web-platform/tests/png/errors/unknown-ancillary-error-recovery.html @@ -0,0 +1,21 @@ +<!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"> +<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-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.png" alt=""></div> +</body> +</html>
\ No newline at end of file |