diff --git a/src/model/operation/attributeoperation.js b/src/model/operation/attributeoperation.js index 70457d17a..3e7e22076 100644 --- a/src/model/operation/attributeoperation.js +++ b/src/model/operation/attributeoperation.js @@ -179,7 +179,7 @@ export default class AttributeOperation extends Operation { * @inheritDoc */ static get className() { - return 'engine.model.operation.AttributeOperation'; + return 'AttributeOperation'; } /** diff --git a/src/model/operation/detachoperation.js b/src/model/operation/detachoperation.js index f070247df..6ef0a6d8a 100644 --- a/src/model/operation/detachoperation.js +++ b/src/model/operation/detachoperation.js @@ -89,6 +89,6 @@ export default class DetachOperation extends Operation { * @inheritDoc */ static get className() { - return 'engine.model.operation.DetachOperation'; + return 'DetachOperation'; } } diff --git a/src/model/operation/insertoperation.js b/src/model/operation/insertoperation.js index 0a00d7e91..0662f45e7 100644 --- a/src/model/operation/insertoperation.js +++ b/src/model/operation/insertoperation.js @@ -144,7 +144,7 @@ export default class InsertOperation extends Operation { * @inheritDoc */ static get className() { - return 'engine.model.operation.InsertOperation'; + return 'InsertOperation'; } /** diff --git a/src/model/operation/markeroperation.js b/src/model/operation/markeroperation.js index 27e8978d0..769d439be 100644 --- a/src/model/operation/markeroperation.js +++ b/src/model/operation/markeroperation.js @@ -126,7 +126,7 @@ export default class MarkerOperation extends Operation { * @inheritDoc */ static get className() { - return 'engine.model.operation.MarkerOperation'; + return 'MarkerOperation'; } /** diff --git a/src/model/operation/mergeoperation.js b/src/model/operation/mergeoperation.js index 4b5fb3503..67fd61cfc 100644 --- a/src/model/operation/mergeoperation.js +++ b/src/model/operation/mergeoperation.js @@ -169,7 +169,7 @@ export default class MergeOperation extends Operation { * @inheritDoc */ static get className() { - return 'engine.model.operation.MergeOperation'; + return 'MergeOperation'; } /** diff --git a/src/model/operation/moveoperation.js b/src/model/operation/moveoperation.js index 2b2e51de5..a061fa089 100644 --- a/src/model/operation/moveoperation.js +++ b/src/model/operation/moveoperation.js @@ -191,7 +191,7 @@ export default class MoveOperation extends Operation { * @inheritDoc */ static get className() { - return 'engine.model.operation.MoveOperation'; + return 'MoveOperation'; } /** diff --git a/src/model/operation/nooperation.js b/src/model/operation/nooperation.js index 3801888d2..e82b263dd 100644 --- a/src/model/operation/nooperation.js +++ b/src/model/operation/nooperation.js @@ -49,6 +49,6 @@ export default class NoOperation extends Operation { * @inheritDoc */ static get className() { - return 'engine.model.operation.NoOperation'; + return 'NoOperation'; } } diff --git a/src/model/operation/operation.js b/src/model/operation/operation.js index d1eb817a6..e00d9c415 100644 --- a/src/model/operation/operation.js +++ b/src/model/operation/operation.js @@ -112,7 +112,7 @@ export default class Operation { * @type {String} */ static get className() { - return 'engine.model.operation.Operation'; + return 'Operation'; } /** diff --git a/src/model/operation/renameoperation.js b/src/model/operation/renameoperation.js index 7ce8ab4f0..812cc1ecc 100644 --- a/src/model/operation/renameoperation.js +++ b/src/model/operation/renameoperation.js @@ -131,7 +131,7 @@ export default class RenameOperation extends Operation { * @inheritDoc */ static get className() { - return 'engine.model.operation.RenameOperation'; + return 'RenameOperation'; } /** diff --git a/src/model/operation/rootattributeoperation.js b/src/model/operation/rootattributeoperation.js index 068901cac..87c147c6c 100644 --- a/src/model/operation/rootattributeoperation.js +++ b/src/model/operation/rootattributeoperation.js @@ -177,7 +177,7 @@ export default class RootAttributeOperation extends Operation { * @inheritDoc */ static get className() { - return 'engine.model.operation.RootAttributeOperation'; + return 'RootAttributeOperation'; } /** diff --git a/src/model/operation/splitoperation.js b/src/model/operation/splitoperation.js index 32676197a..dedb6a760 100644 --- a/src/model/operation/splitoperation.js +++ b/src/model/operation/splitoperation.js @@ -185,7 +185,7 @@ export default class SplitOperation extends Operation { * @inheritDoc */ static get className() { - return 'engine.model.operation.SplitOperation'; + return 'SplitOperation'; } /** diff --git a/src/model/operation/unwrapoperation.js b/src/model/operation/unwrapoperation.js index 76e4ae420..4111ba692 100644 --- a/src/model/operation/unwrapoperation.js +++ b/src/model/operation/unwrapoperation.js @@ -146,7 +146,7 @@ export default class UnwrapOperation extends Operation { * @inheritDoc */ static get className() { - return 'engine.model.operation.UnwrapOperation'; + return 'UnwrapOperation'; } /** diff --git a/src/model/operation/wrapoperation.js b/src/model/operation/wrapoperation.js index ff760826b..3ed01c9a6 100644 --- a/src/model/operation/wrapoperation.js +++ b/src/model/operation/wrapoperation.js @@ -186,7 +186,7 @@ export default class WrapOperation extends Operation { * @inheritDoc */ static get className() { - return 'engine.model.operation.WrapOperation'; + return 'WrapOperation'; } /** diff --git a/tests/dev-utils/operationreplayer.js b/tests/dev-utils/operationreplayer.js index 7778451c9..fcf7d9af0 100644 --- a/tests/dev-utils/operationreplayer.js +++ b/tests/dev-utils/operationreplayer.js @@ -175,7 +175,7 @@ function getFirstOperation() { data: 'The great world of open Web standards' } ] } ], - __className: 'engine.model.operation.InsertOperation' + __className: 'InsertOperation' }; } @@ -192,6 +192,6 @@ function getSecondOperation() { data: 'The great world of open Web standards' } ] } ], - __className: 'engine.model.operation.InsertOperation' + __className: 'InsertOperation' }; } diff --git a/tests/model/operation/attributeoperation.js b/tests/model/operation/attributeoperation.js index 5b950ba0a..da92068d3 100644 --- a/tests/model/operation/attributeoperation.js +++ b/tests/model/operation/attributeoperation.js @@ -378,10 +378,10 @@ describe( 'AttributeOperation', () => { const serialized = op.toJSON(); - expect( serialized.__className ).to.equal( 'engine.model.operation.AttributeOperation' ); + expect( serialized.__className ).to.equal( 'AttributeOperation' ); expect( serialized ).to.deep.equal( { - __className: 'engine.model.operation.AttributeOperation', + __className: 'AttributeOperation', baseVersion: 0, key: 'key', newValue: 'newValue', diff --git a/tests/model/operation/detachoperation.js b/tests/model/operation/detachoperation.js index 26eddae28..52632f122 100644 --- a/tests/model/operation/detachoperation.js +++ b/tests/model/operation/detachoperation.js @@ -63,7 +63,7 @@ describe( 'DetachOperation', () => { const serialized = op.toJSON(); expect( serialized ).to.deep.equal( { - __className: 'engine.model.operation.DetachOperation', + __className: 'DetachOperation', baseVersion: null, sourcePosition: position.toJSON(), howMany: 1 diff --git a/tests/model/operation/insertoperation.js b/tests/model/operation/insertoperation.js index ffcd3bebb..e879e4701 100644 --- a/tests/model/operation/insertoperation.js +++ b/tests/model/operation/insertoperation.js @@ -225,7 +225,7 @@ describe( 'InsertOperation', () => { const serialized = op.toJSON(); expect( serialized ).to.deep.equal( { - __className: 'engine.model.operation.InsertOperation', + __className: 'InsertOperation', baseVersion: 0, nodes: ( new NodeList( [ new Text( 'x' ) ] ) ).toJSON(), position: position.toJSON(), diff --git a/tests/model/operation/markeroperation.js b/tests/model/operation/markeroperation.js index 16b913740..23a906a12 100644 --- a/tests/model/operation/markeroperation.js +++ b/tests/model/operation/markeroperation.js @@ -137,7 +137,7 @@ describe( 'MarkerOperation', () => { const serialized = op.toJSON(); expect( serialized ).to.deep.equal( { - __className: 'engine.model.operation.MarkerOperation', + __className: 'MarkerOperation', baseVersion: 0, name: 'name', oldRange: null, diff --git a/tests/model/operation/moveoperation.js b/tests/model/operation/moveoperation.js index 5456d710d..dab107f32 100644 --- a/tests/model/operation/moveoperation.js +++ b/tests/model/operation/moveoperation.js @@ -272,7 +272,7 @@ describe( 'MoveOperation', () => { const serialized = op.toJSON(); expect( serialized ).to.deep.equal( { - __className: 'engine.model.operation.MoveOperation', + __className: 'MoveOperation', baseVersion: 0, howMany: 1, sourcePosition: op.sourcePosition.toJSON(), diff --git a/tests/model/operation/nooperation.js b/tests/model/operation/nooperation.js index 17e74aeca..efd3c2ca9 100644 --- a/tests/model/operation/nooperation.js +++ b/tests/model/operation/nooperation.js @@ -38,7 +38,7 @@ describe( 'NoOperation', () => { const serialized = noop.toJSON(); expect( serialized ).to.deep.equal( { - __className: 'engine.model.operation.NoOperation', + __className: 'NoOperation', baseVersion: 0 } ); } ); diff --git a/tests/model/operation/operation.js b/tests/model/operation/operation.js index cc9bb2d69..688c09bb1 100644 --- a/tests/model/operation/operation.js +++ b/tests/model/operation/operation.js @@ -34,7 +34,7 @@ describe( 'Operation', () => { const serialized = op.toJSON(); expect( serialized ).to.deep.equal( { - __className: 'engine.model.operation.Operation', + __className: 'Operation', baseVersion: 4 } ); } ); @@ -47,7 +47,7 @@ describe( 'Operation', () => { const serialized = op.toJSON(); expect( serialized ).to.deep.equal( { - __className: 'engine.model.operation.Operation', + __className: 'Operation', baseVersion: 4 } ); } ); diff --git a/tests/model/operation/operationfactory.js b/tests/model/operation/operationfactory.js index 009c2e934..6c237622b 100644 --- a/tests/model/operation/operationfactory.js +++ b/tests/model/operation/operationfactory.js @@ -16,7 +16,7 @@ describe( 'OperationFactory', () => { it( 'should create operation from JSON', () => { const operation = OperationFactory.fromJSON( { - __className: 'engine.model.operation.NoOperation', + __className: 'NoOperation', baseVersion: 0 }, model.doc ); diff --git a/tests/model/operation/renameoperation.js b/tests/model/operation/renameoperation.js index 8416a303a..82522be80 100644 --- a/tests/model/operation/renameoperation.js +++ b/tests/model/operation/renameoperation.js @@ -108,7 +108,7 @@ describe( 'RenameOperation', () => { const serialized = op.toJSON(); expect( serialized ).to.deep.equal( { - __className: 'engine.model.operation.RenameOperation', + __className: 'RenameOperation', baseVersion: 0, position: op.position.toJSON(), newName: 'newName', diff --git a/tests/model/operation/rootattributeoperation.js b/tests/model/operation/rootattributeoperation.js index 221e19ab7..1012d5496 100644 --- a/tests/model/operation/rootattributeoperation.js +++ b/tests/model/operation/rootattributeoperation.js @@ -269,9 +269,9 @@ describe( 'RootAttributeOperation', () => { const serialized = op.toJSON(); - expect( serialized.__className ).to.equal( 'engine.model.operation.RootAttributeOperation' ); + expect( serialized.__className ).to.equal( 'RootAttributeOperation' ); expect( serialized ).to.deep.equal( { - __className: 'engine.model.operation.RootAttributeOperation', + __className: 'RootAttributeOperation', baseVersion: 0, key: 'key', newValue: 'newValue', diff --git a/tests/model/operation/wrapoperation.js b/tests/model/operation/wrapoperation.js index 50b5edb1d..4ffe4ca49 100644 --- a/tests/model/operation/wrapoperation.js +++ b/tests/model/operation/wrapoperation.js @@ -42,7 +42,7 @@ describe( 'WrapOperation', () => { const serialized = op.toJSON(); expect( serialized ).to.deep.equal( { - __className: 'engine.model.operation.WrapOperation', + __className: 'WrapOperation', baseVersion: 0, position: op.position.toJSON(), graveyardPosition: op.graveyardPosition.toJSON(), @@ -61,7 +61,7 @@ describe( 'WrapOperation', () => { const serialized = op.toJSON(); expect( serialized ).to.deep.equal( { - __className: 'engine.model.operation.WrapOperation', + __className: 'WrapOperation', baseVersion: 0, position: op.position.toJSON(), element: op.element.toJSON(),