Bug 917595 (Part 2) - Reftests for zoomed image documents with EXIF orientations. r=smaug

--HG--
extra : rebase_source : ffe78a522420a4ae8a51e76c02c8817f9fc03d42
This commit is contained in:
Seth Fowler 2013-11-19 14:25:02 -08:00
parent 55305d3e8b
commit 3f661abe22
6 changed files with 43 additions and 0 deletions

View File

@ -0,0 +1,18 @@
<!DOCTYPE html>
<html class="reftest-wait">
<style>
iframe {
width: 100%;
height: 100%;
border: 0px;
}
</style>
<script>
document.addEventListener('MozReftestInvalidate',
() => document.documentElement.removeAttribute('class'),
false);
</script>
<body>
<iframe src="bug917595-unrotated.jpg" scrolling="no" marginwidth="0" marginheight="0"></iframe>
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

View File

@ -0,0 +1,18 @@
<!DOCTYPE html>
<html class="reftest-wait">
<style>
iframe {
width: 100%;
height: 100%;
border: 0px;
}
</style>
<script>
document.addEventListener('MozReftestInvalidate',
() => document.documentElement.removeAttribute('class'),
false);
</script>
<body>
<iframe src="bug917595-exif-rotated.jpg" scrolling="no" marginwidth="0" marginheight="0"></iframe>
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

View File

@ -3,3 +3,10 @@
== bug448564-4a.html bug448564-4b.html
== bug502168-1_malformed.html bug502168-1_well-formed.html
# Test that image documents taken into account CSS properties like
# image-orientation when determining the size of the image.
# (Fuzzy necessary due to pixel-wise comparison of different JPEGs.
# The vast majority of the fuzziness comes from Linux and WinXP.)
fuzzy(1,149) == bug917595-iframe-1.html bug917595-1-ref.html
fuzzy(2,446) == bug917595-exif-rotated.jpg bug917595-pixel-rotated.jpg