From a5bc4dc606ac98f3ea35b4214fca12979ff780ae Mon Sep 17 00:00:00 2001 From: Szymon Cofalik Date: Mon, 24 Aug 2015 10:13:50 +0200 Subject: [PATCH] Fixed tests for clipboard plugin. --- tests/plugins/clipboard/drop.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/tests/plugins/clipboard/drop.js b/tests/plugins/clipboard/drop.js index 090061e0b68..64b3aadde4e 100644 --- a/tests/plugins/clipboard/drop.js +++ b/tests/plugins/clipboard/drop.js @@ -357,7 +357,7 @@ var testsForMultipleEditor = { }, // #13453 - 'test drop inside drag range aborts': function( editor ) { + 'test drop inside drag range has no effect': function( editor ) { var bot = bender.editorBots[ editor.name ], evt = bender.tools.mockDropEvent(); @@ -369,12 +369,14 @@ var testsForMultipleEditor = { drop( editor, evt, { dropContainer: editor.editable().findOne( 'b' ).getChild( 0 ), dropOffset: 0, - expectedPasteEventCount: 0 + expectedTransferType: CKEDITOR.DATA_TRANSFER_INTERNAL, + expectedPasteEventCount: 1, + expectedText: 'Lorem ipsum dolor sit', + expectedHtml: 'Lorem ipsum dolor sit', + expectedDataType: 'html', + expectedDataValue: 'Lorem ipsum dolor sit' }, null, function() { - assert.isInnerHtmlMatching( [ - '

Lorem ^ipsum dolor sit amet.@

', - '

Lorem ^ipsum dolor sit amet.@

' - ], getWithHtml( editor ), htmlMatchOpts, 'after drop' ); + assert.isInnerHtmlMatching( '

Lorem ipsum dolor sit^ amet.@

', getWithHtml( editor ), htmlMatchOpts, 'after drop' ); } ); },