Index: content/test/layout_browsertest.h |
=================================================================== |
--- content/test/layout_browsertest.h (revision 129871) |
+++ content/test/layout_browsertest.h (working copy) |
@@ -34,6 +34,8 @@ |
void AddResourceForLayoutTest(const FilePath& parent_dir, |
const FilePath& resource_name); |
+ void set_wait_until_done(bool value) { wait_until_done_ = value; } |
+ |
private: |
void RunLayoutTestInternal(const std::string& test_case_file_name, |
const GURL& url); |
@@ -49,6 +51,9 @@ |
FilePath rebase_result_win_dir_; |
ScopedTempDir scoped_temp_dir_; |
int port_; // -2 means no port. -1 means random. |
+ // By default, tests will wait until layoutTestController.notifyDone() is |
+ // called. |
+ bool wait_until_done_; |
scoped_ptr<LayoutTestHttpServer> test_http_server_; |
DISALLOW_COPY_AND_ASSIGN(InProcessBrowserLayoutTest); |