(name, types)
| 266 | let root = createEmptyNode("root"); |
| 267 | let categories = {}; |
| 268 | function addCategory(name, types) { |
| 269 | let n = createEmptyNode(name); |
| 270 | for (let i = 0; i < types.length; i++) { |
| 271 | categories[types[i]] = n; |
| 272 | } |
| 273 | root.children.push(n); |
| 274 | } |
| 275 | addCategory("JS Ignition", [ "JS_IGNITION", "BC" ]); |
| 276 | addCategory("JS Sparkplug", [ "JS_SPARKPLUG" ]); |
| 277 | addCategory("JS Maglev", [ "JS_MAGLEV" ]); |
no test coverage detected