haikuwebkit/LayoutTests/fast/forms/resources/state-restore-broken-state-...

13 lines
390 B
HTML

<script>
setTimeout(function() {
var stateArray = internals.formControlStateOfPreviousHistoryItem();
// Omit the signature string because it is volatile.
console.log('Generated state: [' + stateArray.slice(1) + ']');
stateArray.push('***broken***');
internals.setFormControlStateOfPreviousHistoryItem(stateArray);
parent.didLoadAnotherDocument();
}, 0);
</script>