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

Commit

Permalink
Merge pull request #1514 from ckeditor/t/1513
Browse files Browse the repository at this point in the history
Other: Changed long name returned by `Operation.className` property to the short one. Closes #1513.
  • Loading branch information
Piotr Jasiun committed Aug 27, 2018
2 parents 7d8de56 + a78bbe7 commit 7765953
Show file tree
Hide file tree
Showing 25 changed files with 30 additions and 30 deletions.
2 changes: 1 addition & 1 deletion src/model/operation/attributeoperation.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ export default class AttributeOperation extends Operation {
* @inheritDoc
*/
static get className() {
return 'engine.model.operation.AttributeOperation';
return 'AttributeOperation';
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/model/operation/detachoperation.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,6 @@ export default class DetachOperation extends Operation {
* @inheritDoc
*/
static get className() {
return 'engine.model.operation.DetachOperation';
return 'DetachOperation';
}
}
2 changes: 1 addition & 1 deletion src/model/operation/insertoperation.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export default class InsertOperation extends Operation {
* @inheritDoc
*/
static get className() {
return 'engine.model.operation.InsertOperation';
return 'InsertOperation';
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/model/operation/markeroperation.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export default class MarkerOperation extends Operation {
* @inheritDoc
*/
static get className() {
return 'engine.model.operation.MarkerOperation';
return 'MarkerOperation';
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/model/operation/mergeoperation.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export default class MergeOperation extends Operation {
* @inheritDoc
*/
static get className() {
return 'engine.model.operation.MergeOperation';
return 'MergeOperation';
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/model/operation/moveoperation.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ export default class MoveOperation extends Operation {
* @inheritDoc
*/
static get className() {
return 'engine.model.operation.MoveOperation';
return 'MoveOperation';
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/model/operation/nooperation.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@ export default class NoOperation extends Operation {
* @inheritDoc
*/
static get className() {
return 'engine.model.operation.NoOperation';
return 'NoOperation';
}
}
2 changes: 1 addition & 1 deletion src/model/operation/operation.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export default class Operation {
* @type {String}
*/
static get className() {
return 'engine.model.operation.Operation';
return 'Operation';
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/model/operation/renameoperation.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export default class RenameOperation extends Operation {
* @inheritDoc
*/
static get className() {
return 'engine.model.operation.RenameOperation';
return 'RenameOperation';
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/model/operation/rootattributeoperation.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ export default class RootAttributeOperation extends Operation {
* @inheritDoc
*/
static get className() {
return 'engine.model.operation.RootAttributeOperation';
return 'RootAttributeOperation';
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/model/operation/splitoperation.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ export default class SplitOperation extends Operation {
* @inheritDoc
*/
static get className() {
return 'engine.model.operation.SplitOperation';
return 'SplitOperation';
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/model/operation/unwrapoperation.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ export default class UnwrapOperation extends Operation {
* @inheritDoc
*/
static get className() {
return 'engine.model.operation.UnwrapOperation';
return 'UnwrapOperation';
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/model/operation/wrapoperation.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ export default class WrapOperation extends Operation {
* @inheritDoc
*/
static get className() {
return 'engine.model.operation.WrapOperation';
return 'WrapOperation';
}

/**
Expand Down
4 changes: 2 additions & 2 deletions tests/dev-utils/operationreplayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ function getFirstOperation() {
data: 'The great world of open Web standards'
} ]
} ],
__className: 'engine.model.operation.InsertOperation'
__className: 'InsertOperation'
};
}

Expand All @@ -192,6 +192,6 @@ function getSecondOperation() {
data: 'The great world of open Web standards'
} ]
} ],
__className: 'engine.model.operation.InsertOperation'
__className: 'InsertOperation'
};
}
4 changes: 2 additions & 2 deletions tests/model/operation/attributeoperation.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion tests/model/operation/detachoperation.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/model/operation/insertoperation.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
2 changes: 1 addition & 1 deletion tests/model/operation/markeroperation.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion tests/model/operation/moveoperation.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
2 changes: 1 addition & 1 deletion tests/model/operation/nooperation.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ describe( 'NoOperation', () => {
const serialized = noop.toJSON();

expect( serialized ).to.deep.equal( {
__className: 'engine.model.operation.NoOperation',
__className: 'NoOperation',
baseVersion: 0
} );
} );
Expand Down
4 changes: 2 additions & 2 deletions tests/model/operation/operation.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ describe( 'Operation', () => {
const serialized = op.toJSON();

expect( serialized ).to.deep.equal( {
__className: 'engine.model.operation.Operation',
__className: 'Operation',
baseVersion: 4
} );
} );
Expand All @@ -47,7 +47,7 @@ describe( 'Operation', () => {
const serialized = op.toJSON();

expect( serialized ).to.deep.equal( {
__className: 'engine.model.operation.Operation',
__className: 'Operation',
baseVersion: 4
} );
} );
Expand Down
2 changes: 1 addition & 1 deletion tests/model/operation/operationfactory.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 );

Expand Down
2 changes: 1 addition & 1 deletion tests/model/operation/renameoperation.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
4 changes: 2 additions & 2 deletions tests/model/operation/rootattributeoperation.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
4 changes: 2 additions & 2 deletions tests/model/operation/wrapoperation.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand All @@ -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(),
Expand Down

0 comments on commit 7765953

Please sign in to comment.