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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/inspector/inspector-test.js

Issue 2568623002: DevTools: [Persistence] green checkmark icons should not be editable (Closed)
Patch Set: fix test Created 4 years 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-navigator-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 if (window.GCController) 1 if (window.GCController)
2 GCController.collectAll(); 2 GCController.collectAll();
3 var initialize_InspectorTest = function() { 3 var initialize_InspectorTest = function() {
4 4
5 var results = []; 5 var results = [];
6 6
7 function consoleOutputHook(messageType) 7 function consoleOutputHook(messageType)
8 { 8 {
9 InspectorTest.addResult(messageType + ": " + Array.prototype.slice.call(argu ments, 1)); 9 InspectorTest.addResult(messageType + ": " + Array.prototype.slice.call(argu ments, 1));
10 } 10 }
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 callback(); 353 callback();
354 } 354 }
355 } 355 }
356 356
357 InspectorTest.dumpNavigatorView = function(navigatorView) 357 InspectorTest.dumpNavigatorView = function(navigatorView)
358 { 358 {
359 dumpNavigatorTreeOutline(navigatorView._scriptsTree); 359 dumpNavigatorTreeOutline(navigatorView._scriptsTree);
360 360
361 function dumpNavigatorTreeElement(prefix, treeElement) 361 function dumpNavigatorTreeElement(prefix, treeElement)
362 { 362 {
363 var titleText; 363 var titleText = treeElement.title;
364 if (treeElement.title instanceof Element) 364 if (treeElement._trailingIconsElement) {
365 titleText = treeElement.title.firstChild.textContent + " [mapped]"; 365 var iconTypes = [];
366 else 366 for (var icon = treeElement._trailingIconsElement.firstChild; icon; icon = icon.nextSibling) {
367 titleText = treeElement.title; 367 iconTypes.push(icon._iconType);
368 }
369 if (iconTypes.length)
370 titleText = titleText + " [" + iconTypes.join(", ") + "]";
371 }
368 if (treeElement._nodeType === Sources.NavigatorView.Types.FileSystem || treeElement._nodeType === Sources.NavigatorView.Types.FileSystemFolder) { 372 if (treeElement._nodeType === Sources.NavigatorView.Types.FileSystem || treeElement._nodeType === Sources.NavigatorView.Types.FileSystemFolder) {
369 var hasMappedFiles = treeElement.listItemElement.classList.contains( "has-mapped-files"); 373 var hasMappedFiles = treeElement.listItemElement.classList.contains( "has-mapped-files");
370 if (!hasMappedFiles) 374 if (!hasMappedFiles)
371 titleText += " [dimmed]"; 375 titleText += " [dimmed]";
372 } 376 }
373 InspectorTest.addResult(prefix + titleText); 377 InspectorTest.addResult(prefix + titleText);
374 treeElement.expand(); 378 treeElement.expand();
375 var children = treeElement.children(); 379 var children = treeElement.children();
376 for (var i = 0; i < children.length; ++i) 380 for (var i = 0; i < children.length; ++i)
377 dumpNavigatorTreeElement(prefix + " ", children[i]); 381 dumpNavigatorTreeElement(prefix + " ", children[i]);
(...skipping 840 matching lines...) Expand 10 before | Expand all | Expand 10 after
1218 _output("[page] " + text); 1222 _output("[page] " + text);
1219 } 1223 }
1220 1224
1221 function _output(result) 1225 function _output(result)
1222 { 1226 {
1223 if (!outputElement) 1227 if (!outputElement)
1224 createOutputElement(); 1228 createOutputElement();
1225 outputElement.appendChild(document.createTextNode(result)); 1229 outputElement.appendChild(document.createTextNode(result));
1226 outputElement.appendChild(document.createElement("br")); 1230 outputElement.appendChild(document.createElement("br"));
1227 } 1231 }
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-navigator-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698