Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / inserting / replace-in-paragraph-001.html
blob9f90ecfae0d5072c74e7748d174f6e1fc131bb88
1 <script>
2 function $(id) { return document.getElementById(id); }
4 function testIt()
6 description('Replace in pargraph by paragraph');
8 var selection = window.getSelection();
9 var range = document.createRange();
10 range.selectNodeContents($('destination'));
11 selection.addRange(range);
12 document.execCommand('insertHTML', false, '<p>source</p>');
13 shouldBeEqualToString('$("destination").textContent', 'source');
15 if (window.testRunner)
16 $('content').outerHTML = '';
18 </script>
19 </head>
20 <body>
21 <div id="content">
22 <p id="description"></p>
23 <p contenteditable="true" id="destination">destination</p>
24 </div>
25 <div id="console"></div>
26 <script src="../../resources/js-test.js"></script>
27 <script>
28 testIt();
29 </script>
30 </body>