Index: chrome/browser/ui/webui/web_ui_browsertest.cc |
diff --git a/chrome/browser/ui/webui/web_ui_browsertest.cc b/chrome/browser/ui/webui/web_ui_browsertest.cc |
index 3817612619a61c8a7daf4884bbc5cab12a9f0e53..60d1775b18653ebecbaf6e3daad994a9aab3d9f2 100644 |
--- a/chrome/browser/ui/webui/web_ui_browsertest.cc |
+++ b/chrome/browser/ui/webui/web_ui_browsertest.cc |
@@ -204,3 +204,12 @@ IN_PROC_BROWSER_TEST_F(WebUIBrowserTest, TestSamplePass) { |
ASSERT_TRUE(RunJavascriptTest("testInitialFocus")); |
ASSERT_FALSE(RunJavascriptTest("testConsoleError")); |
} |
+ |
+class WebUIBrowserTestPass : public WebUIBrowserTest { |
+ virtual void SetUpOnMainThread() { |
Paweł Hajdan Jr.
2011/06/13 19:38:40
Shouldn't you call parent's SetUpOnMainThread or r
Sheridan Rawlins
2011/06/13 22:18:54
This is not a test. It is the "framework" class f
Paweł Hajdan Jr.
2011/06/14 20:23:17
I see. That still doesn't explain not calling pare
Sheridan Rawlins
2011/06/14 22:39:26
// Override this to add any custom setup code that
Paweł Hajdan Jr.
2011/06/15 08:12:31
... and when WebUIBrowserTest _does_ override SetU
Sheridan Rawlins
2011/06/15 23:54:32
Done.
|
+ ui_test_utils::NavigateToURL(browser(), |
+ GURL(chrome::kChromeUIDownloadsURL)); |
+ } |
+}; |
+ |
+#include "chrome/browser/ui/webui/web_ui_browsertest-inl.h" |