Index: /CKEditor/tests/tt/4252/3.html =================================================================== --- /CKEditor/tests/tt/4252/3.html (revision 4155) +++ /CKEditor/tests/tt/4252/3.html (revision 4156) @@ -48,5 +48,5 @@ * Test loading the editor with content and selection. */ - test_editor_selection : function() + test_load_editor_with_content_and_selection : function() { prepareEditor( 'playground', function( editor ) @@ -62,5 +62,26 @@ // Replace the selected with something else. editor.insertHtml( 'test' ); - assert.areSame( '
test selection
', editor.getData(), + assert.areSame( 'testselection
', editor.getData(), + 'Editor content doesn\'t match.'); + } ); + }, this ); + this.wait(); + }, + + /** + * Test set editor selection separately. + */ + test_set_editor_selection : function() + { + prepareEditor( 'playground', function( editor ) + { + this.resume( function() + { + editor.focus(); + editor.loadSnapshot( 'textselection
' ); + CKEDITOR.test.editor.makeSelection( editor, [ 1, 0, 0, 0 ], [ 1, 0, 0, 4 ] ); + // Replace the selected with something else. + editor.insertHtml( 'test' ); + assert.areSame( 'testselection
', editor.getData(), 'Editor content doesn\'t match.'); } ); @@ -68,4 +89,5 @@ this.wait(); } + } ); } )(); @@ -74,5 +96,5 @@ - +