Skip to content

Commit

Permalink
Merge branch 't/13687'
Browse files Browse the repository at this point in the history
  • Loading branch information
Reinmar committed Aug 31, 2015
2 parents 444595d + a5bc4dc commit 6bfef0c
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions tests/plugins/clipboard/drop.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand All @@ -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 <b>ipsum</b> dolor sit',
expectedDataType: 'html',
expectedDataValue: 'Lorem <b>ipsum</b> dolor sit'
}, null, function() {
assert.isInnerHtmlMatching( [
'<p class="p">Lorem ^<b>ipsum</b> dolor sit amet.@</p>',
'<p class="p">Lorem <b>^ipsum</b> dolor sit amet.@</p>'
], getWithHtml( editor ), htmlMatchOpts, 'after drop' );
assert.isInnerHtmlMatching( '<p class="p">Lorem <b>ipsum</b> dolor sit^ amet.@</p>', getWithHtml( editor ), htmlMatchOpts, 'after drop' );
} );
},

Expand Down

0 comments on commit 6bfef0c

Please sign in to comment.