Bug 660224 - Test whether using MozReftestInvalidate and MozAfterPaint fixes the orange for layout/reftests/css-ui-invalid/default-style/textarea-focus.html. r=dholbert

--HG--
extra : rebase_source : a4134334ad32e4c8334856167f440d769c9b5643
This commit is contained in:
Jonathan Watt 2014-03-06 00:35:23 +00:00
parent 25be90be3c
commit 913f725c73

View File

@ -1,13 +1,24 @@
<!DOCTYPE> <!DOCTYPE>
<html class="reftest-wait"> <html class="reftest-wait">
<script> <script>
function onloadHandler()
{ function startTest()
document.getElementById('e').setCustomValidity('foo'); {
document.getElementById('e').focus(); window.addEventListener('MozAfterPaint', finishTest, false);
} var e = document.getElementById('e');
e.setCustomValidity('foo');
e.focus();
}
function finishTest()
{
document.documentElement.className='';
}
window.addEventListener("MozReftestInvalidate", startTest, false);
</script> </script>
<body onload="onloadHandler();"> <body>
<textarea id='e' onfocus="document.documentElement.className='';"></textarea> <textarea id='e'></textarea>
</body> </body>
</html> </html>