mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
25be90be3c
commit
913f725c73
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user