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

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

Issue 2625223002: [DevTools] Dedicated frontend for debugging Node. (Closed)
Patch Set: test fix Created 3 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
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 630 matching lines...) Expand 10 before | Expand all | Expand 10 after
641 function contextCreated() 641 function contextCreated()
642 { 642 {
643 target.runtimeModel.removeEventListener(SDK.RuntimeModel.Events.Executio nContextCreated, contextCreated); 643 target.runtimeModel.removeEventListener(SDK.RuntimeModel.Events.Executio nContextCreated, contextCreated);
644 callback(target.runtimeModel.executionContexts()[0]); 644 callback(target.runtimeModel.executionContexts()[0]);
645 } 645 }
646 } 646 }
647 647
648 InspectorTest.selectThread = function(target) 648 InspectorTest.selectThread = function(target)
649 { 649 {
650 var threadsPane = self.runtime.sharedInstance(Sources.ThreadsSidebarPane); 650 var threadsPane = self.runtime.sharedInstance(Sources.ThreadsSidebarPane);
651 var listItem = threadsPane._listItemForTarget(target); 651 var listItem = threadsPane._targetToListItem.get(target);
652 threadsPane._onListItemClick(listItem); 652 threadsPane._onListItemClick(listItem, target);
653 } 653 }
654 654
655 InspectorTest.evaluateOnCurrentCallFrame = function(code) 655 InspectorTest.evaluateOnCurrentCallFrame = function(code)
656 { 656 {
657 return new Promise(succ => InspectorTest.debuggerModel.evaluateOnSelectedCal lFrame(code, "console", false, true, false, false, InspectorTest.safeWrap(succ)) ); 657 return new Promise(succ => InspectorTest.debuggerModel.evaluateOnSelectedCal lFrame(code, "console", false, true, false, false, InspectorTest.safeWrap(succ)) );
658 } 658 }
659 659
660 InspectorTest.prepareSourceFrameForBreakpointTest = function(sourceFrame) 660 InspectorTest.prepareSourceFrameForBreakpointTest = function(sourceFrame)
661 { 661 {
662 var symbol = Symbol('waitedDecorations'); 662 var symbol = Symbol('waitedDecorations');
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
722 { 722 {
723 var textEditor = sourceFrame._textEditor; 723 var textEditor = sourceFrame._textEditor;
724 var lineLength = textEditor.line(lineNumber).length; 724 var lineLength = textEditor.line(lineNumber).length;
725 var lineRange = new Common.TextRange(lineNumber, 0, lineNumber, lineLength); 725 var lineRange = new Common.TextRange(lineNumber, 0, lineNumber, lineLength);
726 var bookmarks = textEditor.bookmarks(lineRange, Sources.JavaScriptSourceFram e.BreakpointDecoration._bookmarkSymbol); 726 var bookmarks = textEditor.bookmarks(lineRange, Sources.JavaScriptSourceFram e.BreakpointDecoration._bookmarkSymbol);
727 bookmarks.sort((bookmark1, bookmark2) => bookmark1.position().startColumn - bookmark2.position().startColumn); 727 bookmarks.sort((bookmark1, bookmark2) => bookmark1.position().startColumn - bookmark2.position().startColumn);
728 bookmarks[index][Sources.JavaScriptSourceFrame.BreakpointDecoration._element SymbolForTest].click(); 728 bookmarks[index][Sources.JavaScriptSourceFrame.BreakpointDecoration._element SymbolForTest].click();
729 } 729 }
730 730
731 }; 731 };
OLDNEW
« no previous file with comments | « content/public/browser/devtools_agent_host.h ('k') | third_party/WebKit/Source/devtools/front_end/devtools_compatibility.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698