mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1085783 (Part 2) - Add a test for rounding behavior when high-quality downscaling. r=roc
This commit is contained in:
parent
78fb468573
commit
7c89a2b2f5
BIN
layout/reftests/pixel-rounding/green-circle-with-blue-border.png
Normal file
BIN
layout/reftests/pixel-rounding/green-circle-with-blue-border.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 12 KiB |
@ -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>
|
@ -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>
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user