Skip to content

Commit

Permalink
Merge pull request #2369 from ckeditor/t/2349
Browse files Browse the repository at this point in the history
Fixed failing tests tests/plugins/justify/justify n Firefox
  • Loading branch information
Comandeer authored Sep 3, 2018
2 parents 237dbdf + 596e502 commit dbc0240
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions tests/plugins/justify/justify.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,20 @@ bender.test(
assertCommandState: function( left, right, center, justify, editor ) {
editor = editor || this.editor;

var leftCmd = editor.getCommand( 'justifyleft' );
var rightCmd = editor.getCommand( 'justifyright' );
var centerCmd = editor.getCommand( 'justifycenter' );
var justifyCmd = editor.getCommand( 'justifyblock' );

assert.areSame( left, leftCmd.state, 'leftCmd.state' );
assert.areSame( right, rightCmd.state, 'rightCmd.state' );
assert.areSame( center, centerCmd.state, 'centerCmd.state' );
assert.areSame( justify, justifyCmd.state, 'justifyCmd.state' );
setTimeout( function() {
resume( function() {
var leftCmd = editor.getCommand( 'justifyleft' );
var rightCmd = editor.getCommand( 'justifyright' );
var centerCmd = editor.getCommand( 'justifycenter' );
var justifyCmd = editor.getCommand( 'justifyblock' );

assert.areSame( left, leftCmd.state, 'leftCmd.state' );
assert.areSame( right, rightCmd.state, 'rightCmd.state' );
assert.areSame( center, centerCmd.state, 'centerCmd.state' );
assert.areSame( justify, justifyCmd.state, 'justifyCmd.state' );
} );
} );
wait();
},

// Justify should align selected image.
Expand Down

0 comments on commit dbc0240

Please sign in to comment.