PHP 7.4.33
Preview: test-dom-comment.js Size: 636 B
/var/www/sitesecurity.bitkit.dk/httpdocs/node_modules/min-document/test/test-dom-comment.js
var test = require("tape")

module.exports = testDomComment

function testDomComment(document) {
    var cleanup = require('./cleanup')(document)

    test("can createComment", function(assert) {
        var comment = document.createComment("test")
        assert.equal(comment.data, "test")
        assert.equal(comment.length, 4)
        assert.equal(comment.nodeName, "#comment")
        assert.equal(comment.nodeType, 8)
        assert.equal(comment.nodeValue, "test")
        assert.equal(comment.ownerDocument, document)
        assert.equal(comment.toString(), "[object Comment]")
        cleanup()
        assert.end()
    })
}

Directory Contents

Dirs: 1 × Files: 5
Name Size Perms Modified Actions
static DIR
- drwxr-xr-x 2026-04-28 09:11:40
Edit Download
278 B lrw-r--r-- 2026-04-28 09:11:39
Edit Download
422 B lrw-r--r-- 2026-04-28 09:11:40
Edit Download
18.18 KB lrw-r--r-- 2026-04-28 09:11:40
Edit Download
636 B lrw-r--r-- 2026-04-28 09:11:40
Edit Download
7.01 KB lrw-r--r-- 2026-04-28 09:11:40
Edit Download
If ZipArchive is unavailable, a .tar will be created (no compression).