From 117411d3163bd84da17c150b0ec69557846280c8 Mon Sep 17 00:00:00 2001 From: Tomasz Jakut Date: Thu, 14 Feb 2019 17:16:58 +0100 Subject: [PATCH] Fix unit test for IE8. Fix typo. --- tests/plugins/copyformatting/undointegration.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/plugins/copyformatting/undointegration.js b/tests/plugins/copyformatting/undointegration.js index dfcf9b42e66..8d778cd6647 100644 --- a/tests/plugins/copyformatting/undointegration.js +++ b/tests/plugins/copyformatting/undointegration.js @@ -6,9 +6,11 @@ ( function() { 'use strict'; + var leftMouseButton = CKEDITOR.env.ie && CKEDITOR.env.version < 9 ? 1 : CKEDITOR.MOUSE_BUTTON_LEFT; + bender.editor = { config: { - allowedcontent: true + allowedContent: true } }; @@ -30,7 +32,7 @@ for ( var i = 0; i < editor.undoManager.limit; i++ ) { sel.selectElement( i % 2 ? el1 : el2 ); editor.document.fire( 'mouseup', new CKEDITOR.dom.event( { - button: CKEDITOR.MOUSE_BUTTON_LEFT, + button: leftMouseButton, target: editor.editable() } ) ); } @@ -50,7 +52,7 @@ sel.selectElement( editor.editable().findOne( '#one' ) ); editor.document.fire( 'mouseup', new CKEDITOR.dom.event( { - button: CKEDITOR.MOUSE_BUTTON_LEFT, + button: leftMouseButton, target: editor.editable() } ) );