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:
Jonathan Watt 2013-02-17 13:33:38 +00:00
parent c944329e67
commit 97e73be205
2 changed files with 4 additions and 10 deletions

View File

@ -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>

View File

@ -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>