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

Unified 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: 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/http/tests/inspector/debugger-test.js
diff --git a/LayoutTests/http/tests/inspector/debugger-test.js b/LayoutTests/http/tests/inspector/debugger-test.js
index bf402fb539fed7654730bfbdbd0fa00c08658dea..2a9eec4579cc6b57c550778aff5276bc2024b20c 100644
--- a/LayoutTests/http/tests/inspector/debugger-test.js
+++ b/LayoutTests/http/tests/inspector/debugger-test.js
@@ -83,21 +83,21 @@ InspectorTest.runTestFunctionAndWaitUntilPaused = function(callback)
InspectorTest.waitUntilPaused(callback);
};
-InspectorTest.waitUntilPaused = function(callback)
+InspectorTest.waitUntilPaused = function(callback, forceWait)
yurys 2013/11/08 06:38:26 I'd rather have separate methods for the forced ca
aandrey 2013/11/08 09:10:39 Done.
{
callback = InspectorTest.safeWrap(callback);
- if (InspectorTest._pausedScriptArguments)
+ if (InspectorTest._pausedScriptArguments && !forceWait)
callback.apply(callback, InspectorTest._pausedScriptArguments);
else
InspectorTest._waitUntilPausedCallback = callback;
};
-InspectorTest.waitUntilResumed = function(callback)
+InspectorTest.waitUntilResumed = function(callback, forceWait)
{
callback = InspectorTest.safeWrap(callback);
- if (!InspectorTest._pausedScriptArguments)
+ if (!InspectorTest._pausedScriptArguments && !forceWait)
callback();
else
InspectorTest._waitUntilResumedCallback = callback;

Powered by Google App Engine
This is Rietveld 408576698