summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/acid/acid3
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/acid/acid3')
-rw-r--r--testing/web-platform/tests/acid/acid3/empty.css8
-rw-r--r--testing/web-platform/tests/acid/acid3/empty.css.headers1
-rw-r--r--testing/web-platform/tests/acid/acid3/empty.html1
-rw-r--r--testing/web-platform/tests/acid/acid3/empty.pngbin0 -> 260 bytes
-rw-r--r--testing/web-platform/tests/acid/acid3/empty.txt1
-rw-r--r--testing/web-platform/tests/acid/acid3/empty.xml4
-rw-r--r--testing/web-platform/tests/acid/acid3/empty.xml.headers1
-rw-r--r--testing/web-platform/tests/acid/acid3/favicon.ico0
-rw-r--r--testing/web-platform/tests/acid/acid3/favicon.ico.headers1
-rw-r--r--testing/web-platform/tests/acid/acid3/numbered-tests.html28
-rw-r--r--testing/web-platform/tests/acid/acid3/reference.pngbin0 -> 1771 bytes
-rw-r--r--testing/web-platform/tests/acid/acid3/reference.sub.html21
-rw-r--r--testing/web-platform/tests/acid/acid3/support-a.pngbin0 -> 2312 bytes
-rw-r--r--testing/web-platform/tests/acid/acid3/support-b.png1
-rw-r--r--testing/web-platform/tests/acid/acid3/support-b.png.headers2
-rw-r--r--testing/web-platform/tests/acid/acid3/svg.xml1
-rw-r--r--testing/web-platform/tests/acid/acid3/svg.xml.headers1
-rw-r--r--testing/web-platform/tests/acid/acid3/xhtml.111
-rw-r--r--testing/web-platform/tests/acid/acid3/xhtml.1.headers1
-rw-r--r--testing/web-platform/tests/acid/acid3/xhtml.211
-rw-r--r--testing/web-platform/tests/acid/acid3/xhtml.2.headers1
-rw-r--r--testing/web-platform/tests/acid/acid3/xhtml.311
-rw-r--r--testing/web-platform/tests/acid/acid3/xhtml.3.headers1
23 files changed, 107 insertions, 0 deletions
diff --git a/testing/web-platform/tests/acid/acid3/empty.css b/testing/web-platform/tests/acid/acid3/empty.css
new file mode 100644
index 0000000000..d490c12421
--- /dev/null
+++ b/testing/web-platform/tests/acid/acid3/empty.css
@@ -0,0 +1,8 @@
+<!DOCTYPE HTML><html><head><title>FAIL</title><style>
+<!-- this file is sent as text/html, not text/css, which is why it is
+ called "empty.css" despite the following lines -->
+
+ body { background: white; color: black; }
+ h1 { color: red; }
+
+</style><body><h1>FAIL</h1></body></html>
diff --git a/testing/web-platform/tests/acid/acid3/empty.css.headers b/testing/web-platform/tests/acid/acid3/empty.css.headers
new file mode 100644
index 0000000000..156209f9c8
--- /dev/null
+++ b/testing/web-platform/tests/acid/acid3/empty.css.headers
@@ -0,0 +1 @@
+Content-Type: text/html
diff --git a/testing/web-platform/tests/acid/acid3/empty.html b/testing/web-platform/tests/acid/acid3/empty.html
new file mode 100644
index 0000000000..0b91841acf
--- /dev/null
+++ b/testing/web-platform/tests/acid/acid3/empty.html
@@ -0,0 +1 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"><html><head><title></title></head><body></body></html>
diff --git a/testing/web-platform/tests/acid/acid3/empty.png b/testing/web-platform/tests/acid/acid3/empty.png
new file mode 100644
index 0000000000..fd5b91ea07
--- /dev/null
+++ b/testing/web-platform/tests/acid/acid3/empty.png
Binary files differ
diff --git a/testing/web-platform/tests/acid/acid3/empty.txt b/testing/web-platform/tests/acid/acid3/empty.txt
new file mode 100644
index 0000000000..452a7e6d75
--- /dev/null
+++ b/testing/web-platform/tests/acid/acid3/empty.txt
@@ -0,0 +1 @@
+<!DOCTYPE html><html><head><title>FAIL</title></head><body><p>FAIL</p><script>parent.notify("empty.txt")</script></body></html>
diff --git a/testing/web-platform/tests/acid/acid3/empty.xml b/testing/web-platform/tests/acid/acid3/empty.xml
new file mode 100644
index 0000000000..e6a125cc0d
--- /dev/null
+++ b/testing/web-platform/tests/acid/acid3/empty.xml
@@ -0,0 +1,4 @@
+<root>
+ <fail> This is an invalid byte in UTF-8: ¿ </fail>
+ <test/> <!-- shouldn't ever be parsed, as the parser should abort at the first sign of non-well-formedness -->
+</root> \ No newline at end of file
diff --git a/testing/web-platform/tests/acid/acid3/empty.xml.headers b/testing/web-platform/tests/acid/acid3/empty.xml.headers
new file mode 100644
index 0000000000..9395ed9a28
--- /dev/null
+++ b/testing/web-platform/tests/acid/acid3/empty.xml.headers
@@ -0,0 +1 @@
+Content-Type: application/xml;charset=utf-8
diff --git a/testing/web-platform/tests/acid/acid3/favicon.ico b/testing/web-platform/tests/acid/acid3/favicon.ico
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/testing/web-platform/tests/acid/acid3/favicon.ico
diff --git a/testing/web-platform/tests/acid/acid3/favicon.ico.headers b/testing/web-platform/tests/acid/acid3/favicon.ico.headers
new file mode 100644
index 0000000000..afa04c171d
--- /dev/null
+++ b/testing/web-platform/tests/acid/acid3/favicon.ico.headers
@@ -0,0 +1 @@
+Content-Type: image/x-icon
diff --git a/testing/web-platform/tests/acid/acid3/numbered-tests.html b/testing/web-platform/tests/acid/acid3/numbered-tests.html
new file mode 100644
index 0000000000..42d3324c69
--- /dev/null
+++ b/testing/web-platform/tests/acid/acid3/numbered-tests.html
@@ -0,0 +1,28 @@
+<!doctype html>
+<title>Acid3 numbered tests</title>
+<meta name="timeout" content="long">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script>
+var tests = undefined;
+
+function gotMessage(e) {
+ var m = e.data;
+ if (tests === undefined && "num_tests" in m) {
+ tests = [];
+ for (var i = 0; i < m.num_tests; i++) {
+ tests.push(async_test("Test " + i));
+ }
+ } else if ("result" in m) {
+ var test = m.test;
+ var passed = m.result === "pass";
+ var message = m.message;
+ tests[test].step(function() {
+ assert_true(passed, message);
+ });
+ tests[test].done();
+ }
+}
+window.addEventListener("message", gotMessage, false);
+</script>
+<iframe src="test.html"></iframe>
diff --git a/testing/web-platform/tests/acid/acid3/reference.png b/testing/web-platform/tests/acid/acid3/reference.png
new file mode 100644
index 0000000000..22cd4cae08
--- /dev/null
+++ b/testing/web-platform/tests/acid/acid3/reference.png
Binary files differ
diff --git a/testing/web-platform/tests/acid/acid3/reference.sub.html b/testing/web-platform/tests/acid/acid3/reference.sub.html
new file mode 100644
index 0000000000..974bee11e4
--- /dev/null
+++ b/testing/web-platform/tests/acid/acid3/reference.sub.html
@@ -0,0 +1,21 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html>
+ <title>The Acid3 Test (Reference Rendering)</title>
+ <link rel="icon" href="http://nonexistent.{{host}}">
+ <style type="text/css">
+ html { margin: 0; padding: 0; }
+ body { background: #c0c0c0 url(reference.png) top left no-repeat; margin: 0; padding: 0; }
+ #a { font: bold 100px/120px Arial, sans-serif; position: absolute; top: 57px; left: 57px; color: #000000; z-index: 1; }
+ #a0 { font: bold 100px/120px Arial, sans-serif; position: absolute; top: 60px; left: 60px; color: #C0C0C0; z-index: 0; }
+ #b { position: absolute; top: 230px; left: 625px; width: 0; white-space: pre; }
+ #b div { font: bold 100px/120px Arial, sans-serif; position: absolute; right: 0; text-align: right; color: #000000; }
+ #c { font: 16px/19.2px Arial, sans-serif; color: #808080; width: 562px; position: absolute; top: 350px; left: 57px; }
+ #c a { color: #0000FF; }
+ </style>
+ <body>
+ <div id="a">Acid3</div>
+ <div id="a0">Acid3</div>
+ <div id="b"><div>100/100</div></div>
+ <div id="c">To pass the test,<span></span> a browser must use its default settings, the animation has to be smooth, the score has to end on 100/100, and the final page has to look exactly, pixel for pixel, like <a href="reference.sub.html">this reference rendering</a>.</div>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/acid/acid3/support-a.png b/testing/web-platform/tests/acid/acid3/support-a.png
new file mode 100644
index 0000000000..9f240083de
--- /dev/null
+++ b/testing/web-platform/tests/acid/acid3/support-a.png
Binary files differ
diff --git a/testing/web-platform/tests/acid/acid3/support-b.png b/testing/web-platform/tests/acid/acid3/support-b.png
new file mode 100644
index 0000000000..752ee7ec05
--- /dev/null
+++ b/testing/web-platform/tests/acid/acid3/support-b.png
@@ -0,0 +1 @@
+<!DOCTYPE html><html><head><title>FAIL</title><style> * { background: transparent; } </style></head><body><p><!-- this file is transparent --></p></body></html> \ No newline at end of file
diff --git a/testing/web-platform/tests/acid/acid3/support-b.png.headers b/testing/web-platform/tests/acid/acid3/support-b.png.headers
new file mode 100644
index 0000000000..844a971169
--- /dev/null
+++ b/testing/web-platform/tests/acid/acid3/support-b.png.headers
@@ -0,0 +1,2 @@
+Content-Type: text/html
+
diff --git a/testing/web-platform/tests/acid/acid3/svg.xml b/testing/web-platform/tests/acid/acid3/svg.xml
new file mode 100644
index 0000000000..f5b1ffad14
--- /dev/null
+++ b/testing/web-platform/tests/acid/acid3/svg.xml
@@ -0,0 +1 @@
+<?xml-stylesheet href="data:text/css,text%7Bfont-family%3AACID3svgfont%7D"?><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="100" height="100"><defs><font-face font-family="ACID3svgfont"><font-face-src><font-face-uri xlink:href="font.svg#mini"/></font-face-src></font-face><path id="path" d="M0 0l0 42l16 16l4711 0"/></defs><text>X</text></svg>
diff --git a/testing/web-platform/tests/acid/acid3/svg.xml.headers b/testing/web-platform/tests/acid/acid3/svg.xml.headers
new file mode 100644
index 0000000000..070de35fbe
--- /dev/null
+++ b/testing/web-platform/tests/acid/acid3/svg.xml.headers
@@ -0,0 +1 @@
+Content-Type: image/svg+xml
diff --git a/testing/web-platform/tests/acid/acid3/xhtml.1 b/testing/web-platform/tests/acid/acid3/xhtml.1
new file mode 100644
index 0000000000..8daafce8cd
--- /dev/null
+++ b/testing/web-platform/tests/acid/acid3/xhtml.1
@@ -0,0 +1,11 @@
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>Test</title>
+ </head>
+ <body>
+ <p> <strong> XHTML Test </strong> </p>
+ <script type="text/javascript">
+ parent.notify("xhtml.1")
+ </script>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/acid/acid3/xhtml.1.headers b/testing/web-platform/tests/acid/acid3/xhtml.1.headers
new file mode 100644
index 0000000000..f203c6368e
--- /dev/null
+++ b/testing/web-platform/tests/acid/acid3/xhtml.1.headers
@@ -0,0 +1 @@
+Content-Type: text/xml
diff --git a/testing/web-platform/tests/acid/acid3/xhtml.2 b/testing/web-platform/tests/acid/acid3/xhtml.2
new file mode 100644
index 0000000000..c7af4f1c27
--- /dev/null
+++ b/testing/web-platform/tests/acid/acid3/xhtml.2
@@ -0,0 +1,11 @@
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>Test</title>
+ </head>
+ <body>
+ <p> <strong/> Parsing Test </strong> </p>
+ <script type="text/javascript">
+ parent.notify("xhtml.2")
+ </script>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/acid/acid3/xhtml.2.headers b/testing/web-platform/tests/acid/acid3/xhtml.2.headers
new file mode 100644
index 0000000000..f203c6368e
--- /dev/null
+++ b/testing/web-platform/tests/acid/acid3/xhtml.2.headers
@@ -0,0 +1 @@
+Content-Type: text/xml
diff --git a/testing/web-platform/tests/acid/acid3/xhtml.3 b/testing/web-platform/tests/acid/acid3/xhtml.3
new file mode 100644
index 0000000000..8cd8db7360
--- /dev/null
+++ b/testing/web-platform/tests/acid/acid3/xhtml.3
@@ -0,0 +1,11 @@
+<html xmlns="http://www.w3.org/1999/xhtml#">
+ <head>
+ <title>Test</title>
+ </head>
+ <body>
+ <p> <strong> Namespace Test </strong> </p>
+ <script type="text/javascript">
+ parent.notify("xhtml.3")
+ </script>
+ </body>
+</html>
diff --git a/testing/web-platform/tests/acid/acid3/xhtml.3.headers b/testing/web-platform/tests/acid/acid3/xhtml.3.headers
new file mode 100644
index 0000000000..f203c6368e
--- /dev/null
+++ b/testing/web-platform/tests/acid/acid3/xhtml.3.headers
@@ -0,0 +1 @@
+Content-Type: text/xml