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

Unified Diff: chrome/browser/ui/webui/web_ui_browsertest.cc

Issue 7087014: Support automatic javascript test registry in gtest when creating WebUI tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updated comments about indices, and fixed set_add to take separate args; not array. Created 9 years, 6 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
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"

Powered by Google App Engine
This is Rietveld 408576698