mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1220021 (part 2) - Add four reftests. r=seth.
This commit is contained in:
parent
a7e0d9de63
commit
b18e6e9bc1
28
image/test/reftest/downscaling/downscale-ff.html
Normal file
28
image/test/reftest/downscaling/downscale-ff.html
Normal file
@ -0,0 +1,28 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html class="reftest-wait">
|
||||
<head>
|
||||
<title>Image reftest wrapper</title>
|
||||
<style type="text/css">
|
||||
#image1 { background-color: rgb(10, 250, 100); }
|
||||
</style>
|
||||
<script>
|
||||
// The image is loaded async after the page loads.
|
||||
// Wait for it to finish loading.
|
||||
function onImageLoad() {
|
||||
document.documentElement.removeAttribute("class");
|
||||
};
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<img width="16px" height="16px" id="image1">
|
||||
<script>
|
||||
// Use as "wrapper.html?image.png"
|
||||
var imgURL = document.location.search.substr(1);
|
||||
document.images[0].onload = onImageLoad;
|
||||
document.images[0].onerror = onImageLoad;
|
||||
document.images[0].alt = "";
|
||||
document.images[0].src = imgURL;
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
BIN
image/test/reftest/downscaling/ff-0RGB.ico
Normal file
BIN
image/test/reftest/downscaling/ff-0RGB.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.2 KiB |
BIN
image/test/reftest/downscaling/ff-0RGB.png
Normal file
BIN
image/test/reftest/downscaling/ff-0RGB.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.5 KiB |
BIN
image/test/reftest/downscaling/ff-ARGB.ico
Normal file
BIN
image/test/reftest/downscaling/ff-ARGB.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.2 KiB |
BIN
image/test/reftest/downscaling/ff-ARGB.png
Normal file
BIN
image/test/reftest/downscaling/ff-ARGB.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 115 B |
@ -90,6 +90,10 @@ fuzzy(20,999) fails-if(OSX>=1008) != downscale-2e.html?205,53,bottom about:blank
|
||||
== downscale-png.html?16,16,interlaced downscale-png.html?16,16,normal
|
||||
== downscale-png.html?24,24,interlaced downscale-png.html?24,24,normal
|
||||
|
||||
# Non-transparent and transparent ICO images
|
||||
== downscale-ff.html?ff-0RGB.ico downscale-ff.html?ff-0RGB.png
|
||||
fuzzy(1,1) == downscale-ff.html?ff-ARGB.ico downscale-ff.html?ff-ARGB.png
|
||||
|
||||
# RUN TESTS WITH DOWNSCALE-DURING-DECODE ENABLED:
|
||||
# ===============================================
|
||||
default-preferences pref(image.downscale-during-decode.enabled,true)
|
||||
@ -154,3 +158,7 @@ fuzzy(20,999) != downscale-2f.html?205,53,bottom about:blank
|
||||
|
||||
== downscale-png.html?16,16,interlaced downscale-png.html?16,16,normal
|
||||
== downscale-png.html?24,24,interlaced downscale-png.html?24,24,normal
|
||||
|
||||
# Non-transparent and transparent ICO images
|
||||
fuzzy(1,3) == downscale-ff.html?ff-0RGB.ico downscale-ff.html?ff-0RGB.png
|
||||
fuzzy(3,32) == downscale-ff.html?ff-ARGB.ico downscale-ff.html?ff-ARGB.png
|
||||
|
Loading…
Reference in New Issue
Block a user