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>
|
<!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>
|
||||||
|
Loading…
Reference in New Issue
Block a user