Bug 942364 - Add reftests. r=dholbert

This commit is contained in:
Seth Fowler 2014-08-12 14:05:29 -07:00
parent 6ce746259d
commit 8a75f85287
9 changed files with 74 additions and 0 deletions

View File

@ -0,0 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="-0.5 -0.5 53 43" stroke="#000000">
<rect x="0" y="7" width="52" height="35" fill="#ffffff"/>
</svg>

After

Width:  |  Height:  |  Size: 151 B

View File

@ -0,0 +1,13 @@
<!DOCTYPE html>
<!-- Any copyright is dedicated to the Public Domain.
- http://creativecommons.org/publicdomain/zero/1.0/ -->
<html>
<body style="margin: 0px">
<embed src="black-border-rect.svg" style="display: block">
<script>
var width = location.search.substring(1).split("&");
var embedElem = document.getElementsByTagName('embed')[0];
embedElem.style.width = width + 'px';
</script>
</body>
</html>

View File

@ -0,0 +1,8 @@
<!DOCTYPE html>
<!-- Any copyright is dedicated to the Public Domain.
- http://creativecommons.org/publicdomain/zero/1.0/ -->
<html reftest-zoom="1.0">
<body style="margin: 0px">
<div style="width: 80px; height: 80px; background: url(black-border-rect.svg) no-repeat"></div>
</body>
</html>

View File

@ -0,0 +1,8 @@
<!DOCTYPE html>
<!-- Any copyright is dedicated to the Public Domain.
- http://creativecommons.org/publicdomain/zero/1.0/ -->
<html reftest-zoom="0.9">
<body style="margin: 0px">
<div style="width: 80px; height: 80px; background: url(black-border-rect.svg) no-repeat"></div>
</body>
</html>

View File

@ -0,0 +1,8 @@
<!DOCTYPE html>
<!-- Any copyright is dedicated to the Public Domain.
- http://creativecommons.org/publicdomain/zero/1.0/ -->
<html reftest-zoom="0.8">
<body style="margin: 0px">
<div style="width: 80px; height: 80px; background: url(black-border-rect.svg) no-repeat"></div>
</body>
</html>

View File

@ -0,0 +1,8 @@
<!DOCTYPE html>
<!-- Any copyright is dedicated to the Public Domain.
- http://creativecommons.org/publicdomain/zero/1.0/ -->
<html reftest-zoom="0.67">
<body style="margin: 0px">
<div style="width: 80px; height: 80px; background: url(black-border-rect.svg) no-repeat"></div>
</body>
</html>

View File

@ -0,0 +1,8 @@
<!DOCTYPE html>
<!-- Any copyright is dedicated to the Public Domain.
- http://creativecommons.org/publicdomain/zero/1.0/ -->
<html reftest-zoom="0.5">
<body style="margin: 0px">
<div style="width: 80px; height: 80px; background: url(black-border-rect.svg) no-repeat"></div>
</body>
</html>

View File

@ -0,0 +1,8 @@
<!DOCTYPE html>
<!-- Any copyright is dedicated to the Public Domain.
- http://creativecommons.org/publicdomain/zero/1.0/ -->
<html reftest-zoom="0.3">
<body style="margin: 0px">
<div style="width: 80px; height: 80px; background: url(black-border-rect.svg) no-repeat"></div>
</body>
</html>

View File

@ -21,6 +21,16 @@
# Also note that Mac OS X has its own system-level downscaling algorithm, so
# tests here may need Mac-specific "fuzzy-if(cocoaWidget,...)" annotations.
# RUN TESTS NOT AFFECTED BY HIGH QUALITY DOWNSCALING:
# ===================================================
fails == downscale-svg-1a.html downscale-svg-1-ref.html?80
fails == downscale-svg-1b.html downscale-svg-1-ref.html?72
fails == downscale-svg-1c.html downscale-svg-1-ref.html?64
fails == downscale-svg-1d.html downscale-svg-1-ref.html?53
fails == downscale-svg-1e.html downscale-svg-1-ref.html?40
fails == downscale-svg-1f.html downscale-svg-1-ref.html?24
# RUN TESTS WITH HIGH QUALITY DOWNSCALING DISABLED:
# =================================================
default-preferences pref(image.high_quality_downscaling.enabled,false)