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

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

Issue 302043002: Add testRunner callbacks for better handling of view-source frames (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 7 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 49206c13aa5c7936ef139ca628de7ac4b22bbd53..2c7f2a36cc1f8110ea1f066e45f55cf671769732 100644
--- a/content/shell/renderer/test_runner/test_runner.h
+++ b/content/shell/renderer/test_runner/test_runner.h
@@ -77,6 +77,7 @@ class TestRunner : public WebTestRunner,
std:: string customDumpText() const;
bool shouldDumpAsMarkup();
bool shouldDumpChildFrameScrollPositions() const;
+ bool shouldDumpChildFramesAsMarkup() const;
bool shouldDumpChildFramesAsText() const;
void showDevTools(const std::string& settings,
const std::string& frontend_url);
@@ -338,6 +339,11 @@ class TestRunner : public WebTestRunner,
void DumpAsText();
// This function sets a flag that tells the test_shell to dump pages as
+ // the DOM contents, rather than as a text representation of the renderer's
+ // state. The pixel results will not be generated for this test.
+ void DumpAsMarkup();
+
+ // This function sets a flag that tells the test_shell to dump pages as
// plain text, rather than as a text representation of the renderer's state.
// It will also generate a pixel dump for the test.
void DumpAsTextWithPixelResults();
@@ -351,6 +357,11 @@ class TestRunner : public WebTestRunner,
// It takes no arguments, and ignores any that may be present.
void DumpChildFramesAsText();
+ // This function sets a flag that tells the test_shell to recursively
+ // dump all frames as the DOM contents if the DumpAsMarkup flag is set.
+ // It takes no arguments, and ignores any that may be present.
+ void DumpChildFramesAsMarkup();
+
// This function sets a flag that tells the test_shell to print out the
// information about icon changes notifications from WebKit.
void DumpIconChanges();
@@ -595,6 +606,11 @@ class TestRunner : public WebTestRunner,
// representation of the renderer.
bool dump_as_markup_;
+ // If true and if dump_as_markup_ is true, the test_shell will recursively
+ // produce a dump of the DOM rather than a text representation of the
+ // renderer.
+ bool dump_child_frames_as_markup_;
+
// If true, the test_shell will print out the child frame scroll offsets as
// well.
bool dump_child_frame_scroll_positions_;
« 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