travis-ci
4670 of 5656 branches covered (82.57%)
13 of 13 new or added lines in 2 files covered. (100.0%)
10412 of 11525 relevant lines covered (90.34%)
5850.54 hits per line
1 |
var VNode = require("./VNode"); |
326 only 2387.2 ✔ |
2 |
var inherit = require("raptor-util/inherit"); |
326 only 2387.2 ✔ |
3 |
|
|
4 |
function VComment(value) { |
|
5 |
this.___VNode(-1 /* no children */); |
41 only 2387.2 ✔ |
6 |
this.___nodeValue = value;
|
41 only 2387.2 ✔ |
7 |
} |
|
8 |
|
|
9 |
VComment.prototype = { |
326 only 2387.2 ✔ |
10 |
___nodeType: 8, |
|
11 |
|
|
12 |
___actualize: function(doc) { |
|
13 |
var nodeValue = this.___nodeValue; |
18 only 2387.2 ✔ |
14 |
return doc.createComment(nodeValue);
|
18 only 2387.2 ✔ |
15 |
}, |
|
16 |
|
|
17 |
___cloneNode: function() { |
|
18 |
return new VComment(this.___nodeValue); |
1 only 2387.2 ✔ |
19 |
} |
|
20 |
}; |
|
21 |
|
|
22 |
inherit(VComment, VNode); |
326 only 2387.2 ✔ |
23 |
|
|
24 |
module.exports = VComment; |
326 only 2387.2 ✔ |