position = cursor.getPosition();
expect(cursor.isSelecting()).to.equal(false, 'cursor is not selecting anything');
- //expect(cursor.getElement().getText())
expect(position.element.getText()).to.equal('Alice has a cat');
expect(position.offset).to.equal(5);
});
parent2 = selectionEnd.element.parent() || undefined;
if(command === 'unwrap-node') {
- // this.canvas.nodeUnwrap({node: canvasNode.create(pos.parentNode)});
- // this.sandbox.publish('contentChanged');
if(this.canvas.list.areItemsOfTheSameList({element1: parent1, element2: parent2})) {
this.canvas.list.extractItems({element1: parent1, element2: parent2});
} else if(!cursor.isSelecting()) {