Security update to Drupal 8.4.6
[yaffs-website] / node_modules / min-document / test / test-dom-comment.js
1 var test = require("tape")
2
3 module.exports = testDomComment
4
5 function testDomComment(document) {
6     var cleanup = require('./cleanup')(document)
7
8     test("can createComment", function(assert) {
9         var comment = document.createComment("test")
10         assert.equal(comment.data, "test")
11         assert.equal(comment.length, 4)
12         assert.equal(comment.nodeName, "#comment")
13         assert.equal(comment.nodeType, 8)
14         assert.equal(comment.nodeValue, "test")
15         assert.equal(comment.ownerDocument, document)
16         assert.equal(comment.toString(), "[object Comment]")
17         cleanup()
18         assert.end()
19     })
20 }