Bug 1574225 - Pass fuzzy information to reftest chains, r=ato

We were incorrectly failing to put all the data onto the comparison stack
when handling nested reftests. Ensure that we do this correctly.

Differential Revision: https://phabricator.services.mozilla.com/D42284

--HG--
extra : moz-landing-system : lando
This commit is contained in:
James Graham 2019-08-16 09:48:31 +00:00
Родитель ccd6680589
Коммит 7c7b78d948
6 изменённых файлов: 36 добавлений и 1 удалений

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

@ -359,7 +359,7 @@ max-width: ${width}px; max-height: ${height}px`;
if (references.length) {
for (let i = references.length - 1; i >= 0; i--) {
let item = references[i];
stack.push([rhsUrl, item[0], item[1], item[2]]);
stack.push([rhsUrl, ...item]);
}
} else {
// Reached a leaf node so all of one reference chain passed

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

@ -0,0 +1,2 @@
[reftest_fuzzy_chain_ini.html]
fuzzy: maxDifference=255;100-100

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

@ -0,0 +1,2 @@
[reftest_fuzzy_chain_ini.html]
fuzzy: maxDifference=255;100-100

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

@ -0,0 +1,11 @@
<!DOCTYPE html>
<!-- This will only match with the fuzzy set in the ini file -->
<link rel="match" href="fuzzy-ref-2a.html">
<style>
div {
width: 100px;
height: 100px;
background-color: green;
}
</style>
<div></div>

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

@ -0,0 +1,9 @@
<!DOCTYPE html>
<style>
div {
width: 101px;
height: 100px;
background-color: green;
}
</style>
<div></div>

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

@ -0,0 +1,11 @@
<!DOCTYPE html>
<link rel=match href=fuzzy-ref-2.html>
<!-- The metadata is added to the corresponding ini file -->
<style>
div {
width: 99px;
height: 100px;
background-color: green;
}
</style>
<div></div>