Skip to content

Commit 6bfef0c

Browse files
committed
Merge branch 't/13687'
2 parents 444595d + a5bc4dc commit 6bfef0c

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

tests/plugins/clipboard/drop.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ var testsForMultipleEditor = {
357357
},
358358

359359
// #13453
360-
'test drop inside drag range aborts': function( editor ) {
360+
'test drop inside drag range has no effect': function( editor ) {
361361
var bot = bender.editorBots[ editor.name ],
362362
evt = bender.tools.mockDropEvent();
363363

@@ -369,12 +369,14 @@ var testsForMultipleEditor = {
369369
drop( editor, evt, {
370370
dropContainer: editor.editable().findOne( 'b' ).getChild( 0 ),
371371
dropOffset: 0,
372-
expectedPasteEventCount: 0
372+
expectedTransferType: CKEDITOR.DATA_TRANSFER_INTERNAL,
373+
expectedPasteEventCount: 1,
374+
expectedText: 'Lorem ipsum dolor sit',
375+
expectedHtml: 'Lorem <b>ipsum</b> dolor sit',
376+
expectedDataType: 'html',
377+
expectedDataValue: 'Lorem <b>ipsum</b> dolor sit'
373378
}, null, function() {
374-
assert.isInnerHtmlMatching( [
375-
'<p class="p">Lorem ^<b>ipsum</b> dolor sit amet.@</p>',
376-
'<p class="p">Lorem <b>^ipsum</b> dolor sit amet.@</p>'
377-
], getWithHtml( editor ), htmlMatchOpts, 'after drop' );
379+
assert.isInnerHtmlMatching( '<p class="p">Lorem <b>ipsum</b> dolor sit^ amet.@</p>', getWithHtml( editor ), htmlMatchOpts, 'after drop' );
378380
} );
379381
},
380382

0 commit comments

Comments
 (0)