summaryrefslogtreecommitdiff
path: root/gfx/tests/reftest
diff options
context:
space:
mode:
authorMatt A. Tobin <mattatobin@localhost.localdomain>2018-02-02 04:16:08 -0500
committerMatt A. Tobin <mattatobin@localhost.localdomain>2018-02-02 04:16:08 -0500
commit5f8de423f190bbb79a62f804151bc24824fa32d8 (patch)
tree10027f336435511475e392454359edea8e25895d /gfx/tests/reftest
parent49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff)
downloaduxp-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz
Add m-esr52 at 52.6.0
Diffstat (limited to 'gfx/tests/reftest')
-rw-r--r--gfx/tests/reftest/1086723-ref.html27
-rw-r--r--gfx/tests/reftest/1086723.html27
-rw-r--r--gfx/tests/reftest/1131264-1.svg17
-rw-r--r--gfx/tests/reftest/1143303-1.svg26
-rw-r--r--gfx/tests/reftest/1149923-ref.html28
-rw-r--r--gfx/tests/reftest/1149923.html29
-rw-r--r--gfx/tests/reftest/468496-1-ref.html32
-rw-r--r--gfx/tests/reftest/468496-1.html51
-rw-r--r--gfx/tests/reftest/611498-1.html19
-rw-r--r--gfx/tests/reftest/611498-ref.html6
-rw-r--r--gfx/tests/reftest/709477-1-ref.html47
-rw-r--r--gfx/tests/reftest/709477-1.html69
-rw-r--r--gfx/tests/reftest/853889-1-ref.html12
-rw-r--r--gfx/tests/reftest/853889-1.html19
-rw-r--r--gfx/tests/reftest/blacktrans.pngbin0 -> 105 bytes
-rw-r--r--gfx/tests/reftest/bwinton.jpgbin0 -> 1110 bytes
-rw-r--r--gfx/tests/reftest/pass.svg8
-rw-r--r--gfx/tests/reftest/reftest-stylo.list12
-rw-r--r--gfx/tests/reftest/reftest.list9
19 files changed, 438 insertions, 0 deletions
diff --git a/gfx/tests/reftest/1086723-ref.html b/gfx/tests/reftest/1086723-ref.html
new file mode 100644
index 0000000000..0242f9e96b
--- /dev/null
+++ b/gfx/tests/reftest/1086723-ref.html
@@ -0,0 +1,27 @@
+<!DOCTYPE HTML>
+<html>
+<head>
+ <meta charset="utf-8">
+ <title>Testcase for bug 1086723</title>
+ <style type="text/css">
+ .test_div {
+ position: fixed;
+ overflow: hidden;
+ background: blue;
+ width: 50%;
+ height: 50%;
+ border-radius: 0px 50% 50% 0px;
+ }
+ .filler {
+ height: 5000px;
+ }
+ body,html {
+ overflow: hidden;
+ }
+ </style>
+</head>
+<body>
+ <div class="test_div"></div>
+ <div class="filler"></div>
+</body>
+</html>
diff --git a/gfx/tests/reftest/1086723.html b/gfx/tests/reftest/1086723.html
new file mode 100644
index 0000000000..4cfaafa4cd
--- /dev/null
+++ b/gfx/tests/reftest/1086723.html
@@ -0,0 +1,27 @@
+<!DOCTYPE HTML>
+<html reftest-async-scroll reftest-async-scroll-x="0" reftest-async-scroll-y="2000">
+<head>
+ <meta charset="utf-8">
+ <title>Testcase for bug 1086723</title>
+ <style type="text/css">
+ .test_div {
+ position: fixed;
+ overflow: hidden;
+ background: blue;
+ width: 50%;
+ height: 50%;
+ border-radius: 0px 50% 50% 0px;
+ }
+ .filler {
+ height: 5000px;
+ }
+ body,html {
+ overflow: hidden;
+ }
+ </style>
+</head>
+<body>
+ <div class="test_div"></div>
+ <div class="filler"></div>
+</body>
+</html>
diff --git a/gfx/tests/reftest/1131264-1.svg b/gfx/tests/reftest/1131264-1.svg
new file mode 100644
index 0000000000..fdafd6b134
--- /dev/null
+++ b/gfx/tests/reftest/1131264-1.svg
@@ -0,0 +1,17 @@
+<!--
+ Any copyright is dedicated to the Public Domain.
+ http://creativecommons.org/publicdomain/zero/1.0/
+-->
+<svg xmlns="http://www.w3.org/2000/svg"
+ width="100%" height="100%">
+
+ <title>Testcase for small radius circle with large center coordinates</title>
+ <!--From https://bugzilla.mozilla.org/show_bug.cgi?id=1131264 -->
+
+ <rect width="100%" height="100%" fill="lime"/>
+
+ <circle r="5" cx="40" cy="40" fill="red" />
+ <circle r="1" cx="10004" cy="10004" fill="lime"
+ transform="scale(10 10) translate(-10000 -10000)"/>
+
+</svg>
diff --git a/gfx/tests/reftest/1143303-1.svg b/gfx/tests/reftest/1143303-1.svg
new file mode 100644
index 0000000000..4654cff5c0
--- /dev/null
+++ b/gfx/tests/reftest/1143303-1.svg
@@ -0,0 +1,26 @@
+<!--
+ Any copyright is dedicated to the Public Domain.
+ http://creativecommons.org/publicdomain/zero/1.0/
+-->
+<svg version="1.1" xmlns="http://www.w3.org/2000/svg"
+ width="100%" height="100%">
+ <title>Testcase for small circles</title>
+ <!--From https://bugzilla.mozilla.org/show_bug.cgi?id=1143303 -->
+
+ <rect width="100%" height="100%" fill="lime"/>
+
+ <circle cx="200" cy="150" r="95" fill="red"/>
+ <g transform="translate(200, 150)" fill="lime">
+ <g transform="scale(1e8, 1e8)">
+ <circle cx="0" cy="0" r="1e-6"/>
+ </g>
+ </g>
+
+ <circle cx="342" cy="176.06" r="1" fill="red"/>
+ <g transform="translate(342,1098.55)" fill="lime">
+ <g transform="scale(418.2,-405.9)">
+ <circle cx="0" cy="2.2727" r=".006"/>
+ </g>
+ </g>
+
+</svg>
diff --git a/gfx/tests/reftest/1149923-ref.html b/gfx/tests/reftest/1149923-ref.html
new file mode 100644
index 0000000000..46625a786d
--- /dev/null
+++ b/gfx/tests/reftest/1149923-ref.html
@@ -0,0 +1,28 @@
+<!DOCTYPE html>
+<html>
+
+ <head>
+ <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1">
+ <meta charset="utf-8">
+ <title>Testcase for bug 1149923</title>
+ <style>
+ #outer {
+ width: 64px;
+ height: 64px;
+ background-color: #00f;
+ opacity: 1.0;
+ transform: rotate(90deg);
+ }
+ #inner {
+ width: 100%;
+ height: 100%;
+ background-color: #f00;
+ border-top-left-radius: 10%;
+ border-bottom-left-radius: 10%;
+ }
+ </style>
+ </head>
+ <body>
+ <div id='outer'><div id='inner'></div></div>
+ </body>
+</html>
diff --git a/gfx/tests/reftest/1149923.html b/gfx/tests/reftest/1149923.html
new file mode 100644
index 0000000000..ec5f777ad3
--- /dev/null
+++ b/gfx/tests/reftest/1149923.html
@@ -0,0 +1,29 @@
+<!DOCTYPE html>
+<html>
+
+ <head>
+ <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1">
+ <meta charset="utf-8">
+ <title>Testcase for bug 1149923</title>
+ <style>
+ #outer {
+ width: 64px;
+ height: 64px;
+ background-color: #00f;
+ opacity: 1.0;
+ transform: rotate(90deg);
+ }
+ #inner {
+ width: 100%;
+ height: 100%;
+ background-color: #f00;
+ will-change: transform;
+ border-top-left-radius: 10%;
+ border-bottom-left-radius: 10%;
+ }
+ </style>
+ </head>
+ <body>
+ <div id='outer'><div id='inner'></div></div>
+ </body>
+</html>
diff --git a/gfx/tests/reftest/468496-1-ref.html b/gfx/tests/reftest/468496-1-ref.html
new file mode 100644
index 0000000000..c045d7d769
--- /dev/null
+++ b/gfx/tests/reftest/468496-1-ref.html
@@ -0,0 +1,32 @@
+<!DOCTYPE html>
+<html><head>
+<title>stretched image artifacts (test)</title>
+<style>
+div {
+ height: 5px;
+ background-image: url("data:image/gif;base64,R0lGODdhAQACAPABAAD/AP///ywAAAAAAQACAAACAkQKADs=");
+ background-repeat: repeat-x;
+}
+</style>
+</head><body>
+<div style="width: 540px">
+</div><div style="width: 541px">
+</div><div style="width: 542px">
+</div><div style="width: 543px">
+</div><div style="width: 544px">
+</div><div style="width: 545px">
+</div><div style="width: 546px">
+</div><div style="width: 547px">
+</div><div style="width: 548px">
+</div><div style="width: 549px">
+</div><div style="width: 550px">
+</div><div style="width: 551px">
+</div><div style="width: 552px">
+</div><div style="width: 553px">
+</div><div style="width: 554px">
+</div><div style="width: 555px">
+</div><div style="width: 556px">
+</div><div style="width: 557px">
+</div><div style="width: 558px">
+</div><div style="width: 559px">
+</div></body></html>
diff --git a/gfx/tests/reftest/468496-1.html b/gfx/tests/reftest/468496-1.html
new file mode 100644
index 0000000000..a6bc6dde63
--- /dev/null
+++ b/gfx/tests/reftest/468496-1.html
@@ -0,0 +1,51 @@
+<!DOCTYPE html>
+<html><head>
+<title>stretched image artifacts (test)</title>
+<style>
+img { display: block; }
+div { height: 5px; }
+</style>
+</head><body>
+<div style="width: 540px">
+<img width="100%" height="2" src="data:image/gif;base64,R0lGODdhAQACAPABAAD/AP///ywAAAAAAQACAAACAkQKADs=">
+</div><div style="width: 541px">
+<img width="100%" height="2" src="data:image/gif;base64,R0lGODdhAQACAPABAAD/AP///ywAAAAAAQACAAACAkQKADs=">
+</div><div style="width: 542px">
+<img width="100%" height="2" src="data:image/gif;base64,R0lGODdhAQACAPABAAD/AP///ywAAAAAAQACAAACAkQKADs=">
+</div><div style="width: 543px">
+<img width="100%" height="2" src="data:image/gif;base64,R0lGODdhAQACAPABAAD/AP///ywAAAAAAQACAAACAkQKADs=">
+</div><div style="width: 544px">
+<img width="100%" height="2" src="data:image/gif;base64,R0lGODdhAQACAPABAAD/AP///ywAAAAAAQACAAACAkQKADs=">
+
+</div><div style="width: 545px">
+<img width="100%" height="2" src="data:image/gif;base64,R0lGODdhAQACAPABAAD/AP///ywAAAAAAQACAAACAkQKADs=">
+</div><div style="width: 546px">
+<img width="100%" height="2" src="data:image/gif;base64,R0lGODdhAQACAPABAAD/AP///ywAAAAAAQACAAACAkQKADs=">
+</div><div style="width: 547px">
+<img width="100%" height="2" src="data:image/gif;base64,R0lGODdhAQACAPABAAD/AP///ywAAAAAAQACAAACAkQKADs=">
+</div><div style="width: 548px">
+<img width="100%" height="2" src="data:image/gif;base64,R0lGODdhAQACAPABAAD/AP///ywAAAAAAQACAAACAkQKADs=">
+</div><div style="width: 549px">
+<img width="100%" height="2" src="data:image/gif;base64,R0lGODdhAQACAPABAAD/AP///ywAAAAAAQACAAACAkQKADs=">
+</div><div style="width: 550px">
+<img width="100%" height="2" src="data:image/gif;base64,R0lGODdhAQACAPABAAD/AP///ywAAAAAAQACAAACAkQKADs=">
+</div><div style="width: 551px">
+<img width="100%" height="2" src="data:image/gif;base64,R0lGODdhAQACAPABAAD/AP///ywAAAAAAQACAAACAkQKADs=">
+</div><div style="width: 552px">
+<img width="100%" height="2" src="data:image/gif;base64,R0lGODdhAQACAPABAAD/AP///ywAAAAAAQACAAACAkQKADs=">
+</div><div style="width: 553px">
+
+<img width="100%" height="2" src="data:image/gif;base64,R0lGODdhAQACAPABAAD/AP///ywAAAAAAQACAAACAkQKADs=">
+</div><div style="width: 554px">
+<img width="100%" height="2" src="data:image/gif;base64,R0lGODdhAQACAPABAAD/AP///ywAAAAAAQACAAACAkQKADs=">
+</div><div style="width: 555px">
+<img width="100%" height="2" src="data:image/gif;base64,R0lGODdhAQACAPABAAD/AP///ywAAAAAAQACAAACAkQKADs=">
+</div><div style="width: 556px">
+<img width="100%" height="2" src="data:image/gif;base64,R0lGODdhAQACAPABAAD/AP///ywAAAAAAQACAAACAkQKADs=">
+</div><div style="width: 557px">
+<img width="100%" height="2" src="data:image/gif;base64,R0lGODdhAQACAPABAAD/AP///ywAAAAAAQACAAACAkQKADs=">
+</div><div style="width: 558px">
+<img width="100%" height="2" src="data:image/gif;base64,R0lGODdhAQACAPABAAD/AP///ywAAAAAAQACAAACAkQKADs=">
+</div><div style="width: 559px">
+<img width="100%" height="2" src="data:image/gif;base64,R0lGODdhAQACAPABAAD/AP///ywAAAAAAQACAAACAkQKADs=">
+</div></body></html>
diff --git a/gfx/tests/reftest/611498-1.html b/gfx/tests/reftest/611498-1.html
new file mode 100644
index 0000000000..28a9059ae4
--- /dev/null
+++ b/gfx/tests/reftest/611498-1.html
@@ -0,0 +1,19 @@
+<!doctype html>
+<html class="reftest-wait">
+<script type="text/javascript">
+function done()
+{
+ document.documentElement.className = "";
+}
+function move()
+{
+ elem = document.getElementById("moving");
+ elem.addEventListener("transitionend", done, true);
+ elem.style.position = "relative";
+ elem.style.top = 0;
+}
+</script>
+<body style="background: url('bwinton.jpg'); background-attachment: fixed" onload="move()">
+<div id="moving" style="position: absolute; top: 50px; background-image: url('blacktrans.png'); width: 100px; height: 100px; -moz-transition: top 0.1s; padding: 2px;">blah blah blah</div>
+</body>
+</html>
diff --git a/gfx/tests/reftest/611498-ref.html b/gfx/tests/reftest/611498-ref.html
new file mode 100644
index 0000000000..0763857c8b
--- /dev/null
+++ b/gfx/tests/reftest/611498-ref.html
@@ -0,0 +1,6 @@
+<!doctype html>
+<html>
+<body style="background: url('bwinton.jpg'); background-attachment: fixed">
+<div style="background: url('blacktrans.png'); width: 100px; height: 100px; padding: 2px;">blah blah blah</div>
+</body>
+</html>
diff --git a/gfx/tests/reftest/709477-1-ref.html b/gfx/tests/reftest/709477-1-ref.html
new file mode 100644
index 0000000000..eb8897f8ee
--- /dev/null
+++ b/gfx/tests/reftest/709477-1-ref.html
@@ -0,0 +1,47 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title>glyph clipping (reference)</title>
+ <style>
+ #clip { position: absolute;
+ overflow: hidden;
+ font-size: 16px;
+ width: 500px;
+ height: 300px;}
+ /* Offsets keep the text far enough away from clip boundaries so that
+ cairo knows the text is within the clip. Non-unit alpha color makes
+ the bug show even without antialiasing. */
+ #text { position: absolute;
+ left: 100px;
+ top: 100px;
+ color: rgba(0,0,0,0.4)}
+ #cover { position: absolute;
+ top: 90px;
+ left: 120px;
+ height: 50px;
+ width: 60px;
+ background: transparent; }
+ #mod { position: absolute;
+ top: 400px;
+ left: 0px;
+ height: 2000px;
+ width: 600px;
+ background: transparent; }
+ </style>
+</head>
+<body>
+ <div id="clip">
+ <div id="text">
+ Some text that was</br>
+ initially partially covered.</br>
+ </div>
+ </div>
+ <div id="cover">
+ </div>
+ <div id="mod">
+ </div>
+</body>
+<script>
+ scrollTo(0,1);
+</script>
+</html>
diff --git a/gfx/tests/reftest/709477-1.html b/gfx/tests/reftest/709477-1.html
new file mode 100644
index 0000000000..3e5f86c1bf
--- /dev/null
+++ b/gfx/tests/reftest/709477-1.html
@@ -0,0 +1,69 @@
+<!DOCTYPE html>
+<html class="reftest-wait">
+<head>
+ <title>glyph clipping (test)</title>
+ <style>
+ #clip { position: absolute;
+ overflow: hidden;
+ font-size: 16px;
+ width: 500px;
+ height: 300px;}
+ /* Offsets keep the text far enough away from clip boundaries so that
+ cairo knows the text is within the clip. Non-unit alpha color makes
+ the bug show even without antialiasing. */
+ #text { position: absolute;
+ left: 100px;
+ top: 100px;
+ color: rgba(0,0,0,0.4)}
+ #cover { position: absolute;
+ top: 90px;
+ left: 120px;
+ height: 50px;
+ width: 60px;
+ background: green; }
+ #mod { position: absolute;
+ top: 400px;
+ left: 0px;
+ height: 2000px;
+ width: 600px;
+ background: green; }
+ </style>
+ <script>
+
+function doPaint()
+{
+ window.addEventListener("MozAfterPaint", doScroll, false);
+ var cover = document.getElementById("cover");
+ cover.style.background = "transparent";
+ var mod = document.getElementById("mod");
+ mod.style.background = "transparent";
+}
+
+function doScroll()
+{
+ window.removeEventListener("MozAfterPaint", doScroll, false);
+ window.addEventListener("MozAfterPaint", endTest, false);
+ scrollTo(0,1);
+}
+
+function endTest()
+{
+ document.documentElement.removeAttribute("class");
+}
+
+document.addEventListener("MozReftestInvalidate", doPaint, false);
+ </script>
+</head>
+<body>
+ <div id="clip">
+ <div id="text">
+ Some text that was</br>
+ initially partially covered.</br>
+ </div>
+ </div>
+ <div id="cover">
+ </div>
+ <div id="mod">
+ </div>
+</body>
+</html>
diff --git a/gfx/tests/reftest/853889-1-ref.html b/gfx/tests/reftest/853889-1-ref.html
new file mode 100644
index 0000000000..1a8513dedf
--- /dev/null
+++ b/gfx/tests/reftest/853889-1-ref.html
@@ -0,0 +1,12 @@
+<!doctype html>
+<html>
+ <head><title>Testcase for bug 853889</title></head>
+ <body>
+ <svg version="1.1" xmlns="http://www.w3.org/2000/svg"
+ xmlns:xlink="http://www.w3.org/1999/xlink"
+ width="400px" height="400px">
+ <path d="M 0 0 L 0 50 L 400 50 L 400 0 Z"
+ fill="rgb(12,200,12)"></path>
+ </svg>
+ </body>
+</html>
diff --git a/gfx/tests/reftest/853889-1.html b/gfx/tests/reftest/853889-1.html
new file mode 100644
index 0000000000..2b728c2975
--- /dev/null
+++ b/gfx/tests/reftest/853889-1.html
@@ -0,0 +1,19 @@
+<!doctype html>
+<html>
+ <head><title>Testcase for bug 853889</title></head>
+ <body>
+ <svg version="1.1" xmlns="http://www.w3.org/2000/svg"
+ xmlns:xlink="http://www.w3.org/1999/xlink"
+ width="400px" height="400px">
+
+ <path d="M 0 400 L 0 450 L 600 450 L 600 400 Z"
+ fill="rgb(200,12,12)"></path>
+ <path d="M 0 0 L 0 50 L 600 50 L 600 0 Z"
+ fill="rgb(200,12,12)"></path>
+
+ <path d="M 0 0 L 0 50 L 600 50 L 600 0 Z
+ M 0 400 L 0 450 L 600 450 L 600 400 Z"
+ fill="rgb(12,200,12)"></path>
+ </svg>
+ </body>
+</html>
diff --git a/gfx/tests/reftest/blacktrans.png b/gfx/tests/reftest/blacktrans.png
new file mode 100644
index 0000000000..1b3ef9baa5
--- /dev/null
+++ b/gfx/tests/reftest/blacktrans.png
Binary files differ
diff --git a/gfx/tests/reftest/bwinton.jpg b/gfx/tests/reftest/bwinton.jpg
new file mode 100644
index 0000000000..708354511b
--- /dev/null
+++ b/gfx/tests/reftest/bwinton.jpg
Binary files differ
diff --git a/gfx/tests/reftest/pass.svg b/gfx/tests/reftest/pass.svg
new file mode 100644
index 0000000000..c09c6601e8
--- /dev/null
+++ b/gfx/tests/reftest/pass.svg
@@ -0,0 +1,8 @@
+<!--
+ Any copyright is dedicated to the Public Domain.
+ http://creativecommons.org/publicdomain/zero/1.0/
+-->
+<svg xmlns="http://www.w3.org/2000/svg" version="1.1">
+ <title>Testcase reference file for generic pass condition</title>
+ <rect width="100%" height="100%" fill="lime"/>
+</svg>
diff --git a/gfx/tests/reftest/reftest-stylo.list b/gfx/tests/reftest/reftest-stylo.list
new file mode 100644
index 0000000000..378891e06c
--- /dev/null
+++ b/gfx/tests/reftest/reftest-stylo.list
@@ -0,0 +1,12 @@
+# DO NOT EDIT! This is a auto-generated temporary list for Stylo testing
+# 468496-1 will also detect bugs in video drivers.
+== 468496-1.html 468496-1.html
+skip == 611498-1.html 611498-1.html
+skip == 709477-1.html 709477-1.html
+# bug 773482
+skip-if(!asyncPan) == 1086723.html 1086723.html
+== 853889-1.html 853889-1.html
+skip-if(Android) fuzzy-if(skiaContent,1,587) == 1143303-1.svg 1143303-1.svg
+== 1149923.html 1149923.html
+# use fuzzy due to few distorted pixels caused by border-radius
+== 1131264-1.svg 1131264-1.svg
diff --git a/gfx/tests/reftest/reftest.list b/gfx/tests/reftest/reftest.list
new file mode 100644
index 0000000000..2c62d20334
--- /dev/null
+++ b/gfx/tests/reftest/reftest.list
@@ -0,0 +1,9 @@
+# 468496-1 will also detect bugs in video drivers.
+== 468496-1.html 468496-1-ref.html
+fuzzy(175,443) == 611498-1.html 611498-ref.html
+fuzzy-if(Android,8,1000) == 709477-1.html 709477-1-ref.html
+skip-if(!asyncPan) == 1086723.html 1086723-ref.html
+== 853889-1.html 853889-1-ref.html
+skip-if(Android) fuzzy-if(skiaContent,1,587) == 1143303-1.svg pass.svg
+fuzzy(100,30) == 1149923.html 1149923-ref.html # use fuzzy due to few distorted pixels caused by border-radius
+== 1131264-1.svg pass.svg