Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / undo / undo-after-setting-value.html
blob940a5235aa417d2f1480e11b6948aa41b6f20875
1 <!DOCTYPE html>
2 <html>
3 <body>
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>
5 <input type="text">
6 <textarea></textarea>
7 <div contenteditable>PASS</div>
8 <script>
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();
20 </script>
21 </body>
22 </html>