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; |