aboutsummaryrefslogtreecommitdiff
path: root/node_modules/sax/test/cdata-chunked.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/sax/test/cdata-chunked.js')
-rw-r--r--node_modules/sax/test/cdata-chunked.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/node_modules/sax/test/cdata-chunked.js b/node_modules/sax/test/cdata-chunked.js
new file mode 100644
index 000000000..e3362bc8d
--- /dev/null
+++ b/node_modules/sax/test/cdata-chunked.js
@@ -0,0 +1,11 @@
+
+require(__dirname).test({
+ expect : [
+ ["opentag", {"name": "R","attributes": {}, "isSelfClosing": false}],
+ ["opencdata", undefined],
+ ["cdata", " this is character data  "],
+ ["closecdata", undefined],
+ ["closetag", "R"]
+ ]
+}).write("<r><![CDATA[ this is ").write("character data  ").write("]]></r>").close();
+