summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/png
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/png')
-rw-r--r--testing/web-platform/tests/png/cICP-wins-ref.html17
-rw-r--r--testing/web-platform/tests/png/cICP-wins.html22
-rw-r--r--testing/web-platform/tests/png/errors/support/invalid-unknown-ancillary-after-IDAT.pngbin0 -> 261 bytes
-rw-r--r--testing/web-platform/tests/png/errors/support/invalid-unknown-ancillary.pngbin0 -> 263 bytes
-rw-r--r--testing/web-platform/tests/png/errors/support/no-invalid-chunks.pngbin0 -> 248 bytes
-rw-r--r--testing/web-platform/tests/png/errors/unknown-ancillary-error-recovery-2-ref.html17
-rw-r--r--testing/web-platform/tests/png/errors/unknown-ancillary-error-recovery-2.html21
-rw-r--r--testing/web-platform/tests/png/errors/unknown-ancillary-error-recovery-ref.html17
-rw-r--r--testing/web-platform/tests/png/errors/unknown-ancillary-error-recovery.html21
-rw-r--r--testing/web-platform/tests/png/support/cICP-and-iCCP.pngbin0 -> 2745 bytes
-rw-r--r--testing/web-platform/tests/png/support/srgb_green.pngbin0 -> 192 bytes
11 files changed, 115 insertions, 0 deletions
diff --git a/testing/web-platform/tests/png/cICP-wins-ref.html b/testing/web-platform/tests/png/cICP-wins-ref.html
new file mode 100644
index 0000000000..de7629453d
--- /dev/null
+++ b/testing/web-platform/tests/png/cICP-wins-ref.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html>
+<meta charset="utf-8">
+<title>PNG Third Edition: Coding Independent Code Points</title>
+<link rel="author" title="Chris Lilley" href="mailto:chris@w3.org">
+<style>
+ .test {
+ width: 128px;
+ height: 64px;
+ background-color: green;
+ }
+</style>
+<body>
+ <p>Test passes if you see a green rectangle, and no red.</p>
+ <div class="test"><img src="support/srgb_green.png" alt=""></div>
+</body>
+</html> \ No newline at end of file
diff --git a/testing/web-platform/tests/png/cICP-wins.html b/testing/web-platform/tests/png/cICP-wins.html
new file mode 100644
index 0000000000..c2aa29e304
--- /dev/null
+++ b/testing/web-platform/tests/png/cICP-wins.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<html>
+<meta charset="utf-8">
+<title>PNG Third Edition: Coding Independent Code Points</title>
+<link rel="author" title="Chris Lilley" href="mailto:chris@w3.org">
+<link rel="help" href="https://www.w3.org/TR/png-3/#11iCCP">
+<link rel="help" href="https://www.w3.org/TR/png-3/#cICP-chunk">
+
+<link rel="match" href="cICP-wins-ref.html">
+<meta name="assert" content="When the cICP chunk is present, decoders that recognize it SHALL ignore iCCP">
+<style>
+ .test {
+ width: 128px;
+ height: 64px;
+ background-color: red;
+ }
+</style>
+<body>
+ <p>Test passes if you see a green rectangle, and no red.</p>
+ <div class="test"><img src="support/cICP-and-iCCP.png" alt=""></div>
+</body>
+</html> \ No newline at end of file
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
new file mode 100644
index 0000000000..e9c9e7ee02
--- /dev/null
+++ b/testing/web-platform/tests/png/errors/support/invalid-unknown-ancillary-after-IDAT.png
Binary files differ
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
new file mode 100644
index 0000000000..21373a5a5a
--- /dev/null
+++ b/testing/web-platform/tests/png/errors/support/invalid-unknown-ancillary.png
Binary files differ
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
new file mode 100644
index 0000000000..6605d47985
--- /dev/null
+++ b/testing/web-platform/tests/png/errors/support/no-invalid-chunks.png
Binary files differ
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
diff --git a/testing/web-platform/tests/png/support/cICP-and-iCCP.png b/testing/web-platform/tests/png/support/cICP-and-iCCP.png
new file mode 100644
index 0000000000..71d88defc1
--- /dev/null
+++ b/testing/web-platform/tests/png/support/cICP-and-iCCP.png
Binary files differ
diff --git a/testing/web-platform/tests/png/support/srgb_green.png b/testing/web-platform/tests/png/support/srgb_green.png
new file mode 100644
index 0000000000..a978f32536
--- /dev/null
+++ b/testing/web-platform/tests/png/support/srgb_green.png
Binary files differ