gecko/layout/reftests/forms/placeholder/placeholder-7.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

19 lines
504 B
HTML

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