1 var initialize_SyntaxHighlight = function() {
3 InspectorTest.dumpSyntaxHighlight = function(str, mimeType)
5 var node = document.createElement("span");
6 node.textContent = str;
7 var javascriptSyntaxHighlighter = new WebInspector.DOMSyntaxHighlighter(mimeType);
8 return javascriptSyntaxHighlighter.syntaxHighlightNode(node).then(dumpSyntax);
13 for (var i = 0; i < node.childNodes.length; i++) {
14 if (node.childNodes[i].getAttribute) {
15 node_parts.push(node.childNodes[i].getAttribute("class"));
20 InspectorTest.addResult(str + ": " + node_parts.join(", "));