浏览代码

Tests: Unskipped tests.

Szymon Cofalik 7 年之前
父节点
当前提交
8ca8826923

+ 2 - 2
packages/ckeditor5-undo/tests/redocommand.js

@@ -131,7 +131,7 @@ describe( 'RedoCommand', () => {
 				expect( editor.model.document.selection.isBackward ).to.be.false;
 			} );
 
-			it.skip( 'should redo series of batches undone by undo command', () => {
+			it( 'should redo series of batches undone by undo command', () => {
 				undo.execute();
 				undo.execute();
 				undo.execute();
@@ -190,7 +190,7 @@ describe( 'RedoCommand', () => {
 				expect( editor.model.document.selection.isBackward ).to.be.false;
 			} );
 
-			it.skip( 'should redo batch selectively undone by undo command', () => {
+			it( 'should redo batch selectively undone by undo command', () => {
 				undo.execute( batch0 );
 				redo.execute();
 

+ 3 - 3
packages/ckeditor5-undo/tests/undocommand.js

@@ -136,7 +136,7 @@ describe( 'UndoCommand', () => {
 				} );
 			} );
 
-			it.skip( 'should revert changes done by deltas from the batch that was most recently added to the command stack', () => {
+			it( 'should revert changes done by operations from the batch that was most recently added to the command stack', () => {
 				undo.execute();
 
 				// Selection is restored. Wrap is removed:
@@ -210,7 +210,7 @@ describe( 'UndoCommand', () => {
 				expect( editor.model.document.selection.getFirstRange().isEqual( r( 0, 0 ) ) ).to.be.true;
 			} );
 
-			it.skip( 'should revert changes done by deltas from given batch, if parameter was passed (test: revert set attribute)', () => {
+			it( 'should revert changes done by deltas from given batch, if parameter was passed (test: revert set attribute)', () => {
 				undo.execute( batch1 );
 				// Remove attribute:
 				/*
@@ -238,7 +238,7 @@ describe( 'UndoCommand', () => {
 				expect( editor.model.document.selection.isBackward ).to.be.true;
 			} );
 
-			it.skip( 'should revert changes done by deltas from given batch, if parameter was passed (test: revert insert foobar)', () => {
+			it( 'should revert changes done by deltas from given batch, if parameter was passed (test: revert insert foobar)', () => {
 				undo.execute( batch0 );
 				// Remove foobar:
 				/*

+ 4 - 3
packages/ckeditor5-undo/tests/undoediting-integration.js

@@ -903,7 +903,7 @@ describe( 'UndoEditing integration', () => {
 		} );
 
 		// https://github.com/ckeditor/ckeditor5-undo/issues/65#issuecomment-323682195
-		it.skip( 'undoing split after the element created by split has been removed', () => {
+		it( 'undoing split after the element created by split has been removed', () => {
 			input( '<paragraph>Foo[]bar</paragraph>' );
 
 			editor.execute( 'enter' );
@@ -915,12 +915,13 @@ describe( 'UndoEditing integration', () => {
 
 				editor.execute( 'delete' );
 			} );
+			output( '<paragraph>Foo[]</paragraph>' );
 
 			editor.execute( 'undo' );
 			output( '<paragraph>Foo[</paragraph><paragraph>bar]</paragraph>' );
 
 			editor.execute( 'undo' );
-			output( '<paragraph>Foobar[]</paragraph>' );
+			output( '<paragraph>Foo[]bar</paragraph>' );
 		} );
 	} );
 
@@ -984,7 +985,7 @@ describe( 'UndoEditing integration', () => {
 	} );
 
 	describe( 'other edge cases', () => {
-		it.skip( 'deleteContent between two nodes', () => {
+		it( 'deleteContent between two nodes', () => {
 			input( '<paragraph>fo[o</paragraph><paragraph>b]ar</paragraph>' );
 
 			editor.model.deleteContent( doc.selection );