Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / undo / undo-set-selection-crash.html
blob6f6cb2876fc409bf63effebdfc10d396fdc42dfc
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../resources/js-test.js"></script>
5 </head>
6 <body>
7 <div id="test-div" contentEditable="true"><select></select></div>
8 <script>
9 description('Undo command should not make a selection anchored in another document.');
11 window.jsTestIsAsync = true;
13 var div = document.getElementById('test-div');
14 var selection = window.getSelection();
16 div.focus();
17 document.execCommand('SelectAll');
18 document.execCommand('Indent');
19 document.execCommand('Outdent');
21 var anotherDocument = document.implementation.createHTMLDocument('');
22 anotherDocument.body.appendChild(selection.getRangeAt(0).extractContents());
24 div.contentEditable = false;
26 document.execCommand('Undo');
27 document.execCommand('FindString', false, 'x');
29 window.setTimeout(function () {
30 document.body.removeChild(div);
31 testPassed('Did not crash.');
32 finishJSTest();
33 }, 0);
34 </script>
35 </body>
36 </html>