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>
<html class="reftest-wait">
<script>
function onloadHandler()
{
document.getElementById('e').setCustomValidity('foo');
document.getElementById('e').focus();
}
function startTest()
{
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>
<body onload="onloadHandler();">
<textarea id='e' onfocus="document.documentElement.className='';"></textarea>
<body>
<textarea id='e'></textarea>
</body>
</html>