chromium/third_party/blink/web_tests/fast/forms/hidden/change-type-to-hidden-after-updating-value.html

<input type="text" id="input1">
<script>
if (window.testRunner)
    testRunner.dumpAsText();
document.getElementById('input1').value = 'value';
document.getElementById('input1').type = 'hidden';
document.write('PASS unless crashed.');
</script>