Bug 1637067. Add reftest, adjust fuzz expectations of existing test. r=jrmuizel

The existing test compares a 3d scene to a "hand drawn" version of the scene using 2d primitives and was never expected to match perfectly, but instead just provide something to compare against better than saying it's not a blank page.

The new test looks visually identical, the fuzz is around the edges of the text.

Depends on D75289

Differential Revision: https://phabricator.services.mozilla.com/D75636
This commit is contained in:
Timothy Nikkel 2020-05-20 08:16:04 +00:00
Родитель 7f4d96d4cd
Коммит aa2d21ce1a
3 изменённых файлов: 83 добавлений и 1 удалений

Просмотреть файл

@ -0,0 +1,32 @@
<!DOCTYPE html>
<html>
<head>
<style>
.text {
position: absolute;
top: 100px;
left: 45px;
height: 400px;
width: 400px;
}
.thing {
position: absolute;
top: 0;
left: 0;
width: 512px;
height: 512px;
background: url('data:image/svg+xml;utf8,<svg width="512" height="200" viewBox="0 0 512 512" fill="black" xmlns="http://www.w3.org/2000/svg"><text x="0" y="400" font-size="100">some text</text></svg>');
background-repeat: no-repeat;
background-size: 100% 100%;
}
</style>
</head>
<body>
<div class='text'>
<div class="thing"></div>
</div>
</body>
</html>

Просмотреть файл

@ -0,0 +1,49 @@
<!DOCTYPE html>
<html>
<head>
<style>
@keyframes rotate {
100% {
transform: rotatey(1800deg);
}
}
@keyframes rotate2 {
100% {
transform: rotatey(2800deg);
}
}
.text {
position: absolute;
top: 100px;
left: 100px;
height: 400px;
width: 400px;
transform-style: preserve-3d;
transform: rotatey(271deg);
/*animation: rotate 30s linear infinite reverse;*/
}
.thing {
position: absolute;
top: 0;
left: 0;
width: 512px;
height: 512px;
background: url('data:image/svg+xml;utf8,<svg width="512" height="200" viewBox="0 0 512 512" fill="black" xmlns="http://www.w3.org/2000/svg"><text x="0" y="400" font-size="100">some text</text></svg>');
background-repeat: no-repeat;
background-size: 100% 100%;
transform: rotatey(89deg) translatez(117.04394px);
}
</style>
</head>
<body>
<div class='text'>
<div class="thing"></div>
</div>
</body>
</html>

Просмотреть файл

@ -94,7 +94,8 @@ fuzzy-if(winWidget,0-150,0-120) == component-alpha-1.html component-alpha-1-ref.
== intermediate-1.html intermediate-1-ref.html
== preserves3d-nested-filter-1.html preserves3d-nested-filter-1-ref.html
!= preserve3d-scale.html about:blank
fuzzy(0-51,0-1133) == preserve3d-scale.html preserve3d-scale-ref.html
fuzzy(0-51,0-1143) == preserve3d-scale.html preserve3d-scale-ref.html
fuzzy-if(webrender,0-1,0-5) == perspective-overflow-1.html perspective-overflow-1-ref.html
== 1544995-1.html 1544995-1-ref.html
== preserve3d-will-change-large-frame.html preserve3d-will-change-ref.html
fuzzy-if(webrender,0-6,0-3117) == 1637067-1.html 1637067-1-ref.html