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

Unified Diff: content/shell/renderer/test_runner/test_runner.h

Issue 995773002: Add testRunner.dumpNavigationPolicy() to be able to the the navigation policy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updates Created 5 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 | content/shell/renderer/test_runner/test_runner.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/renderer/test_runner/test_runner.h
diff --git a/content/shell/renderer/test_runner/test_runner.h b/content/shell/renderer/test_runner/test_runner.h
index 752d7213615bdf9b1bb53cc82d95469f88d409e4..ef26e200a74b67e7908fc876d1aa857657dd875e 100644
--- a/content/shell/renderer/test_runner/test_runner.h
+++ b/content/shell/renderer/test_runner/test_runner.h
@@ -120,6 +120,7 @@ class TestRunner : public WebTestRunner,
bool isPointerLocked();
void setToolTipText(const blink::WebString&);
bool shouldDumpDragImage();
+ bool shouldDumpNavigationPolicy() const;
bool midiAccessorResult();
@@ -476,6 +477,10 @@ class TestRunner : public WebTestRunner,
// instead of a snapshot of the page.
void DumpDragImage();
+ // Sets a flag that tells the WebTestProxy to dump the default navigation
+ // policy passed to the decidePolicyForNavigation callback.
+ void DumpNavigationPolicy();
+
///////////////////////////////////////////////////////////////////////////
// Methods interacting with the WebTestProxy
@@ -749,6 +754,10 @@ class TestRunner : public WebTestRunner,
// If true, the test_shell will dump the drag image as pixel results.
bool dump_drag_image_;
+ // If true, content_shell will dump the default navigation policy passed to
+ // WebFrameClient::decidePolicyForNavigation.
+ bool dump_navigation_policy_;
+
// If true, pixel dump will be produced as a series of 1px-tall, view-wide
// individual paints over the height of the view.
bool test_repaint_;
« no previous file with comments | « no previous file | content/shell/renderer/test_runner/test_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698