Ticket #3612: 3612.patch

File 3612.patch, 1.2 KB (added by Alfonso Martínez de Lizarrondo, 15 years ago)

Updated testcase

  • _source/tests/core/ajax.html

     
    137137                        this.wait();
    138138                },
    139139
     140                test_parseXml : function()
     141                {
     142                        var data = new CKEDITOR.xml( '<?xml version="1.0" encoding="utf-8" ?><list><item id="test1" /><item id="test2" /></list>' );
     143                        assert.isInstanceOf( CKEDITOR.xml, data );
     144                        assert.isNotNull( data.selectSingleNode( '//list/item' ), 'The loaded data doesn\'t match (null)' );
     145                        assert.isNotUndefined( data.selectSingleNode( '//list/item' ), 'The loaded data doesn\'t match (undefined)' );
     146                },
     147
     148                test_parseXml_nbsp : function()
     149                {
     150                        var data = new CKEDITOR.xml( '<?xml version="1.0" encoding="utf-8" ?><list><item id="test1">&nbsp;</item><item id="test2" /></list>' );
     151                        assert.isInstanceOf( CKEDITOR.xml, data );
     152                        assert.isNotNull( data.selectSingleNode( '//list/item' ), 'The loaded data doesn\'t match (null)' );
     153                        assert.isNotUndefined( data.selectSingleNode( '//list/item' ), 'The loaded data doesn\'t match (undefined)' );
     154                },
     155
    140156                name : document.title
    141157        };
    142158})() );
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy