mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 942364 - Add reftests. r=dholbert
This commit is contained in:
parent
6ce746259d
commit
8a75f85287
3
image/test/reftest/downscaling/black-border-rect.svg
Normal file
3
image/test/reftest/downscaling/black-border-rect.svg
Normal 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 |
13
image/test/reftest/downscaling/downscale-svg-1-ref.html
Normal file
13
image/test/reftest/downscaling/downscale-svg-1-ref.html
Normal 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>
|
8
image/test/reftest/downscaling/downscale-svg-1a.html
Normal file
8
image/test/reftest/downscaling/downscale-svg-1a.html
Normal 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>
|
8
image/test/reftest/downscaling/downscale-svg-1b.html
Normal file
8
image/test/reftest/downscaling/downscale-svg-1b.html
Normal 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>
|
8
image/test/reftest/downscaling/downscale-svg-1c.html
Normal file
8
image/test/reftest/downscaling/downscale-svg-1c.html
Normal 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>
|
8
image/test/reftest/downscaling/downscale-svg-1d.html
Normal file
8
image/test/reftest/downscaling/downscale-svg-1d.html
Normal 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>
|
8
image/test/reftest/downscaling/downscale-svg-1e.html
Normal file
8
image/test/reftest/downscaling/downscale-svg-1e.html
Normal 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>
|
8
image/test/reftest/downscaling/downscale-svg-1f.html
Normal file
8
image/test/reftest/downscaling/downscale-svg-1f.html
Normal 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>
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user