Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(623)

Side by Side Diff: LayoutTests/inspector/syntax-highlight.js

Issue 354833004: DevTools: [CodeMirror] roll CodeMirror to version @e20d175 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: address comments Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/inspector/syntax-highlight-css-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 var initialize_SyntaxHighlight = function() { 1 var initialize_SyntaxHighlight = function() {
2 2
3 InspectorTest.dumpSyntaxHighlight = function(str, mimeType) 3 InspectorTest.dumpSyntaxHighlight = function(str, mimeType)
4 { 4 {
5 var node = document.createElement("span"); 5 var node = document.createElement("span");
6 node.textContent = str; 6 node.textContent = str;
7 var javascriptSyntaxHighlighter = new WebInspector.DOMSyntaxHighlighter(mime Type); 7 var javascriptSyntaxHighlighter = new WebInspector.DOMSyntaxHighlighter(mime Type);
8 javascriptSyntaxHighlighter.syntaxHighlightNode(node); 8 javascriptSyntaxHighlighter.syntaxHighlightNode(node);
9 var node_parts = []; 9 var node_parts = [];
10 for (var i = 0; i < node.childNodes.length; i++) { 10 for (var i = 0; i < node.childNodes.length; i++) {
11 if (node.childNodes[i].getAttribute) { 11 if (node.childNodes[i].getAttribute) {
12 node_parts.push(node.childNodes[i].getAttribute("class")); 12 node_parts.push(node.childNodes[i].getAttribute("class"));
13 } else { 13 } else {
14 node_parts.push("*"); 14 node_parts.push("*");
15 } 15 }
16 } 16 }
17 InspectorTest.addResult(str + ": " + node_parts.join(",")); 17 InspectorTest.addResult(str + ": " + node_parts.join(", "));
18 }; 18 };
19 19
20 }; 20 };
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/inspector/syntax-highlight-css-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698