aboutsummaryrefslogtreecommitdiff
path: root/cordova/node_modules/sax/test/cdata.js
diff options
context:
space:
mode:
Diffstat (limited to 'cordova/node_modules/sax/test/cdata.js')
-rwxr-xr-xcordova/node_modules/sax/test/cdata.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/cordova/node_modules/sax/test/cdata.js b/cordova/node_modules/sax/test/cdata.js
new file mode 100755
index 0000000..0f09cce
--- /dev/null
+++ b/cordova/node_modules/sax/test/cdata.js
@@ -0,0 +1,10 @@
+require(__dirname).test({
+ xml : "<r><![CDATA[ this is character data  ]]></r>",
+ expect : [
+ ["opentag", {"name": "R","attributes": {}}],
+ ["opencdata", undefined],
+ ["cdata", " this is character data  "],
+ ["closecdata", undefined],
+ ["closetag", "R"]
+ ]
+});