8
0
Просмотр исходного кода

Removed unnecessary test cases.

Oskar Wrobel 9 лет назад
Родитель
Сommit
2bef179be5
1 измененных файлов с 1 добавлено и 31 удалено
  1. 1 31
      packages/ckeditor5-engine/tests/_utils-tests/model.js

+ 1 - 31
packages/ckeditor5-engine/tests/_utils-tests/model.js

@@ -450,42 +450,12 @@ describe( 'model test utils', () => {
 			}
 		} );
 
-		it( 'throws when unexpected closing tag', () => {
+		it( 'throws when invalid XML', () => {
 			expect( () => {
 				parse( '<a><b></a></b>' );
 			} ).to.throw( Error );
 		} );
 
-		it( 'throws when unexpected attribute', () => {
-			expect( () => {
-				parse( '<a ?></a>' );
-			} ).to.throw( Error );
-		} );
-
-		it( 'throws when incorrect tag', () => {
-			expect( () => {
-				parse( '<a' );
-			} ).to.throw( Error );
-		} );
-
-		it( 'throws when missing closing tag', () => {
-			expect( () => {
-				parse( '<a><b></b>' );
-			} ).to.throw( Error );
-		} );
-
-		it( 'throws when missing opening tag for text', () => {
-			expect( () => {
-				parse( '</$text>' );
-			} ).to.throw( Error );
-		} );
-
-		it( 'throws when missing closing tag for text', () => {
-			expect( () => {
-				parse( '<$text>' );
-			} ).to.throw( Error );
-		} );
-
 		describe( 'selection', () => {
 			test( 'sets collapsed selection in an element', {
 				data: '<a>[]</a>',