Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Tests: Reverted a test mistakenly removed during refactoring.
Browse files Browse the repository at this point in the history
  • Loading branch information
oleq committed Jan 28, 2019
1 parent 33a6280 commit dfed3ca
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion tests/classiceditorui.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import ClassicEditorUIView from '../src/classiceditoruiview';

import { keyCodes } from '@ckeditor/ckeditor5-utils/src/keyboard';
import testUtils from '@ckeditor/ckeditor5-core/tests/_utils/utils';
import utils from '@ckeditor/ckeditor5-utils/tests/_utils/utils';
import { isElement } from 'lodash-es';

describe( 'ClassicEditorUI', () => {
Expand Down Expand Up @@ -91,7 +92,18 @@ describe( 'ClassicEditorUI', () => {
expect( ui.focusTracker.isFocused ).to.true;
} );

it( 'sets view.editable#name', () => {
it( 'binds view.editable#isFocused', () => {
utils.assertBinding(
view.editable,
{ isFocused: false },
[
[ ui.focusTracker, { isFocused: true } ]
],
{ isFocused: true }
);
} );

it( 'set view.editable#name', () => {
const editable = editor.editing.view.document.getRoot();

expect( view.editable.name ).to.equal( editable.rootName );
Expand Down

0 comments on commit dfed3ca

Please sign in to comment.