зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1227327 - Add tests. r=mattwoodrow
MozReview-Commit-ID: 6BIJJiCUedo --HG-- extra : rebase_source : c33a071f4117c3e2e4b244ba9bec0c281413a70c
This commit is contained in:
Родитель
aaac8ed991
Коммит
ebfab32e37
|
@ -0,0 +1,20 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<meta charset="utf-8">
|
||||
<title>Reference for properly handled background-position changes.</title>
|
||||
|
||||
<style>
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#background {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
background-color: lime;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<div id="background"></div>
|
|
@ -0,0 +1,32 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en" class="reftest-wait">
|
||||
<meta charset="utf-8">
|
||||
<title>Changes to background-position should invalidate properly.</title>
|
||||
|
||||
<style>
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#background {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
background-image: url(image_rgrg-256x256.png);
|
||||
background-repeat: no-repeat;
|
||||
background-position: 0 0;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<div id="background"></div>
|
||||
|
||||
<script>
|
||||
|
||||
function doTest() {
|
||||
document.querySelector("#background").style.backgroundPosition = "-140px 0";
|
||||
document.documentElement.removeAttribute("class");
|
||||
}
|
||||
document.addEventListener("MozReftestInvalidate", doTest);
|
||||
|
||||
</script>
|
|
@ -0,0 +1,36 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en" class="reftest-wait">
|
||||
<meta charset="utf-8">
|
||||
<title>Changes to background-position should invalidate properly for input type=text.</title>
|
||||
|
||||
<style>
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#background {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
background-image: url(image_rgrg-256x256.png);
|
||||
background-repeat: no-repeat;
|
||||
background-position: 0 0;
|
||||
|
||||
border: 0;
|
||||
border-radius: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<input type="text" id="background">
|
||||
|
||||
<script>
|
||||
|
||||
function doTest() {
|
||||
document.querySelector("#background").style.backgroundPosition = "-140px 0";
|
||||
document.documentElement.removeAttribute("class");
|
||||
}
|
||||
document.addEventListener("MozReftestInvalidate", doTest);
|
||||
|
||||
</script>
|
|
@ -0,0 +1,36 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en" class="reftest-wait">
|
||||
<meta charset="utf-8">
|
||||
<title>Changes to background-position should invalidate properly for input type=button.</title>
|
||||
|
||||
<style>
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#background {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
background-image: url(image_rgrg-256x256.png);
|
||||
background-repeat: no-repeat;
|
||||
background-position: 0 0;
|
||||
|
||||
border: 0;
|
||||
border-radius: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<input type="button" id="background">
|
||||
|
||||
<script>
|
||||
|
||||
function doTest() {
|
||||
document.querySelector("#background").style.backgroundPosition = "-140px 0";
|
||||
document.documentElement.removeAttribute("class");
|
||||
}
|
||||
document.addEventListener("MozReftestInvalidate", doTest);
|
||||
|
||||
</script>
|
|
@ -0,0 +1,43 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en" class="reftest-wait">
|
||||
<meta charset="utf-8">
|
||||
<title>Changes to background-position should invalidate properly for table rows.</title>
|
||||
|
||||
<style>
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#background {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
background-image: url(image_rgrg-256x256.png);
|
||||
background-repeat: no-repeat;
|
||||
background-position: 0 0;
|
||||
|
||||
border: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
table, tr, td {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
border: 0;
|
||||
padding: 0;
|
||||
border-spacing: 0;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<table><tr id="background"><td></td></table>
|
||||
|
||||
<script>
|
||||
|
||||
function doTest() {
|
||||
document.querySelector("#background").style.backgroundPosition = "-140px 0";
|
||||
document.documentElement.removeAttribute("class");
|
||||
}
|
||||
document.addEventListener("MozReftestInvalidate", doTest);
|
||||
|
||||
</script>
|
|
@ -0,0 +1,43 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en" class="reftest-wait">
|
||||
<meta charset="utf-8">
|
||||
<title>Changes to background-position should invalidate properly for table cells.</title>
|
||||
|
||||
<style>
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#background {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
background-image: url(image_rgrg-256x256.png);
|
||||
background-repeat: no-repeat;
|
||||
background-position: 0 0;
|
||||
|
||||
border: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
table, tr, td {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
border: 0;
|
||||
padding: 0;
|
||||
border-spacing: 0;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<table><tr><td id="background"></td></table>
|
||||
|
||||
<script>
|
||||
|
||||
function doTest() {
|
||||
document.querySelector("#background").style.backgroundPosition = "-140px 0";
|
||||
document.documentElement.removeAttribute("class");
|
||||
}
|
||||
document.addEventListener("MozReftestInvalidate", doTest);
|
||||
|
||||
</script>
|
|
@ -0,0 +1,36 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en" class="reftest-wait">
|
||||
<meta charset="utf-8">
|
||||
<title>Changes to background-position should invalidate properly for fieldsets.</title>
|
||||
|
||||
<style>
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#background {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
background-image: url(image_rgrg-256x256.png);
|
||||
background-repeat: no-repeat;
|
||||
background-position: 0 0;
|
||||
|
||||
border: 0;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<fieldset id="background"><legend></legend></fieldset>
|
||||
|
||||
<script>
|
||||
|
||||
function doTest() {
|
||||
document.querySelector("#background").style.backgroundPosition = "-140px 0";
|
||||
document.documentElement.removeAttribute("class");
|
||||
}
|
||||
document.addEventListener("MozReftestInvalidate", doTest);
|
||||
|
||||
</script>
|
|
@ -69,6 +69,12 @@ fuzzy-if(gtkWidget,2,4) fuzzy-if(asyncPan,2,3955) fuzzy-if(OSX,179,30) fuzzy-if(
|
|||
!= image-scrolling-zoom-1-ref.html image-scrolling-zoom-1-notref.html
|
||||
pref(layers.single-tile.enabled,false) != fast-scrolling.html about:blank
|
||||
== background-position-1.html background-position-1-ref.html
|
||||
== background-position-2a.html background-position-2-ref.html
|
||||
== background-position-2b.html background-position-2-ref.html
|
||||
== background-position-2c.html background-position-2-ref.html
|
||||
== background-position-2d.html background-position-2-ref.html
|
||||
== background-position-2e.html background-position-2-ref.html
|
||||
== background-position-2f.html background-position-2-ref.html
|
||||
== zero-opacity-animation.html about:blank
|
||||
== zero-opacity-text.html about:blank
|
||||
== negative-w-component.html negative-w-component-ref.html
|
||||
|
|
Загрузка…
Ссылка в новой задаче