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

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

Issue 7146024: Use ExecuteJavascriptInWebFrameNotifyResult to return results even in error condition (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Allow the test to verify failing fast to pass. 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
« no previous file with comments | « no previous file | chrome/browser/ui/webui/web_ui_test_handler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..f7c45d2cb75f03265724967595f42d08861fa801 100644
--- a/chrome/browser/ui/webui/web_ui_browsertest.cc
+++ b/chrome/browser/ui/webui/web_ui_browsertest.cc
@@ -201,6 +201,14 @@ IN_PROC_BROWSER_TEST_F(WebUIBrowserTest, TestSamplePass) {
ui_test_utils::NavigateToURL(browser(), GURL(chrome::kChromeUIDownloadsURL));
ASSERT_TRUE(RunJavascriptTest("testAssertFalse"));
+ ASSERT_FALSE(RunJavascriptTest("FAILS_testAssertFalse"));
ASSERT_TRUE(RunJavascriptTest("testInitialFocus"));
ASSERT_FALSE(RunJavascriptTest("testConsoleError"));
}
+
+// This fails on purpose to test hanging case in crbug.com/85990
Paweł Hajdan Jr. 2011/06/15 15:49:30 nit: Maybe put the "This fails on purpose" right a
Sheridan Rawlins 2011/06/15 17:08:16 I used the gtest-spi method EXPECT_FATAL_FAILURE a
+IN_PROC_BROWSER_TEST_F(WebUIBrowserTest, TestFailsFast) {
+ AddLibrary(FilePath(FILE_PATH_LITERAL("sample_downloads.js")));
+ ui_test_utils::NavigateToURL(browser(), GURL(chrome::kChromeUIDownloadsURL));
+ ASSERT_FALSE(RunJavascriptTest("FAILS_BogusFunctionName"));
+}
« no previous file with comments | « no previous file | chrome/browser/ui/webui/web_ui_test_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698