Index: /CKEditor/tests/tt/6492/1.html
===================================================================
--- /CKEditor/tests/tt/6492/1.html	(revision 6959)
+++ /CKEditor/tests/tt/6492/1.html	(revision 6959)
@@ -0,0 +1,88 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+	"http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+	<title>Ticket: #6492 - Find loaded with selected content</title>
+	<meta name="tags" content="editor,unit,all,stable">
+	<script type="text/javascript" src="../../cktester/cell.js"></script>
+	<script>
+( function()
+{
+	var ts, tc, assert = CKEDITOR.test.assert, test = CKEDITOR.test, selector = YAHOO.util.Selector;
+
+	YAHOO.tool.TestRunner.add( ts = new CKEDITOR.test.suites.editorTestSuite(
+		{
+				editorName : 'test_editor_1',
+				name :document.title
+		} ) );
+
+	ts.add( tc = new YAHOO.tool.TestCase(
+		{
+			setUp : function ()
+			{
+				// Force result data un-formatted.
+				ts.editor.dataProcessor.writer._.rules = {};
+				ts.editor.focus();
+			},
+			
+			test_find: function()
+			{
+				var editor = ts.editor,
+				
+					contentWithSelection = test.getValueAsHtml( 'input_1' ),
+					output = 'it';
+					command = 'find';
+				
+				test.setHtmlWithSelection( editor.document.getBody(), contentWithSelection );
+				editor.execCommand( command );
+
+				this.wait( function ()
+				{
+					var dialog = editor._.storedDialogs[ command ],
+						findField = dialog.getContentElement( 'find', 'txtFindFind' );
+						
+					find = findField.getValue ();
+					assert.areSame( output, find);	
+				}, 1000 );
+			},
+			
+			test_replace: function()
+			{
+				var editor = ts.editor,
+				
+					contentWithSelection = test.getValueAsHtml( 'input_1' ),
+					output = 'it';
+					command = 'replace';
+				
+				test.setHtmlWithSelection( editor.document.getBody(), contentWithSelection );
+				editor.execCommand( command );
+
+				this.wait( function ()
+				{
+					var dialog = editor._.storedDialogs[ command ],
+						replaceField = dialog.getContentElement( 'replace', 'txtFindReplace' );
+						
+					replace = replaceField.getValue ();
+					assert.areSame( output, replace);	
+				}, 1000 );
+			},
+			
+			
+		} ) );
+} )();
+	</script>
+</head>
+<body>
+<textarea id='input_1'>
+<ol>
+	<li>
+		item 1</li>
+	<li>
+		[it]em 2</li>
+	<li>
+		item 3</li>
+</ol>
+</textarea>
+</body>
+</html>
+ 
