aboutsummaryrefslogtreecommitdiff
path: root/node_modules/sax/test/emoji.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/sax/test/emoji.js')
-rw-r--r--node_modules/sax/test/emoji.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/node_modules/sax/test/emoji.js b/node_modules/sax/test/emoji.js
new file mode 100644
index 000000000..aa63a21ed
--- /dev/null
+++ b/node_modules/sax/test/emoji.js
@@ -0,0 +1,12 @@
+// split high-order numeric attributes into surrogate pairs
+require(__dirname).test
+ ( { xml : '<a>&#x1f525;</a>'
+ , expect :
+ [ [ 'opentag', { name: 'A', attributes: {}, isSelfClosing: false } ]
+ , [ 'text', '\ud83d\udd25' ]
+ , [ 'closetag', 'A' ]
+ ]
+ , strict : false
+ , opt : {}
+ }
+ )