mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
16 lines
574 B
JavaScript
16 lines
574 B
JavaScript
var expect = require('chai').expect;
|
|
|
|
module.exports = function(helpers) {
|
|
var svg = helpers.vdom.createElement('svg');
|
|
|
|
var docFragment = helpers.vdom.createDocumentFragment();
|
|
svg.appendChild(docFragment);
|
|
|
|
expect(docFragment.namespaceURI).to.equal('http://www.w3.org/2000/svg');
|
|
var docFragmentClone = docFragment.cloneNode();
|
|
expect(docFragmentClone.namespaceURI).to.equal('http://www.w3.org/2000/svg');
|
|
expect(docFragmentClone.nextSibling).to.equal(undefined);
|
|
expect(docFragmentClone.parentNode).to.equal(undefined);
|
|
|
|
return svg;
|
|
}; |