summaryrefslogtreecommitdiffstats
path: root/chrome/browser
diff options
context:
space:
mode:
authorkkania@chromium.org <kkania@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-23 17:46:53 +0000
committerkkania@chromium.org <kkania@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-23 17:46:53 +0000
commit0e28ef06edf54b80309ad26c5fb3b780388dc8ea (patch)
tree30576d6074011b388ddd6503170c956954844635 /chrome/browser
parent99105c310a87b3a7d22a97ef3a5b47ea53ca9fbb (diff)
downloadchromium_src-0e28ef06edf54b80309ad26c5fb3b780388dc8ea.zip
chromium_src-0e28ef06edf54b80309ad26c5fb3b780388dc8ea.tar.gz
chromium_src-0e28ef06edf54b80309ad26c5fb3b780388dc8ea.tar.bz2
Allow reentrant tasks on window close in in-proc browser test framework. Disable tests that are failing on Mac.
BUG=none TEST=none Review URL: http://codereview.chromium.org/425013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32804 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
-rw-r--r--chrome/browser/browser_browsertest.cc14
1 files changed, 14 insertions, 0 deletions
diff --git a/chrome/browser/browser_browsertest.cc b/chrome/browser/browser_browsertest.cc
index 2ea76c2..d4efd9e 100644
--- a/chrome/browser/browser_browsertest.cc
+++ b/chrome/browser/browser_browsertest.cc
@@ -149,7 +149,11 @@ IN_PROC_BROWSER_TEST_F(BrowserTest, ThirtyFourTabs) {
// Test for crbug.com/22004. Reloading a page with a before unload handler and
// then canceling the dialog should not leave the throbber spinning.
+#if defined(OS_MACOSX)
+IN_PROC_BROWSER_TEST_F(BrowserTest, DISABLED_ReloadThenCancelBeforeUnload) {
+#else
IN_PROC_BROWSER_TEST_F(BrowserTest, ReloadThenCancelBeforeUnload) {
+#endif
GURL url("data:text/html," + BEFORE_UNLOAD_HTML);
ui_test_utils::NavigateToURL(browser(), url);
@@ -167,7 +171,12 @@ IN_PROC_BROWSER_TEST_F(BrowserTest, ReloadThenCancelBeforeUnload) {
// Test for crbug.com/11647. A page closed with window.close() should not have
// two beforeunload dialogs shown.
+#if defined(OS_MACOSX)
+IN_PROC_BROWSER_TEST_F(BrowserTest,
+ DISABLED_SingleBeforeUnloadAfterWindowClose) {
+#else
IN_PROC_BROWSER_TEST_F(BrowserTest, FLAKY_SingleBeforeUnloadAfterWindowClose) {
+#endif
browser()->GetSelectedTabContents()->render_view_host()->
ExecuteJavascriptInWebFrame(L"", OPEN_NEW_BEFOREUNLOAD_PAGE);
@@ -201,7 +210,12 @@ IN_PROC_BROWSER_TEST_F(BrowserTest, RenderIdleTime) {
// Test IDC_CREATE_SHORTCUTS command is enabled for url scheme file, ftp, http
// and https and disabled for chrome://, about:// etc.
+#if defined(OS_MACOSX)
+IN_PROC_BROWSER_TEST_F(BrowserTest,
+ DISABLED_CommandCreateAppShortcut) {
+#else
IN_PROC_BROWSER_TEST_F(BrowserTest, CommandCreateAppShortcut) {
+#endif
static const wchar_t kDocRoot[] = L"chrome/test/data";
CommandUpdater* command_updater = browser()->command_updater();