Bug 1085783 (Part 2) - Add a test for rounding behavior when high-quality downscaling. r=roc

This commit is contained in:
Seth Fowler 2015-04-22 13:04:06 -07:00
parent 78fb468573
commit 7c89a2b2f5
4 changed files with 48 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

View File

@ -0,0 +1,22 @@
<!DOCTYPE html>
<!-- Any copyright is dedicated to the Public Domain.
- http://creativecommons.org/publicdomain/zero/1.0/ -->
<html class="reftest-wait">
<head>
<script>
// We add an artificial delay before the reftest snapshot to increase the
// chance that we're snapshotting the high-quality downscaled version of
// the image. This is necessary because high-quality downscaling is
// currently an async process. Bug 1045926 will eliminate the need for this
// delay.
function snapshot() {
document.documentElement.removeAttribute('class');
}
</script>
</head>
<body onload="setTimeout(snapshot, 250)">
<div style="padding: 1em 3em; font-size: 80%; width: 300px; text-align: center;">
<img src="green-circle-with-blue-border.png" width="179" height="220">
</div>
</body>
</html>

View File

@ -0,0 +1,22 @@
<!DOCTYPE html>
<!-- Any copyright is dedicated to the Public Domain.
- http://creativecommons.org/publicdomain/zero/1.0/ -->
<html class="reftest-wait">
<head>
<script>
// We add an artificial delay before the reftest snapshot to increase the
// chance that we're snapshotting the high-quality downscaled version of
// the image. This is necessary because high-quality downscaling is
// currently an async process. Bug 1045926 will eliminate the need for this
// delay.
function snapshot() {
document.documentElement.removeAttribute('class');
}
</script>
</head>
<body onload="setTimeout(snapshot, 250)">
<div style="padding: 1em 3em; font-size: 80%; width: 300px; text-align: center;">
<img src="green-circle-with-blue-border.png" height="220">
</div>
</body>
</html>

View File

@ -123,6 +123,10 @@ fails == collapsed-border-top-6.html border-top-10-ref.html
== image-width-left-5.html image-width-5.html
== image-width-left-6.html image-width-6.html
skip pref(image.high_quality_downscaling.enabled,true) == image-high-quality-scaling-1.html image-high-quality-scaling-1-ref.html
!= offscreen-0-ref.html offscreen-10-ref.html
== offscreen-background-color-pos-4.html offscreen-0-ref.html
== offscreen-background-color-pos-5.html offscreen-10-ref.html