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

Unified Diff: LayoutTests/http/tests/inspector/inspector-test.js

Issue 74063002: DevTools: Support asynchronous call stacks on backend. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fixed test flakiness Created 7 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/http/tests/inspector/inspector-test.js
diff --git a/LayoutTests/http/tests/inspector/inspector-test.js b/LayoutTests/http/tests/inspector/inspector-test.js
index 35e948c72a732f096bc926b65e8a35e014003cb0..4e42a201c75dc8b832433a18381c7c2f5d350d44 100644
--- a/LayoutTests/http/tests/inspector/inspector-test.js
+++ b/LayoutTests/http/tests/inspector/inspector-test.js
@@ -94,6 +94,10 @@ InspectorTest.check = function(passCondition, failureText)
InspectorTest.addResult = function(text)
{
+ if (InspectorTest._resultBufferring) {
+ InspectorTest._resultBufferringContent += text + "\n";
+ return;
+ }
results.push(text);
if (resultsSynchronized)
InspectorTest.Output.addResult(text);
@@ -105,6 +109,20 @@ InspectorTest.addResult = function(text)
}
}
+InspectorTest.beginResultBufferring = function()
+{
+ InspectorTest._resultBufferring = true;
+ InspectorTest._resultBufferringContent = "";
+}
+
+InspectorTest.endResultBufferring = function()
+{
+ var result = InspectorTest._resultBufferringContent || "";
+ delete InspectorTest._resultBufferring;
+ delete InspectorTest._resultBufferringContent;
+ return result;
+}
+
InspectorTest.addResults = function(textArray)
{
if (!textArray)
« no previous file with comments | « LayoutTests/http/tests/inspector/debugger-test.js ('k') | LayoutTests/inspector/debugger/async-callstack.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698