blob: 3d6e98520d8f90ff856272ddb2b536a8ce476daf [file] [log] [blame]
require(__dirname).test({
xml :
"<root>"+
"<child>" +
"<haha />" +
"</child>" +
"<monkey>" +
"=(|)" +
"</monkey>" +
"</root>",
expect : [
["opentag", {
"name": "root",
"attributes": {},
"isSelfClosing": false
}],
["opentag", {
"name": "child",
"attributes": {},
"isSelfClosing": false
}],
["opentag", {
"name": "haha",
"attributes": {},
"isSelfClosing": true
}],
["closetag", "haha"],
["closetag", "child"],
["opentag", {
"name": "monkey",
"attributes": {},
"isSelfClosing": false
}],
["text", "=(|)"],
["closetag", "monkey"],
["closetag", "root"],
["end"],
["ready"]
],
strict : true,
opt : {}
});