wallet-core/node_modules/htmlparser2/test/Stream/03-Atom.json
2017-05-03 15:35:00 +02:00

644 lines
9.0 KiB
JSON

{
"name": "Atom feed",
"options": {"xmlMode": true},
"file": "Atom_Example.xml",
"expected": [
{
"event": "processinginstruction",
"data": [
"?xml",
"?xml version=\"1.0\" encoding=\"utf-8\"?"
]
},
{
"event": "text",
"data": [
"\n"
]
},
{
"event": "comment",
"data": [
" http://en.wikipedia.org/wiki/Atom_%28standard%29 "
]
},
{
"event": "commentend",
"data": []
},
{
"event": "text",
"data": [
"\n"
]
},
{
"event": "opentagname",
"data": [
"feed"
]
},
{
"event": "attribute",
"data": [
"xmlns",
"http://www.w3.org/2005/Atom"
]
},
{
"event": "opentag",
"data": [
"feed",
{
"xmlns": "http://www.w3.org/2005/Atom"
}
]
},
{
"event": "text",
"data": [
"\n\t"
]
},
{
"event": "opentagname",
"data": [
"title"
]
},
{
"event": "opentag",
"data": [
"title",
{}
]
},
{
"event": "text",
"data": [
"Example Feed"
]
},
{
"event": "closetag",
"data": [
"title"
]
},
{
"event": "text",
"data": [
"\n\t"
]
},
{
"event": "opentagname",
"data": [
"subtitle"
]
},
{
"event": "opentag",
"data": [
"subtitle",
{}
]
},
{
"event": "text",
"data": [
"A subtitle."
]
},
{
"event": "closetag",
"data": [
"subtitle"
]
},
{
"event": "text",
"data": [
"\n\t"
]
},
{
"event": "opentagname",
"data": [
"link"
]
},
{
"event": "attribute",
"data": [
"href",
"http://example.org/feed/"
]
},
{
"event": "attribute",
"data": [
"rel",
"self"
]
},
{
"event": "opentag",
"data": [
"link",
{
"href": "http://example.org/feed/",
"rel": "self"
}
]
},
{
"event": "closetag",
"data": [
"link"
]
},
{
"event": "text",
"data": [
"\n\t"
]
},
{
"event": "opentagname",
"data": [
"link"
]
},
{
"event": "attribute",
"data": [
"href",
"http://example.org/"
]
},
{
"event": "opentag",
"data": [
"link",
{
"href": "http://example.org/"
}
]
},
{
"event": "closetag",
"data": [
"link"
]
},
{
"event": "text",
"data": [
"\n\t"
]
},
{
"event": "opentagname",
"data": [
"id"
]
},
{
"event": "opentag",
"data": [
"id",
{}
]
},
{
"event": "text",
"data": [
"urn:uuid:60a76c80-d399-11d9-b91C-0003939e0af6"
]
},
{
"event": "closetag",
"data": [
"id"
]
},
{
"event": "text",
"data": [
"\n\t"
]
},
{
"event": "opentagname",
"data": [
"updated"
]
},
{
"event": "opentag",
"data": [
"updated",
{}
]
},
{
"event": "text",
"data": [
"2003-12-13T18:30:02Z"
]
},
{
"event": "closetag",
"data": [
"updated"
]
},
{
"event": "text",
"data": [
"\n\t"
]
},
{
"event": "opentagname",
"data": [
"author"
]
},
{
"event": "opentag",
"data": [
"author",
{}
]
},
{
"event": "text",
"data": [
"\n\t\t"
]
},
{
"event": "opentagname",
"data": [
"name"
]
},
{
"event": "opentag",
"data": [
"name",
{}
]
},
{
"event": "text",
"data": [
"John Doe"
]
},
{
"event": "closetag",
"data": [
"name"
]
},
{
"event": "text",
"data": [
"\n\t\t"
]
},
{
"event": "opentagname",
"data": [
"email"
]
},
{
"event": "opentag",
"data": [
"email",
{}
]
},
{
"event": "text",
"data": [
"johndoe@example.com"
]
},
{
"event": "closetag",
"data": [
"email"
]
},
{
"event": "text",
"data": [
"\n\t"
]
},
{
"event": "closetag",
"data": [
"author"
]
},
{
"event": "text",
"data": [
"\n\n\t"
]
},
{
"event": "opentagname",
"data": [
"entry"
]
},
{
"event": "opentag",
"data": [
"entry",
{}
]
},
{
"event": "text",
"data": [
"\n\t\t"
]
},
{
"event": "opentagname",
"data": [
"title"
]
},
{
"event": "opentag",
"data": [
"title",
{}
]
},
{
"event": "text",
"data": [
"Atom-Powered Robots Run Amok"
]
},
{
"event": "closetag",
"data": [
"title"
]
},
{
"event": "text",
"data": [
"\n\t\t"
]
},
{
"event": "opentagname",
"data": [
"link"
]
},
{
"event": "attribute",
"data": [
"href",
"http://example.org/2003/12/13/atom03"
]
},
{
"event": "opentag",
"data": [
"link",
{
"href": "http://example.org/2003/12/13/atom03"
}
]
},
{
"event": "closetag",
"data": [
"link"
]
},
{
"event": "text",
"data": [
"\n\t\t"
]
},
{
"event": "opentagname",
"data": [
"link"
]
},
{
"event": "attribute",
"data": [
"rel",
"alternate"
]
},
{
"event": "attribute",
"data": [
"type",
"text/html"
]
},
{
"event": "attribute",
"data": [
"href",
"http://example.org/2003/12/13/atom03.html"
]
},
{
"event": "opentag",
"data": [
"link",
{
"rel": "alternate",
"type": "text/html",
"href": "http://example.org/2003/12/13/atom03.html"
}
]
},
{
"event": "closetag",
"data": [
"link"
]
},
{
"event": "text",
"data": [
"\n\t\t"
]
},
{
"event": "opentagname",
"data": [
"link"
]
},
{
"event": "attribute",
"data": [
"rel",
"edit"
]
},
{
"event": "attribute",
"data": [
"href",
"http://example.org/2003/12/13/atom03/edit"
]
},
{
"event": "opentag",
"data": [
"link",
{
"rel": "edit",
"href": "http://example.org/2003/12/13/atom03/edit"
}
]
},
{
"event": "closetag",
"data": [
"link"
]
},
{
"event": "text",
"data": [
"\n\t\t"
]
},
{
"event": "opentagname",
"data": [
"id"
]
},
{
"event": "opentag",
"data": [
"id",
{}
]
},
{
"event": "text",
"data": [
"urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a"
]
},
{
"event": "closetag",
"data": [
"id"
]
},
{
"event": "text",
"data": [
"\n\t\t"
]
},
{
"event": "opentagname",
"data": [
"updated"
]
},
{
"event": "opentag",
"data": [
"updated",
{}
]
},
{
"event": "text",
"data": [
"2003-12-13T18:30:02Z"
]
},
{
"event": "closetag",
"data": [
"updated"
]
},
{
"event": "text",
"data": [
"\n\t\t"
]
},
{
"event": "opentagname",
"data": [
"summary"
]
},
{
"event": "opentag",
"data": [
"summary",
{}
]
},
{
"event": "text",
"data": [
"Some text."
]
},
{
"event": "closetag",
"data": [
"summary"
]
},
{
"event": "text",
"data": [
"\n\t"
]
},
{
"event": "closetag",
"data": [
"entry"
]
},
{
"event": "text",
"data": [
"\n\n"
]
},
{
"event": "closetag",
"data": [
"feed"
]
}
]
}