// Set up the page
ARRAYASSERT = Y.ArrayAssert;
name: "XML Parse Tests",
testUndefined: function() {
},
testNull: function() {
},
testStrings: function() {
var xmldoc = Y.DataType.XML.parse("<myroot><item type='foo'><name>Abc</name><rank>1</rank></item><item type='bar'><name>Def</name><rank>2</rank></item><item type='bat'><name>Ghhi</name><rank>3</rank></item></myroot>");
}
});
name: "XML Format Tests",
testUndefined: function() {
},
testNull: function() {
},
testFormat: function() {
var origString = "<myroot><item type=\"foo\"><name>Abc</name><rank>1</rank></item><item type=\"bar\"><name>Def</name><rank>2</rank></item><item type=\"bat\"><name>Ghhi</name><rank>3</rank></item></myroot>",
ie9String = '<myroot xmlns=""><item type="foo"><name>Abc</name><rank>1</rank></item><item type="bar"><name>Def</name><rank>2</rank></item><item type="bat"><name>Ghhi</name><rank>3</rank></item></myroot>';
ASSERT.isTrue((newString.indexOf(origString) > -1) || (newString === ie9String), "Expected new string same as old string.");
}
});
});