Skip to content

Commit

Permalink
Tests: added tc.
Browse files Browse the repository at this point in the history
  • Loading branch information
engineering-this committed Sep 6, 2018
1 parent 66dc827 commit 52d55c9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/plugins/richcombo/richcombo.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,11 @@ bender.test( {
anchorEl = CKEDITOR.document.getById( 'cke_' + combo.id ).findOne( 'a' );

assert.areEqual( anchorEl.getAttribute( 'aria-haspopup' ), 'listbox' );
},
'test destroy removes combo listeners': function() {
var combo = this.editor.ui.get( 'custom_combo' );

combo.destroy();
assert.areEqual( 0, combo._listeners.length );
}
} );

0 comments on commit 52d55c9

Please sign in to comment.