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

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

Issue 2412023002: DevTools: migrate InspectorView to tabbed view location. (Closed)
Patch Set: made layers panel closeable. Created 4 years, 2 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
OLDNEW
1 function scheduleTestFunction() 1 function scheduleTestFunction()
2 { 2 {
3 setTimeout(testFunction, 0); 3 setTimeout(testFunction, 0);
4 } 4 }
5 5
6 var initialize_DebuggerTest = function() { 6 var initialize_DebuggerTest = function() {
7 7
8 InspectorTest.preloadPanel("sources"); 8 InspectorTest.preloadPanel("sources");
9 9
10 InspectorTest.startDebuggerTest = function(callback, quiet) 10 InspectorTest.startDebuggerTest = function(callback, quiet)
11 { 11 {
12 console.assert(InspectorTest.debuggerModel.debuggerEnabled(), "Debugger has to be enabled"); 12 console.assert(InspectorTest.debuggerModel.debuggerEnabled(), "Debugger has to be enabled");
13 if (quiet !== undefined) 13 if (quiet !== undefined)
14 InspectorTest._quiet = quiet; 14 InspectorTest._quiet = quiet;
15 WebInspector.SourcesPanel.show(); 15 WebInspector.viewManager.showView("sources");
16 16
17 InspectorTest.addSniffer(WebInspector.DebuggerModel.prototype, "_pausedScrip t", InspectorTest._pausedScript, true); 17 InspectorTest.addSniffer(WebInspector.DebuggerModel.prototype, "_pausedScrip t", InspectorTest._pausedScript, true);
18 InspectorTest.addSniffer(WebInspector.DebuggerModel.prototype, "_resumedScri pt", InspectorTest._resumedScript, true); 18 InspectorTest.addSniffer(WebInspector.DebuggerModel.prototype, "_resumedScri pt", InspectorTest._resumedScript, true);
19 InspectorTest.safeWrap(callback)(); 19 InspectorTest.safeWrap(callback)();
20 }; 20 };
21 21
22 InspectorTest.startDebuggerTestPromise = function(quiet) 22 InspectorTest.startDebuggerTestPromise = function(quiet)
23 { 23 {
24 var cb; 24 var cb;
25 var p = new Promise(fullfill => cb = fullfill); 25 var p = new Promise(fullfill => cb = fullfill);
(...skipping 569 matching lines...) Expand 10 before | Expand all | Expand 10 after
595 var listItem = threadsPane._debuggerModelToListItems.get(WebInspector.Debugg erModel.fromTarget(target)); 595 var listItem = threadsPane._debuggerModelToListItems.get(WebInspector.Debugg erModel.fromTarget(target));
596 threadsPane._onListItemClick(listItem); 596 threadsPane._onListItemClick(listItem);
597 } 597 }
598 598
599 InspectorTest.evaluateOnCurrentCallFrame = function(code) 599 InspectorTest.evaluateOnCurrentCallFrame = function(code)
600 { 600 {
601 return new Promise(succ => InspectorTest.debuggerModel.evaluateOnSelectedCal lFrame(code, "console", false, true, false, false, InspectorTest.safeWrap(succ)) ); 601 return new Promise(succ => InspectorTest.debuggerModel.evaluateOnSelectedCal lFrame(code, "console", false, true, false, false, InspectorTest.safeWrap(succ)) );
602 } 602 }
603 603
604 }; 604 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698