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

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

Issue 60203007: DevTools: Fix disabling all pauses on reload. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: addressed Created 7 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 | Annotate | Revision Log
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/inspector/debugger/long-resume-vs-reload.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 var initialize_DebuggerTest = function() { 1 var initialize_DebuggerTest = function() {
2 2
3 InspectorTest.startDebuggerTest = function(callback, quiet) 3 InspectorTest.startDebuggerTest = function(callback, quiet)
4 { 4 {
5 if (quiet !== undefined) 5 if (quiet !== undefined)
6 InspectorTest._quiet = quiet; 6 InspectorTest._quiet = quiet;
7 WebInspector.showPanel("sources"); 7 WebInspector.showPanel("sources");
8 8
9 if (WebInspector.debuggerModel.debuggerEnabled()) 9 if (WebInspector.debuggerModel.debuggerEnabled())
10 startTest(); 10 startTest();
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 InspectorTest.evaluateInConsole("setTimeout(testFunction, 0)"); 76 InspectorTest.evaluateInConsole("setTimeout(testFunction, 0)");
77 InspectorTest.addResult("Set timer for test function."); 77 InspectorTest.addResult("Set timer for test function.");
78 }; 78 };
79 79
80 InspectorTest.runTestFunctionAndWaitUntilPaused = function(callback) 80 InspectorTest.runTestFunctionAndWaitUntilPaused = function(callback)
81 { 81 {
82 InspectorTest.runTestFunction(); 82 InspectorTest.runTestFunction();
83 InspectorTest.waitUntilPaused(callback); 83 InspectorTest.waitUntilPaused(callback);
84 }; 84 };
85 85
86 InspectorTest.waitUntilPausedNextTime = function(callback)
87 {
88 InspectorTest._waitUntilPausedCallback = InspectorTest.safeWrap(callback);
89 };
90
86 InspectorTest.waitUntilPaused = function(callback) 91 InspectorTest.waitUntilPaused = function(callback)
87 { 92 {
88 callback = InspectorTest.safeWrap(callback); 93 callback = InspectorTest.safeWrap(callback);
89 94
90 if (InspectorTest._pausedScriptArguments) 95 if (InspectorTest._pausedScriptArguments)
91 callback.apply(callback, InspectorTest._pausedScriptArguments); 96 callback.apply(callback, InspectorTest._pausedScriptArguments);
92 else 97 else
93 InspectorTest._waitUntilPausedCallback = callback; 98 InspectorTest._waitUntilPausedCallback = callback;
94 }; 99 };
95 100
101 InspectorTest.waitUntilResumedNextTime = function(callback)
102 {
103 InspectorTest._waitUntilResumedCallback = InspectorTest.safeWrap(callback);
104 };
105
96 InspectorTest.waitUntilResumed = function(callback) 106 InspectorTest.waitUntilResumed = function(callback)
97 { 107 {
98 callback = InspectorTest.safeWrap(callback); 108 callback = InspectorTest.safeWrap(callback);
99 109
100 if (!InspectorTest._pausedScriptArguments) 110 if (!InspectorTest._pausedScriptArguments)
101 callback(); 111 callback();
102 else 112 else
103 InspectorTest._waitUntilResumedCallback = callback; 113 InspectorTest._waitUntilResumedCallback = callback;
104 }; 114 };
105 115
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 324
315 InspectorTest.checkUILocation = function(uiSourceCode, lineNumber, columnNumber, location) 325 InspectorTest.checkUILocation = function(uiSourceCode, lineNumber, columnNumber, location)
316 { 326 {
317 InspectorTest.assertEquals(uiSourceCode, location.uiSourceCode, "Incorrect u iSourceCode, expected '" + (uiSourceCode ? uiSourceCode.originURL() : null) + "' ," + 327 InspectorTest.assertEquals(uiSourceCode, location.uiSourceCode, "Incorrect u iSourceCode, expected '" + (uiSourceCode ? uiSourceCode.originURL() : null) + "' ," +
318 " but got '" + (location.uiSourceCode ? location.uiSourceCode.originURL() : null) + "'"); 328 " but got '" + (location.uiSourceCode ? location.uiSourceCode.originURL() : null) + "'");
319 InspectorTest.assertEquals(lineNumber, location.lineNumber, "Incorrect lineN umber, expected '" + lineNumber + "', but got '" + location.lineNumber + "'"); 329 InspectorTest.assertEquals(lineNumber, location.lineNumber, "Incorrect lineN umber, expected '" + lineNumber + "', but got '" + location.lineNumber + "'");
320 InspectorTest.assertEquals(columnNumber, location.columnNumber, "Incorrect c olumnNumber, expected '" + columnNumber + "', but got '" + location.columnNumber + "'"); 330 InspectorTest.assertEquals(columnNumber, location.columnNumber, "Incorrect c olumnNumber, expected '" + columnNumber + "', but got '" + location.columnNumber + "'");
321 }; 331 };
322 332
323 }; 333 };
OLDNEW
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/inspector/debugger/long-resume-vs-reload.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698