gecko/layout/reftests/forms/placeholder/placeholder-17.html
Mounir Lamouri d42236f376 Bug 565074 - Write reftests for the placeholder without readonly input element. r=ehsan
--HG--
rename : layout/reftests/forms/placeholder/placeholder-7.html => layout/reftests/forms/placeholder/placeholder-15.html
rename : layout/reftests/forms/placeholder/placeholder-8.html => layout/reftests/forms/placeholder/placeholder-16.html
rename : layout/reftests/forms/placeholder/placeholder-9.html => layout/reftests/forms/placeholder/placeholder-17.html
rename : layout/reftests/forms/placeholder/placeholder-focus-ref.html => layout/reftests/forms/placeholder/placeholder-readonly-focus-ref.html
2010-05-17 12:20:17 +02:00

23 lines
610 B
HTML

<!DOCTYPE html>
<html class="reftest-wait">
<!-- Test: when focused, value reset shouldn't show placeholder. -->
<script type="text/javascript">
function focusPlaceholder()
{
document.getElementById('p1').focus();
}
function resetValue()
{
document.getElementById('p1').value = '';
}
function disableReftestWait()
{
document.documentElement.className = '';
}
</script>
<body onload="focusPlaceholder();">
<input type="text" id="p1" value="my value" placeholder="my placeholder" onfocus="resetValue(); disableReftestWait();">
</body>
</html>