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

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

Issue 2431223003: [DevTools]: Require explicit connection (Closed)
Patch Set: Addressed one last comment Created 4 years, 1 month 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/Source/devtools/front_end/sdk/SubTargetsManager.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
(...skipping 575 matching lines...) Expand 10 before | Expand all | Expand 10 after
586 function contextCreated() 586 function contextCreated()
587 { 587 {
588 target.runtimeModel.removeEventListener(WebInspector.RuntimeModel.Events .ExecutionContextCreated, contextCreated); 588 target.runtimeModel.removeEventListener(WebInspector.RuntimeModel.Events .ExecutionContextCreated, contextCreated);
589 callback(target.runtimeModel.executionContexts()[0]); 589 callback(target.runtimeModel.executionContexts()[0]);
590 } 590 }
591 } 591 }
592 592
593 InspectorTest.selectThread = function(target) 593 InspectorTest.selectThread = function(target)
594 { 594 {
595 var threadsPane = self.runtime.sharedInstance(WebInspector.ThreadsSidebarPan e); 595 var threadsPane = self.runtime.sharedInstance(WebInspector.ThreadsSidebarPan e);
596 var listItem = threadsPane._debuggerModelToListItems.get(WebInspector.Debugg erModel.fromTarget(target)); 596 var listItem = threadsPane._listItemForTarget(target);
597 threadsPane._onListItemClick(listItem); 597 threadsPane._onListItemClick(listItem);
598 } 598 }
599 599
600 InspectorTest.evaluateOnCurrentCallFrame = function(code) 600 InspectorTest.evaluateOnCurrentCallFrame = function(code)
601 { 601 {
602 return new Promise(succ => InspectorTest.debuggerModel.evaluateOnSelectedCal lFrame(code, "console", false, true, false, false, InspectorTest.safeWrap(succ)) ); 602 return new Promise(succ => InspectorTest.debuggerModel.evaluateOnSelectedCal lFrame(code, "console", false, true, false, false, InspectorTest.safeWrap(succ)) );
603 } 603 }
604 604
605 }; 605 };
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/sdk/SubTargetsManager.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698