aboutsummaryrefslogtreecommitdiff
path: root/node_modules/domhandler/test/cases/01-basic.json
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/domhandler/test/cases/01-basic.json')
-rw-r--r--node_modules/domhandler/test/cases/01-basic.json41
1 files changed, 41 insertions, 0 deletions
diff --git a/node_modules/domhandler/test/cases/01-basic.json b/node_modules/domhandler/test/cases/01-basic.json
new file mode 100644
index 00000000..e7952ec9
--- /dev/null
+++ b/node_modules/domhandler/test/cases/01-basic.json
@@ -0,0 +1,41 @@
+{
+ "name": "Basic test",
+ "options": {},
+ "html": "<!DOCTYPE html><html><title>The Title</title><body>Hello world</body></html>",
+ "expected": [
+ {
+ "name": "!doctype",
+ "data": "!DOCTYPE html",
+ "type": "directive"
+ },
+ {
+ "type": "tag",
+ "name": "html",
+ "attribs": {},
+ "children": [
+ {
+ "type": "tag",
+ "name": "title",
+ "attribs": {},
+ "children": [
+ {
+ "data": "The Title",
+ "type": "text"
+ }
+ ]
+ },
+ {
+ "type": "tag",
+ "name": "body",
+ "attribs": {},
+ "children": [
+ {
+ "data": "Hello world",
+ "type": "text"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+} \ No newline at end of file