Adding test for bug 421632. r=bzbarsky

This commit is contained in:
Jonathan Griffin 2009-06-25 17:20:49 -04:00
parent 408d89bc73
commit 6e351832f2
3 changed files with 123 additions and 0 deletions

View File

@ -0,0 +1,54 @@
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<title></title>
<style>
body {
margin: 20px;
}
tr {
background: gray;
}
.t2 tr {
outline: 1px solid gray;
-moz-outline-radius: .3em;
}
.t1 tr {
outline: 1px solid red;
-moz-outline-radius: .3em;
}
</style>
</head>
<body>
<table id="table1" class="t1">
<tr><td>AAAA</td></tr>
<tr><td>AAAA</td></tr>
<tr><td>AAAA</td></tr>
<tr><td>AAAA</td></tr>
</table>
<table class="t2">
<tr><td>AAAA</td></tr>
<tr><td>AAAA</td></tr>
<tr><td>AAAA</td></tr>
<tr><td>AAAA</td></tr>
</table>
<br/>
<form method="get" action="#">
<input type="button" onclick="showBug(); return false;" value="Trigger bug"/>
</form>
</body> </html>

View File

@ -0,0 +1,68 @@
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html class="reftest-wait">
<head>
<title></title>
<style>
body {
margin: 20px;
}
tr {
background: gray;
}
.t2 tr {
outline: 1px solid gray;
-moz-outline-radius: .3em;
}
.t1 tr {
outline: 1px solid red;
-moz-outline-radius: .3em;
}
</style>
<script type="text/javascript">
function showBug() {
document.getElementById("table1").setAttribute("class", "t1");
}
window.addEventListener("MozReftestInvalidate",
function() {
showBug();
document.documentElement.className = "";
}, false);
</script>
</head>
<body>
<table id="table1">
<tr><td>AAAA</td></tr>
<tr><td>AAAA</td></tr>
<tr><td>AAAA</td></tr>
<tr><td>AAAA</td></tr>
</table>
<table class="t2">
<tr><td>AAAA</td></tr>
<tr><td>AAAA</td></tr>
<tr><td>AAAA</td></tr>
<tr><td>AAAA</td></tr>
</table>
<br/>
<form method="get" action="#">
<input type="button" onclick="showBug(); return false;" value="Trigger bug"/>
</form>
</body> </html>

View File

@ -921,6 +921,7 @@ skip-if(MOZ_WIDGET_TOOLKIT=="cocoa") == 413292-1.html 413292-1-ref.html # disabl
== 421419-1.html 421419-1-ref.html
== 421436-1a.html 421436-1-ref.html
== 421436-1b.html 421436-1-ref.html
== 421632-1.html 421632-1-ref.html
!= 421710-1.html about:blank # assertion test (and crash test)
== 421885-1.xml 421885-1-ref.xml
== 421955-1.html 421955-1-ref.html