.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / domhandler / test / cases / 11-text_outside_tags.json
diff --git a/.config/coc/extensions/node_modules/coc-prettier/node_modules/domhandler/test/cases/11-text_outside_tags.json b/.config/coc/extensions/node_modules/coc-prettier/node_modules/domhandler/test/cases/11-text_outside_tags.json
new file mode 100644 (file)
index 0000000..d328572
--- /dev/null
@@ -0,0 +1,40 @@
+{
+  "name": "Text outside tags",
+  "options": {},
+  "html": "Line one\n<br>\nline two",
+  "expected": [
+    {
+      "data": "Line one\n",
+      "type": "text",
+      "prev": null,
+      "next": {
+        "type": "tag",
+        "name": "br",
+        "attribs": {}
+      }
+    },
+    {
+      "type": "tag",
+      "name": "br",
+      "attribs": {},
+      "prev": {
+        "data": "Line one\n",
+        "type": "text"
+      },
+      "next": {
+        "data": "\nline two",
+        "type": "text"
+      }
+    },
+    {
+      "data": "\nline two",
+      "type": "text",
+      "prev": {
+        "type": "tag",
+        "name": "br",
+        "attribs": {}
+      },
+      "next": null
+    }
+  ]
+}
\ No newline at end of file