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

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

Issue 201613004: DevTools: Add context menu option for objects to save to temp variable. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: addressed Created 6 years, 9 months 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
« no previous file with comments | « no previous file | LayoutTests/inspector/console/console-save-to-temp-var.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/inspector/console-test.js
diff --git a/LayoutTests/http/tests/inspector/console-test.js b/LayoutTests/http/tests/inspector/console-test.js
index 3160c8e977b35bdeb874d3e77fe98aa280012d8a..751681158cc6e000fc6487561356e8f058ef8a51 100644
--- a/LayoutTests/http/tests/inspector/console-test.js
+++ b/LayoutTests/http/tests/inspector/console-test.js
@@ -156,4 +156,16 @@ InspectorTest.waitUntilMessageReceived = function(callback)
InspectorTest.addSniffer(WebInspector.console, "addMessage", callback, false);
}
+InspectorTest.waitUntilNthMessageReceived = function(count, callback)
+{
+ function override()
+ {
+ if (--count === 0)
+ InspectorTest.safeWrap(callback)();
+ else
+ InspectorTest.addSniffer(WebInspector.console, "addMessage", override, false);
+ }
+ InspectorTest.addSniffer(WebInspector.console, "addMessage", override, false);
+}
+
}
« no previous file with comments | « no previous file | LayoutTests/inspector/console/console-save-to-temp-var.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698