| Index: LayoutTests/editing/inserting/replace-in-paragraph-001.html
|
| diff --git a/LayoutTests/editing/inserting/replace-in-paragraph-001.html b/LayoutTests/editing/inserting/replace-in-paragraph-001.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..75293e51416910b42289a81db38d5d2de560cb87
|
| --- /dev/null
|
| +++ b/LayoutTests/editing/inserting/replace-in-paragraph-001.html
|
| @@ -0,0 +1,31 @@
|
| +<script>
|
| +function $(id) { return document.getElementById(id); }
|
| +
|
| +function testIt()
|
| +{
|
| + description('Replace in pargraph by paragraph');
|
| +
|
| + var selection = window.getSelection();
|
| + var range = document.createRange();
|
| + range.selectNodeContents($('destination'));
|
| + selection.addRange(range);
|
| + document.execCommand('insertHTML', false, '<p>source</p>');
|
| + shouldBeEqualToString('$("destination").textContent', 'source');
|
| +
|
| + if (window.testRunner)
|
| + $('content').outerHTML = '';
|
| +}
|
| +</script>
|
| +</head>
|
| +<body>
|
| +<div id="content">
|
| +<p id="description"></p>
|
| +<p contenteditable="true" id="destination">destination</p>
|
| +</div>
|
| +<div id="console"></div>
|
| +<script src="../../fast/js/resources/js-test-pre.js"></script>
|
| +<script>
|
| +testIt();
|
| +</script>
|
| +<script src="../../fast/js/resources/js-test-post.js"></script>
|
| +</body>
|
|
|