Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "apps/ui/native_app_window.h" | 5 #include "apps/ui/native_app_window.h" |
| 6 #include "base/path_service.h" | 6 #include "base/path_service.h" |
| 7 #include "base/strings/stringprintf.h" | 7 #include "base/strings/stringprintf.h" |
| 8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
| 9 #include "chrome/browser/apps/app_browsertest_util.h" | 9 #include "chrome/browser/apps/app_browsertest_util.h" |
| 10 #include "chrome/browser/automation/automation_util.h" | 10 #include "chrome/browser/automation/automation_util.h" |
| (...skipping 1773 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1784 | 1784 |
| 1785 IN_PROC_BROWSER_TEST_F(WebViewTest, NoPermission) { | 1785 IN_PROC_BROWSER_TEST_F(WebViewTest, NoPermission) { |
| 1786 ASSERT_TRUE(RunPlatformAppTest("platform_apps/web_view/nopermission")) | 1786 ASSERT_TRUE(RunPlatformAppTest("platform_apps/web_view/nopermission")) |
| 1787 << message_; | 1787 << message_; |
| 1788 } | 1788 } |
| 1789 | 1789 |
| 1790 IN_PROC_BROWSER_TEST_F(WebViewTest, Dialog_TestAlertDialog) { | 1790 IN_PROC_BROWSER_TEST_F(WebViewTest, Dialog_TestAlertDialog) { |
| 1791 TestHelper("testAlertDialog", "web_view/dialog", NO_TEST_SERVER); | 1791 TestHelper("testAlertDialog", "web_view/dialog", NO_TEST_SERVER); |
| 1792 } | 1792 } |
| 1793 | 1793 |
| 1794 // Fails on official Windows and Linux builds. See http://crbug.com/313868 | 1794 IN_PROC_BROWSER_TEST_F(WebViewTest, TestConfirmDialog) { |
|
lazyboy
2014/03/06 17:47:32
Why would these tests pass now?
| |
| 1795 #if defined(GOOGLE_CHROME_BUILD) && (defined(OS_WIN) || defined(OS_LINUX)) | |
| 1796 #define MAYBE_Dialog_TestConfirmDialog DISABLED_Dialog_TestConfirmDialog | |
| 1797 #else | |
| 1798 #define MAYBE_Dialog_TestConfirmDialog Dialog_TestConfirmDialog | |
| 1799 #endif | |
| 1800 IN_PROC_BROWSER_TEST_F(WebViewTest, MAYBE_Dialog_TestConfirmDialog) { | |
| 1801 TestHelper("testConfirmDialog", "web_view/dialog", NO_TEST_SERVER); | 1795 TestHelper("testConfirmDialog", "web_view/dialog", NO_TEST_SERVER); |
| 1802 } | 1796 } |
| 1803 | 1797 |
| 1804 IN_PROC_BROWSER_TEST_F(WebViewTest, Dialog_TestConfirmDialogCancel) { | 1798 IN_PROC_BROWSER_TEST_F(WebViewTest, Dialog_TestConfirmDialogCancel) { |
| 1805 TestHelper("testConfirmDialogCancel", "web_view/dialog", NO_TEST_SERVER); | 1799 TestHelper("testConfirmDialogCancel", "web_view/dialog", NO_TEST_SERVER); |
| 1806 } | 1800 } |
| 1807 | 1801 |
| 1808 IN_PROC_BROWSER_TEST_F(WebViewTest, Dialog_TestConfirmDialogDefaultCancel) { | 1802 IN_PROC_BROWSER_TEST_F(WebViewTest, Dialog_TestConfirmDialogDefaultCancel) { |
| 1809 TestHelper("testConfirmDialogDefaultCancel", | 1803 TestHelper("testConfirmDialogDefaultCancel", |
| 1810 "web_view/dialog", | 1804 "web_view/dialog", |
| 1811 NO_TEST_SERVER); | 1805 NO_TEST_SERVER); |
| 1812 } | 1806 } |
| 1813 | 1807 |
| 1814 IN_PROC_BROWSER_TEST_F(WebViewTest, Dialog_TestConfirmDialogDefaultGCCancel) { | 1808 IN_PROC_BROWSER_TEST_F(WebViewTest, Dialog_TestConfirmDialogDefaultGCCancel) { |
| 1815 TestHelper("testConfirmDialogDefaultGCCancel", | 1809 TestHelper("testConfirmDialogDefaultGCCancel", |
| 1816 "web_view/dialog", | 1810 "web_view/dialog", |
| 1817 NO_TEST_SERVER); | 1811 NO_TEST_SERVER); |
| 1818 } | 1812 } |
| 1819 | 1813 |
| 1820 // Fails on official Windows and Linux builds. See http://crbug.com/313868 | 1814 IN_PROC_BROWSER_TEST_F(WebViewTest, Dialog_TestPromptDialog) { |
| 1821 #if defined(GOOGLE_CHROME_BUILD) && (defined(OS_WIN) || defined(OS_LINUX)) | |
| 1822 #define MAYBE_Dialog_TestPromptDialog DISABLED_Dialog_TestPromptDialog | |
| 1823 #else | |
| 1824 #define MAYBE_Dialog_TestPromptDialog Dialog_TestPromptDialog | |
| 1825 #endif | |
| 1826 IN_PROC_BROWSER_TEST_F(WebViewTest, MAYBE_Dialog_TestPromptDialog) { | |
| 1827 TestHelper("testPromptDialog", "web_view/dialog", NO_TEST_SERVER); | 1815 TestHelper("testPromptDialog", "web_view/dialog", NO_TEST_SERVER); |
| 1828 } | 1816 } |
| 1829 | 1817 |
| 1830 IN_PROC_BROWSER_TEST_F(WebViewTest, NoContentSettingsAPI) { | 1818 IN_PROC_BROWSER_TEST_F(WebViewTest, NoContentSettingsAPI) { |
| 1831 // Load the extension. | 1819 // Load the extension. |
| 1832 const extensions::Extension* content_settings_extension = | 1820 const extensions::Extension* content_settings_extension = |
| 1833 LoadExtension( | 1821 LoadExtension( |
| 1834 test_data_dir_.AppendASCII( | 1822 test_data_dir_.AppendASCII( |
| 1835 "platform_apps/web_view/extension_api/content_settings")); | 1823 "platform_apps/web_view/extension_api/content_settings")); |
| 1836 ASSERT_TRUE(content_settings_extension); | 1824 ASSERT_TRUE(content_settings_extension); |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1904 INSTANTIATE_TEST_CASE_P(WithoutThreadedCompositor, | 1892 INSTANTIATE_TEST_CASE_P(WithoutThreadedCompositor, |
| 1905 WebViewCaptureTest, | 1893 WebViewCaptureTest, |
| 1906 ::testing::Values(std::string(switches::kDisableThreadedCompositing))); | 1894 ::testing::Values(std::string(switches::kDisableThreadedCompositing))); |
| 1907 #endif | 1895 #endif |
| 1908 | 1896 |
| 1909 #if defined(USE_AURA) || defined(OS_MACOSX) | 1897 #if defined(USE_AURA) || defined(OS_MACOSX) |
| 1910 INSTANTIATE_TEST_CASE_P(WithThreadedCompositor, | 1898 INSTANTIATE_TEST_CASE_P(WithThreadedCompositor, |
| 1911 WebViewCaptureTest, | 1899 WebViewCaptureTest, |
| 1912 ::testing::Values(std::string(switches::kEnableThreadedCompositing))); | 1900 ::testing::Values(std::string(switches::kEnableThreadedCompositing))); |
| 1913 #endif | 1901 #endif |
| OLD | NEW |