mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 838256 - Fix <input type=range> dynamic reftests to use the MozReftestInvalidate event instead of the load event. r=me.
This commit is contained in:
parent
c944329e67
commit
97e73be205
@ -6,14 +6,11 @@
|
||||
function setToCheckbox()
|
||||
{
|
||||
document.getElementById('i').type='checkbox';
|
||||
}
|
||||
function disableReftestWait()
|
||||
{
|
||||
document.documentElement.className = '';
|
||||
}
|
||||
document.addEventListener("MozReftestInvalidate", setToCheckbox);
|
||||
</script>
|
||||
|
||||
<body onload="setToCheckbox(); disableReftestWait();">
|
||||
<body>
|
||||
<input type='range' id='i' style="-moz-appearance:none;">
|
||||
</body>
|
||||
</html>
|
||||
|
@ -5,14 +5,11 @@
|
||||
function setToRange()
|
||||
{
|
||||
document.getElementById('i').type='range';
|
||||
}
|
||||
function disableReftestWait()
|
||||
{
|
||||
document.documentElement.className = '';
|
||||
}
|
||||
document.addEventListener("MozReftestInvalidate", setToRange);
|
||||
</script>
|
||||
|
||||
<body onload="setToRange(); disableReftestWait();">
|
||||
<body>
|
||||
<input type='checkbox' id='i' style="-moz-appearance:none;">
|
||||
</body>
|
||||
</html>
|
||||
|
Loading…
Reference in New Issue
Block a user