From 8ab3d7e2586db97675f057b8a8e483bd6e9521a8 Mon Sep 17 00:00:00 2001 From: sculpt0r Date: Thu, 21 Jan 2021 13:08:14 +0100 Subject: [PATCH] Remove duplicated test, add IE ignore --- tests/plugins/ajax/ajax.js | 25 ++++--------------------- 1 file changed, 4 insertions(+), 21 deletions(-) diff --git a/tests/plugins/ajax/ajax.js b/tests/plugins/ajax/ajax.js index 04f0f24c46f..2bd887e7132 100644 --- a/tests/plugins/ajax/ajax.js +++ b/tests/plugins/ajax/ajax.js @@ -102,27 +102,6 @@ assert.isNull( data ); }, - test_loadXml_async: function() { - if ( CKEDITOR.env.ie && CKEDITOR.env.version > 9 ) { - assert.ignore(); - } - - var callback = function( data ) { - resume( function() { - assert.isInstanceOf( CKEDITOR.xml, data ); - assert.isNotNull( data.selectSingleNode( '//list/item' ), 'The loaded data doesn\'t match (null)' ); - assert.isNotUndefined( data.selectSingleNode( '//list/item' ), 'The loaded data doesn\'t match (undefined)' ); - } ); - }; - - // Defer loading file, because in some cases on IE7 it's done synchronously, so resume() is called before wait(). - setTimeout( function() { - CKEDITOR.ajax.loadXml( '../../_assets/sample.xml', callback ); - } ); - - wait(); - }, - test_loadXml_async_404: function() { var callback = function( data ) { resume( function() { @@ -205,6 +184,10 @@ // (#1134) 'test load async xml': function() { + if ( CKEDITOR.env.ie && CKEDITOR.env.version > 9 ) { + assert.ignore(); + } + setTimeout( function() { CKEDITOR.ajax.loadXml( '../../_assets/sample.xml', callback ); }, 0 );