Index: /CKEditor/tests/tt/4252/3.html
===================================================================
--- /CKEditor/tests/tt/4252/3.html	(revision 4145)
+++ /CKEditor/tests/tt/4252/3.html	(revision 4145)
@@ -0,0 +1,78 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+	"http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+	<title>Ticket: #4252</title>
+	<meta name="tags" content="editor,unit,all">
+	<script type="text/javascript" src="../../cktester/cell.js"></script>
+	<script>
+
+/**
+ * Load the editor and wait for fully interactable.
+ * @param {Object} elementId
+ * @param {Object} callback Continuation with {@param editor}.
+ * @param {Object} context
+ */
+function prepareEditor( elementId, callback, context )
+{
+	CKEDITOR.on( 'instanceReady',
+		function( evt )
+		{
+			callback.call( context, evt.editor );
+		}, this );
+	try
+	{
+		CKEDITOR.replace( elementId );
+	}
+	// Editor instance already existed, reuse it.
+	catch( er )
+	{
+		// Keep the async intrinsic. 
+		CKEDITOR.tools.setTimeout( callback, 0, context, CKEDITOR.instances[ elementId ] );
+	}
+}
+
+function getTextAreaValue( id )
+{
+	return CKEDITOR.document.getById( id ).getValue();
+}
+
+( function()
+{
+	var assert = CKEDITOR.test.assert,
+		toolbarTools = CKEDITOR.test.toolbar;
+
+	CKEDITOR.test.addTestCase( {
+
+			/**
+			 * Test loading the editor with content and selection.  
+			 */
+			test_editor_selection : function()
+			{
+				prepareEditor( 'playground', function( editor )
+				{
+					this.resume( function()
+					{
+						// Force result data unformatted.
+						editor.dataProcessor.writer._.rules = {};
+						// Force result data unformatted.
+						editor.focus();
+						CKEDITOR.test.editor.loadDataWithSelection( editor,
+							CKEDITOR.test.getValueAsHtml( 'editor_data' ) );
+						// Replace the selected with something else.
+						editor.insertHtml( 'test' );
+						assert.areSame( '<p>test selection</p>', editor.getData(),
+										'Editor content doesn\'t match.');
+					} );
+				}, this );
+				this.wait();
+			}
+	} );
+} )();
+	</script>
+</head>
+<body style="padding-top:100px;">
+<textarea id="playground"></textarea>
+<textarea id="editor_data"><p>[text] selection</p></textarea>
+</body>
+</html>
