| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |