blob: 6dfe5f371f3be58f378f0da82669eb0d0c8ca5e4 [file] [log] [blame]
<!DOCTYPE html>
<html>
<body>
<p>This tests that the search cancel button renders when the field becomes disabled (no change).</p>
<input type="search" id="search" value="search">
<script>
if (window.testRunner)
testRunner.waitUntilDone();
var search = document.getElementById("search");
function makeFieldDisabledAndNotifyDone()
{
search.disabled = true;
if (window.internals)
internals.updateLayoutIgnorePendingStylesheetsAndRunPostLayoutTasks();
if (window.testRunner)
testRunner.notifyDone();
}
window.setTimeout(makeFieldDisabledAndNotifyDone, 0);
</script>
</body>
</html>