Adding tests for Charset nodes

This commit is contained in:
Jeff Avallone
2014-12-22 10:57:16 -05:00
parent 8021775880
commit 961d4812e9
2 changed files with 159 additions and 3 deletions
+3 -3
View File
@@ -30,17 +30,17 @@ export default {
padding: 5
});
return this.renderLabeledBox(this.invert ? 'None of:' : 'One of:', this.partContainer, {
return this.renderLabeledBox(this.label, this.partContainer, {
padding: 5
});
});
},
setup() {
this.invert = this.properties.invert.textValue !== '';
this.label = (this.properties.invert.textValue === '^') ? 'None of:' : 'One of:';
this.elements = _.unique(this.properties.parts.elements, part => {
if (part.literal) {
return part.literal.textValue;
return part.literal;
} else {
return part.textValue;
}