зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
ccd6680589
Коммит
7c7b78d948
|
@ -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>
|
Загрузка…
Ссылка в новой задаче