4 <p>This test ensures WebKit does not clear undo stack in a contenteditable element when setting the value of input or textarea element.
</p>
7 <div contenteditable
>PASS
</div>
10 document
.getElementsByTagName('div')[0].focus();
11 document
.execCommand('SelectAll', false, null);
12 document
.execCommand('InsertText', false, 'FAIL');
13 document
.getElementsByTagName('input')[0].value
= 'hello';
14 document
.getElementsByTagName('textarea')[0].value
= 'world';
15 document
.execCommand('Undo', false, null);
17 if (window
.testRunner
)
18 testRunner
.dumpAsText();