Actualizacion maquina principal
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / domhandler / test / cases / 01-basic.json
diff --git a/.config/coc/extensions/node_modules/coc-prettier/node_modules/domhandler/test/cases/01-basic.json b/.config/coc/extensions/node_modules/coc-prettier/node_modules/domhandler/test/cases/01-basic.json
new file mode 100644 (file)
index 0000000..61759fd
--- /dev/null
@@ -0,0 +1,57 @@
+{
+  "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": {},
+      "parent": null,
+      "children": [
+        {
+          "type": "tag",
+          "name": "title",
+          "attribs": {},
+          "parent": {
+            "type": "tag",
+            "name": "html",
+            "attribs": {}
+          },
+          "children": [
+            {
+              "data": "The Title",
+              "type": "text",
+              "parent": {
+                "type": "tag",
+                "name": "title",
+                "attribs": {}
+              }
+            }
+          ]
+        },
+        {
+          "type": "tag",
+          "name": "body",
+          "attribs": {},
+          "children": [
+            {
+              "data": "Hello world",
+              "type": "text"
+            }
+          ],
+          "prev": {
+              "type": "tag",
+              "name": "title",
+              "attribs": {}
+          }
+        }
+      ]
+    }
+  ]
+}
\ No newline at end of file