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

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

Issue 2544383002: [DevTools] fixed script-formatter-breakpoints-1.html (Closed)
Patch Set: a Created 4 years 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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 InspectorTest.waitUntilPaused = function(callback) 156 InspectorTest.waitUntilPaused = function(callback)
157 { 157 {
158 callback = InspectorTest.safeWrap(callback); 158 callback = InspectorTest.safeWrap(callback);
159 159
160 if (InspectorTest._pausedScriptArguments) 160 if (InspectorTest._pausedScriptArguments)
161 callback.apply(callback, InspectorTest._pausedScriptArguments); 161 callback.apply(callback, InspectorTest._pausedScriptArguments);
162 else 162 else
163 InspectorTest._waitUntilPausedCallback = callback; 163 InspectorTest._waitUntilPausedCallback = callback;
164 }; 164 };
165 165
166 InspectorTest.waitUntilPausedPromise = function()
167 {
168 return new Promise(resolve => InspectorTest.waitUntilPaused(resolve));
169 }
170
166 InspectorTest.waitUntilResumedNextTime = function(callback) 171 InspectorTest.waitUntilResumedNextTime = function(callback)
167 { 172 {
168 InspectorTest._waitUntilResumedCallback = InspectorTest.safeWrap(callback); 173 InspectorTest._waitUntilResumedCallback = InspectorTest.safeWrap(callback);
169 }; 174 };
170 175
171 InspectorTest.waitUntilResumed = function(callback) 176 InspectorTest.waitUntilResumed = function(callback)
172 { 177 {
173 callback = InspectorTest.safeWrap(callback); 178 callback = InspectorTest.safeWrap(callback);
174 179
175 if (!InspectorTest._pausedScriptArguments) 180 if (!InspectorTest._pausedScriptArguments)
(...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after
717 { 722 {
718 var textEditor = sourceFrame._textEditor; 723 var textEditor = sourceFrame._textEditor;
719 var lineLength = textEditor.line(lineNumber).length; 724 var lineLength = textEditor.line(lineNumber).length;
720 var lineRange = new Common.TextRange(lineNumber, 0, lineNumber, lineLength); 725 var lineRange = new Common.TextRange(lineNumber, 0, lineNumber, lineLength);
721 var bookmarks = textEditor.bookmarks(lineRange, Sources.JavaScriptSourceFram e.BreakpointDecoration._bookmarkSymbol); 726 var bookmarks = textEditor.bookmarks(lineRange, Sources.JavaScriptSourceFram e.BreakpointDecoration._bookmarkSymbol);
722 bookmarks.sort((bookmark1, bookmark2) => bookmark1.position().startColumn - bookmark2.position().startColumn); 727 bookmarks.sort((bookmark1, bookmark2) => bookmark1.position().startColumn - bookmark2.position().startColumn);
723 bookmarks[index][Sources.JavaScriptSourceFrame.BreakpointDecoration._element SymbolForTest].click(); 728 bookmarks[index][Sources.JavaScriptSourceFrame.BreakpointDecoration._element SymbolForTest].click();
724 } 729 }
725 730
726 }; 731 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698