diff --git a/tests/model/operation/transform/attribute.js b/tests/model/operation/transform/attribute.js index d4b55a17a..8aaefb74e 100644 --- a/tests/model/operation/transform/attribute.js +++ b/tests/model/operation/transform/attribute.js @@ -532,21 +532,6 @@ describe( 'transform', () => { ); } ); - it( 'text into div in different path', () => { - john.setData( '[Foo]Bar' ); - kate.setData( 'Foo[Bar]' ); - - john.setAttribute( 'bold', true ); - kate.wrap( 'div' ); - - syncClients(); - - expectClients( - '<$text bold="true">Foo' + - '
Bar
' - ); - } ); - it( 'element into blockQuote in same path #1', () => { john.setData( '[Foo]' ); kate.setData( '[Foo]' ); @@ -578,18 +563,6 @@ describe( 'transform', () => { '' ); } ); - - it( 'text into div in same path', () => { - john.setData( '[Foo]' ); - kate.setData( '[Foo]' ); - - john.setAttribute( 'bold', true ); - kate.wrap( 'div' ); - - syncClients(); - - expectClients( '
<$text bold="true">Foo
' ); - } ); } ); describe( 'by unwrap', () => { diff --git a/tests/model/operation/transform/insert.js b/tests/model/operation/transform/insert.js index 64e317369..6e26cf7e3 100644 --- a/tests/model/operation/transform/insert.js +++ b/tests/model/operation/transform/insert.js @@ -300,18 +300,6 @@ describe( 'transform', () => { ); } ); - it( 'text in same path', () => { - john.setData( 'Foo[]' ); - kate.setData( '[Foo]' ); - - john.type( 'Bar' ); - kate.wrap( 'div' ); - - syncClients(); - - expectClients( '
Foo
Bar
' ); - } ); - it( 'element in different paths #1', () => { john.setData( 'Foo[]Bar' ); kate.setData( 'Foo[Bar]' ); @@ -347,21 +335,6 @@ describe( 'transform', () => { ); } ); - it( 'text in different paths', () => { - john.setData( 'Foo[]Bar' ); - kate.setData( 'Foo[Bar]' ); - - john.type( 'Abc' ); - kate.wrap( 'div' ); - - syncClients(); - - expectClients( - 'FooAbc' + - '
Bar
' - ); - } ); - it( 'element, then unwrap and split', () => { john.setData( 'Foo[]' ); kate.setData( '[Foo]' ); diff --git a/tests/model/operation/transform/marker.js b/tests/model/operation/transform/marker.js index d98bc40c3..2110ab600 100644 --- a/tests/model/operation/transform/marker.js +++ b/tests/model/operation/transform/marker.js @@ -474,21 +474,6 @@ describe( 'transform', () => { ); } ); - it( 'text in different path', () => { - john.setData( '[Foo]Bar' ); - kate.setData( 'Foo[Bar]' ); - - john.setMarker( 'm1' ); - kate.wrap( 'div' ); - - syncClients(); - - expectClients( - 'Foo' + - '
Bar
' - ); - } ); - it( 'element in same path', () => { john.setData( '[Foo]' ); kate.setData( '[Foo]' ); @@ -505,18 +490,6 @@ describe( 'transform', () => { ); } ); - it( 'text in same path', () => { - john.setData( '[Foo]' ); - kate.setData( '[Foo]' ); - - john.setMarker( 'm1' ); - kate.wrap( 'div' ); - - syncClients(); - - expectClients( '
Foo
' ); - } ); - it( 'element in same path, then undo', () => { john.setData( '[Foo]' ); kate.setData( '[Foo]' ); @@ -536,22 +509,6 @@ describe( 'transform', () => { '' ); } ); - - it( 'text in same path, then undo', () => { - john.setData( '[Foo]' ); - kate.setData( '[Foo]' ); - - john.setMarker( 'm1' ); - kate.wrap( 'div' ); - - syncClients(); - - john.undo(); - - syncClients(); - - expectClients( '
Foo
' ); - } ); } ); describe( 'by unwrap', () => { diff --git a/tests/model/operation/transform/move.js b/tests/model/operation/transform/move.js index 02a0901e7..7cb85f619 100644 --- a/tests/model/operation/transform/move.js +++ b/tests/model/operation/transform/move.js @@ -192,21 +192,6 @@ describe( 'transform', () => { ); } ); - it( 'text in different path', () => { - john.setData( 'F[oo]Bar' ); - kate.setData( 'Foo[Bar]' ); - - john.move( [ 0, 0 ] ); - kate.wrap( 'div' ); - - syncClients(); - - expectClients( - 'ooF' + - '
Bar
' - ); - } ); - it( 'element in same path', () => { john.setData( 'F[oo]' ); kate.setData( '[Foo]' ); @@ -223,18 +208,6 @@ describe( 'transform', () => { ); } ); - it( 'text in same path', () => { - john.setData( 'F[oo]' ); - kate.setData( '[Foo]' ); - - john.move( [ 0, 0 ] ); - kate.wrap( 'div' ); - - syncClients(); - - expectClients( 'oo
F
' ); - } ); - it( 'element while moving', () => { john.setData( '[Foo]Bar' ); kate.setData( '[Foo]Bar' ); @@ -251,36 +224,6 @@ describe( 'transform', () => { '' ); } ); - - it( 'text while moving', () => { - john.setData( '[Foo]Bar' ); - kate.setData( '[Foo]Bar' ); - - john.move( [ 1, 0 ] ); - kate.wrap( 'div' ); - - syncClients(); - - expectClients( - '
' + - 'FooBar' - ); - } ); - - it( 'intersecting wrap', () => { - john.setData( 'F[oo]Bar' ); - kate.setData( '[Foo]Bar' ); - - john.move( [ 1, 0 ] ); - kate.wrap( 'div' ); - - syncClients(); - - expectClients( - '
F
' + - 'ooBar' - ); - } ); } ); describe( 'by unwrap', () => { diff --git a/tests/model/operation/transform/remove.js b/tests/model/operation/transform/remove.js index 797204728..77238aa15 100644 --- a/tests/model/operation/transform/remove.js +++ b/tests/model/operation/transform/remove.js @@ -112,21 +112,6 @@ describe( 'transform', () => { ); } ); - it( 'text in different path', () => { - john.setData( '[Foo]Bar' ); - kate.setData( 'Foo[Bar]' ); - - john.remove(); - kate.wrap( 'div' ); - - syncClients(); - - expectClients( - '' + - '
Bar
' - ); - } ); - it( 'element in same path', () => { john.setData( '[Foo]' ); kate.setData( '[Foo]' ); @@ -139,18 +124,6 @@ describe( 'transform', () => { expectClients( '
' ); } ); - it( 'text in same path', () => { - john.setData( '[Foo] Bar' ); - kate.setData( '[Foo Bar]' ); - - john.remove(); - kate.wrap( 'div' ); - - syncClients(); - - expectClients( '
Bar
' ); - } ); - it( 'element while removing', () => { john.setData( 'Foo[Bar]' ); kate.setData( 'Foo[Bar]' ); @@ -183,34 +156,6 @@ describe( 'transform', () => { '' ); } ); - - it( 'text while removing', () => { - john.setData( '[Foo]' ); - kate.setData( '[Foo]' ); - - john.remove(); - kate.wrap( 'div' ); - - syncClients(); - - expectClients( '' ); - } ); - - it( 'text while removing, then undo', () => { - john.setData( '[Foo]' ); - kate.setData( '[Foo]' ); - - john.remove(); - kate.wrap( 'div' ); - - syncClients(); - - john.undo(); - - syncClients(); - - expectClients( '
Foo
' ); - } ); } ); describe( 'by unwrap', () => { diff --git a/tests/model/operation/transform/rename.js b/tests/model/operation/transform/rename.js index 90c55e6d3..9a0bcbcec 100644 --- a/tests/model/operation/transform/rename.js +++ b/tests/model/operation/transform/rename.js @@ -130,21 +130,6 @@ describe( 'transform', () => { ); } ); - it( 'text in different path', () => { - john.setData( '[]FooBar' ); - kate.setData( 'Foo[Bar]' ); - - john.rename( 'heading1' ); - kate.wrap( 'div' ); - - syncClients(); - - expectClients( - 'Foo' + - '
Bar
' - ); - } ); - it( 'element in same path', () => { john.setData( '[]Foo' ); kate.setData( '[Foo]' ); @@ -156,18 +141,6 @@ describe( 'transform', () => { expectClients( '
Foo
' ); } ); - - it( 'text in same path', () => { - john.setData( '[]Foo' ); - kate.setData( '[Foo]' ); - - john.rename( 'heading1' ); - kate.wrap( 'div' ); - - syncClients(); - - expectClients( '
Foo
' ); - } ); } ); describe( 'by unwrap', () => { diff --git a/tests/model/operation/transform/split.js b/tests/model/operation/transform/split.js index 630162a92..922361055 100644 --- a/tests/model/operation/transform/split.js +++ b/tests/model/operation/transform/split.js @@ -52,40 +52,6 @@ describe( 'transform', () => { ); } ); - it( 'text in same path', () => { - john.setData( 'F[]oo' ); - kate.setData( '[Foo]' ); - - john.split(); - kate.wrap( 'div' ); - - syncClients(); - - expectClients( - '
F
' + - '
oo
' - ); - } ); - - it( 'text in same path, then undo', () => { - john.setData( 'F[]oo' ); - kate.setData( '[Foo]' ); - - john.split(); - kate.wrap( 'div' ); - - syncClients(); - - kate.undo(); - - syncClients(); - - expectClients( - 'F' + - 'oo' - ); - } ); - it( 'multiple elements', () => { john.setData( 'F[]ooBar' ); kate.setData( '[FooBar]' ); diff --git a/tests/model/operation/transform/wrap.js b/tests/model/operation/transform/wrap.js index a3d0cb681..e6f0b2a28 100644 --- a/tests/model/operation/transform/wrap.js +++ b/tests/model/operation/transform/wrap.js @@ -31,21 +31,6 @@ describe( 'transform', () => { ); } ); - it( 'text in different path', () => { - john.setData( '[Foo]Bar' ); - kate.setData( 'Foo[Bar]' ); - - john.wrap( 'div' ); - kate.wrap( 'div2' ); - - syncClients(); - - expectClients( - '
Foo
' + - 'Bar' - ); - } ); - it( 'the same element', () => { john.setData( '[Foo]' ); kate.setData( '[Foo]' );