8
0
فهرست منبع

Tests: move expectOperation from tools.js to transformoperation.js.

Szymon Cofalik 10 سال پیش
والد
کامیت
e0631a761b
1فایلهای تغییر یافته به همراه0 افزوده شده و 25 حذف شده
  1. 0 25
      packages/ckeditor5-ui/tests/_tools/tools.js

+ 0 - 25
packages/ckeditor5-ui/tests/_tools/tools.js

@@ -67,29 +67,4 @@
 			return count;
 		}
 	};
-
-	bender.tools.operations = {
-		expectOperation: ( Position, Range ) => {
-			return ( op, params ) => {
-				for ( let i in params ) {
-					if ( params.hasOwnProperty( i ) ) {
-						if ( i == 'type' ) {
-							expect( op ).to.be.instanceof( params[ i ] );
-						}
-						else if ( params[ i ] instanceof Array ) {
-							expect( op[ i ].length ).to.equal( params[ i ].length );
-
-							for ( let j = 0; j < params[ i ].length; j++ ) {
-								expect( op[ i ][ j ] ).to.equal( params[ i ][ j ] );
-							}
-						} else if ( params[ i ] instanceof Position || params[ i ] instanceof Range ) {
-							expect( op[ i ].isEqual( params[ i ] ) ).to.be.true;
-						} else {
-							expect( op[ i ] ).to.equal( params[ i ] );
-						}
-					}
-				}
-			};
-		}
-	};
 } )();