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

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

Issue 2736393002: DevTools: split network project into buckets (Closed)
Patch Set: fix tests Created 3 years, 9 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-breakpoints/breakpoint-manager.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.resetNetworkProject = function(networkProject) {
11 for (var project of networkProject._workspaceProjects.values())
12 project.removeProject();
13 networkProject._workspaceProjects.clear();
14 }
15
10 InspectorTest.startDebuggerTest = function(callback, quiet) 16 InspectorTest.startDebuggerTest = function(callback, quiet)
11 { 17 {
12 console.assert(InspectorTest.debuggerModel.debuggerEnabled(), "Debugger has to be enabled"); 18 console.assert(InspectorTest.debuggerModel.debuggerEnabled(), "Debugger has to be enabled");
13 if (quiet !== undefined) 19 if (quiet !== undefined)
14 InspectorTest._quiet = quiet; 20 InspectorTest._quiet = quiet;
15 UI.viewManager.showView("sources"); 21 UI.viewManager.showView("sources");
16 22
17 InspectorTest.addSniffer(SDK.DebuggerModel.prototype, "_pausedScript", Inspe ctorTest._pausedScript, true); 23 InspectorTest.addSniffer(SDK.DebuggerModel.prototype, "_pausedScript", Inspe ctorTest._pausedScript, true);
18 InspectorTest.addSniffer(SDK.DebuggerModel.prototype, "_resumedScript", Insp ectorTest._resumedScript, true); 24 InspectorTest.addSniffer(SDK.DebuggerModel.prototype, "_resumedScript", Insp ectorTest._resumedScript, true);
19 InspectorTest.safeWrap(callback)(); 25 InspectorTest.safeWrap(callback)();
(...skipping 709 matching lines...) Expand 10 before | Expand all | Expand 10 after
729 var bookmark = bookmarks[index]; 735 var bookmark = bookmarks[index];
730 if (bookmark) { 736 if (bookmark) {
731 bookmark[Sources.JavaScriptSourceFrame.BreakpointDecoration._elementSymb olForTest].click(); 737 bookmark[Sources.JavaScriptSourceFrame.BreakpointDecoration._elementSymb olForTest].click();
732 } else { 738 } else {
733 InspectorTest.addResult(`Could not click on Javascript breakpoint - line Number: ${lineNumber}, index: ${index}`); 739 InspectorTest.addResult(`Could not click on Javascript breakpoint - line Number: ${lineNumber}, index: ${index}`);
734 next(); 740 next();
735 } 741 }
736 } 742 }
737 743
738 }; 744 };
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/sources/debugger-breakpoints/breakpoint-manager.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698