Skip to content

Commit d5fc016

Browse files
committed
adjust syntax test for icicle children
1 parent 9f4f248 commit d5fc016

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Diff for: tasks/test_syntax.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -132,15 +132,16 @@ function assertSrcContents() {
132132
} else if(IE_BLACK_LIST.indexOf(lastPart) !== -1) {
133133
logs.push(file + ' : contains .' + lastPart + ' (IE failure)');
134134
} else if(IE_SVG_BLACK_LIST.indexOf(lastPart) !== -1) {
135-
// add special case for sunburst and treemap where we use 'children'
135+
// add special case for sunburst, icicle and treemap where we use 'children'
136136
// off the d3-hierarchy output
137137
var dirParts = path.dirname(file).split(path.sep);
138138
var filename = dirParts[dirParts.length - 1];
139-
var isSunburstOrTreemap =
139+
var isSunburstOrIcicleOrTreemap =
140140
filename === 'sunburst' ||
141+
filename === 'icicle' ||
141142
filename === 'treemap';
142143
var isLinkedToObject = ['pt', 'd', 'parent', 'node'].indexOf(parts[parts.length - 2]) !== -1;
143-
if(!(isSunburstOrTreemap && isLinkedToObject)) {
144+
if(!(isSunburstOrIcicleOrTreemap && isLinkedToObject)) {
144145
logs.push(file + ' : contains .' + lastPart + ' (IE failure in SVG)');
145146
}
146147
}

0 commit comments

Comments
 (0)