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

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

Issue 1563113002: DevTools: add a navigator menu with grouping options. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/scripts-sorting.html » ('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_InspectorTest = function() { 1 var initialize_InspectorTest = function() {
2 2
3 var results = []; 3 var results = [];
4 4
5 function consoleOutputHook(messageType) 5 function consoleOutputHook(messageType)
6 { 6 {
7 InspectorTest.addResult(messageType + ": " + Array.prototype.slice.call(argu ments, 1)); 7 InspectorTest.addResult(messageType + ": " + Array.prototype.slice.call(argu ments, 1));
8 } 8 }
9 9
10 window._originalConsoleLog = console.log.bind(console); 10 window._originalConsoleLog = console.log.bind(console);
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 } 435 }
436 436
437 InspectorTest.dumpNavigatorViewInAllModes = function(view) 437 InspectorTest.dumpNavigatorViewInAllModes = function(view)
438 { 438 {
439 ["frame", "frame/domain", "frame/domain/folder", "domain", "domain/folder"]. forEach(InspectorTest.dumpNavigatorViewInMode.bind(InspectorTest, view)); 439 ["frame", "frame/domain", "frame/domain/folder", "domain", "domain/folder"]. forEach(InspectorTest.dumpNavigatorViewInMode.bind(InspectorTest, view));
440 } 440 }
441 441
442 InspectorTest.dumpNavigatorViewInMode = function(view, mode) 442 InspectorTest.dumpNavigatorViewInMode = function(view, mode)
443 { 443 {
444 InspectorTest.addResult(view instanceof WebInspector.SourcesNavigatorView ? "Sources:" : "Content Scripts:"); 444 InspectorTest.addResult(view instanceof WebInspector.SourcesNavigatorView ? "Sources:" : "Content Scripts:");
445 WebInspector.moduleSetting("navigatorGrouping").set(mode); 445 if (WebInspector.moduleSetting("navigatorGroupByFrame").get() !== mode.inclu des("frame"))
446 WebInspector.moduleSetting("navigatorGroupByFrame").set(mode.includes("f rame"));
447 if (WebInspector.moduleSetting("navigatorGroupByDomain") !== mode.includes(" domain"))
448 WebInspector.moduleSetting("navigatorGroupByDomain").set(mode.includes(" domain"));
449 if (WebInspector.moduleSetting("navigatorGroupByFolder") !== mode.includes(" folder"))
450 WebInspector.moduleSetting("navigatorGroupByFolder").set(mode.includes(" folder"));
446 InspectorTest.addResult("-------- Setting mode: [" + mode + "]"); 451 InspectorTest.addResult("-------- Setting mode: [" + mode + "]");
447 InspectorTest.dumpNavigatorView(view); 452 InspectorTest.dumpNavigatorView(view);
448 } 453 }
449 454
450 InspectorTest.assertGreaterOrEqual = function(a, b, message) 455 InspectorTest.assertGreaterOrEqual = function(a, b, message)
451 { 456 {
452 if (a < b) 457 if (a < b)
453 InspectorTest.addResult("FAILED: " + (message ? message + ": " : "") + a + " < " + b); 458 InspectorTest.addResult("FAILED: " + (message ? message + ": " : "") + a + " < " + b);
454 } 459 }
455 460
(...skipping 739 matching lines...) Expand 10 before | Expand all | Expand 10 after
1195 _output("[page] " + text); 1200 _output("[page] " + text);
1196 } 1201 }
1197 1202
1198 function _output(result) 1203 function _output(result)
1199 { 1204 {
1200 if (!outputElement) 1205 if (!outputElement)
1201 createOutputElement(); 1206 createOutputElement();
1202 outputElement.appendChild(document.createTextNode(result)); 1207 outputElement.appendChild(document.createTextNode(result));
1203 outputElement.appendChild(document.createElement("br")); 1208 outputElement.appendChild(document.createElement("br"));
1204 } 1209 }
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/scripts-sorting.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698