| 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"> </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 | |