virtualeditingcontroller.js 715 B

12345678910111213141516171819202122
  1. /**
  2. * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md.
  4. */
  5. 'use strict';
  6. import Editor from '/ckeditor5/editor/editor.js';
  7. import VirtualEditingController from '/tests/ckeditor5/_utils/virtualeditingcontroller.js';
  8. describe( 'VirtualEditingController', () => {
  9. describe( 'constructor', () => {
  10. it( 'sets necessary properties', () => {
  11. const editor = new Editor();
  12. const controller = new VirtualEditingController( editor.document );
  13. expect( controller ).to.have.property( 'model', editor.document );
  14. expect( controller ).to.have.property( 'view' );
  15. expect( controller ).to.have.property( 'modelToView' );
  16. } );
  17. } );
  18. } );