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

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

Issue 2669633002: DevTools: rebaseline debugger tests (Closed)
Patch Set: fix comment for frameworks-skip-step-in.html Created 3 years, 10 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-frameworks/frameworks-skip-step-in.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 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 702 matching lines...) Expand 10 before | Expand all | Expand 10 after
713 for (var bookmark of bookmarks) { 713 for (var bookmark of bookmarks) {
714 var position = bookmark.position(); 714 var position = bookmark.position();
715 var element = bookmark[Sources.JavaScriptSourceFrame.BreakpointDecor ation._elementSymbolForTest]; 715 var element = bookmark[Sources.JavaScriptSourceFrame.BreakpointDecor ation._elementSymbolForTest];
716 var disabled = element.classList.contains("cm-inline-disabled"); 716 var disabled = element.classList.contains("cm-inline-disabled");
717 var conditional = element.classList.contains("cm-inline-conditional" ); 717 var conditional = element.classList.contains("cm-inline-conditional" );
718 InspectorTest.addResult(" inline breakpoint at (" + position.startL ine + ", " + position.startColumn + ")" + (disabled ? " disabled" : "") + (condi tional ? " conditional" : "")); 718 InspectorTest.addResult(" inline breakpoint at (" + position.startL ine + ", " + position.startColumn + ")" + (disabled ? " disabled" : "") + (condi tional ? " conditional" : ""));
719 } 719 }
720 } 720 }
721 } 721 }
722 722
723 InspectorTest.clickJavaScriptSourceFrameBreakpoint = function(sourceFrame, lineN umber, index) 723 InspectorTest.clickJavaScriptSourceFrameBreakpoint = function(sourceFrame, lineN umber, index, next)
724 { 724 {
725 var textEditor = sourceFrame._textEditor; 725 var textEditor = sourceFrame._textEditor;
726 var lineLength = textEditor.line(lineNumber).length; 726 var lineLength = textEditor.line(lineNumber).length;
727 var lineRange = new Common.TextRange(lineNumber, 0, lineNumber, lineLength); 727 var lineRange = new Common.TextRange(lineNumber, 0, lineNumber, lineLength);
728 var bookmarks = textEditor.bookmarks(lineRange, Sources.JavaScriptSourceFram e.BreakpointDecoration._bookmarkSymbol); 728 var bookmarks = textEditor.bookmarks(lineRange, Sources.JavaScriptSourceFram e.BreakpointDecoration._bookmarkSymbol);
729 bookmarks.sort((bookmark1, bookmark2) => bookmark1.position().startColumn - bookmark2.position().startColumn); 729 bookmarks.sort((bookmark1, bookmark2) => bookmark1.position().startColumn - bookmark2.position().startColumn);
730 bookmarks[index][Sources.JavaScriptSourceFrame.BreakpointDecoration._element SymbolForTest].click(); 730 var bookmark = bookmarks[index];
731 if (bookmark) {
732 bookmark[Sources.JavaScriptSourceFrame.BreakpointDecoration._elementSymb olForTest].click();
733 } else {
734 InspectorTest.addResult(`Could not click on Javascript breakpoint - line Number: ${lineNumber}, index: ${index}`);
735 next();
736 }
731 } 737 }
732 738
733 }; 739 };
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/sources/debugger-frameworks/frameworks-skip-step-in.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698