changeoperation.js 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /**
  2. * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md.
  4. */
  5. /* bender-tags: document */
  6. 'use strict';
  7. describe( 'ChangeOperation', function() {
  8. it( 'should insert attribute' );
  9. it( 'should change attribute' );
  10. it( 'should remove attribute' );
  11. it( 'should create a change operation as a reverse' );
  12. it( 'should undo changes by applying reverse operation' );
  13. it( 'should undo insert attribute by applying reverse operation' );
  14. it( 'should undo change attribute by applying reverse operation' );
  15. it( 'should undo remove attribute by applying reverse operation' );
  16. it( 'should throw an error when one try to remove and the attribute does not exists' );
  17. it( 'should throw an error when one try to insert and the attribute already exists' );
  18. it( 'should throw an error when one try to change and the new and old attributes have different keys' );
  19. it( 'should throw an error when one try to change and the old attribute does not exists' );
  20. } );