Bug 1482403 - Add reftest r=me

--HG--
extra : rebase_source : 7fb6da1a3105e6e91804f375d55287a89b120446
extra : amend_source : 6dbeff65d539d8362f69f11aeff181d51b343e4c
This commit is contained in:
Miko Mynttinen 2018-11-06 16:34:45 +01:00
Родитель b457d05277
Коммит 9fccb7d320
3 изменённых файлов: 81 добавлений и 0 удалений

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

@ -0,0 +1,35 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>Bug 1482403</title>
<style type="text/css">
#col2 {
display: inline-block;
height: 35px;
background: orange;
filter: sepia(0.2);
}
#subnav {
display: block;
position: absolute;
top: 25px;
left: 0;
}
</style>
</head>
<body>
<div>Column 1</div>
<div id="col2">Column 2
<div id="subnav" style="">
<ul>
<li>Item 1</li>
<li>Item 2</li>
</ul>
</div>
</div>
</body>
</html>

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

@ -0,0 +1,45 @@
<!DOCTYPE html>
<html class="reftest-wait">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>Bug 1482403</title>
<style type="text/css">
#col2 {
display: inline-block;
height: 35px;
background: orange;
filter: sepia(0.2);
}
#subnav {
display: none;
position: absolute;
top: 25px;
left: 0;
}
</style>
<script type="text/javascript">
function doTest() {
var col2 = document.getElementById('col2');
var subnav = document.getElementById('subnav');
subnav.style.display = 'block';
document.documentElement.className = "";
}
window.addEventListener("MozReftestInvalidate", doTest);
</script>
</head>
<body>
<div>Column 1</div>
<div id="col2">Column 2
<div id="subnav" style="">
<ul>
<li>Item 1</li>
<li>Item 2</li>
</ul>
</div>
</div>
</body>
</html>

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

@ -35,3 +35,4 @@ skip-if(!asyncPan) == 1437374-1.html 1437374-1-ref.html
== 1452805-1.html 1452805-ref.html
== 1461231-1.html about:blank
fuzzy(0-2,0-40000) skip-if(!asyncPan) == 1464288-1.html 1464288-ref.html
== 1482403-1.html 1482403-1-ref.html