| 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 <queue> | 5 #include <queue> |
| 6 #include <set> | 6 #include <set> |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/callback_helpers.h" | 9 #include "base/callback_helpers.h" |
| 10 #include "base/files/file_util.h" | 10 #include "base/files/file_util.h" |
| (...skipping 1715 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1726 // which the test checks to ensure proper storage isolation is enforced. | 1726 // which the test checks to ensure proper storage isolation is enforced. |
| 1727 IN_PROC_BROWSER_TEST_P(WebViewTest, IndexedDBIsolation) { | 1727 IN_PROC_BROWSER_TEST_P(WebViewTest, IndexedDBIsolation) { |
| 1728 ASSERT_TRUE(StartEmbeddedTestServer()); | 1728 ASSERT_TRUE(StartEmbeddedTestServer()); |
| 1729 ASSERT_TRUE(RunPlatformAppTest( | 1729 ASSERT_TRUE(RunPlatformAppTest( |
| 1730 "platform_apps/web_view/isolation_indexeddb")) << message_; | 1730 "platform_apps/web_view/isolation_indexeddb")) << message_; |
| 1731 } | 1731 } |
| 1732 | 1732 |
| 1733 // This test ensures that closing app window on 'loadcommit' does not crash. | 1733 // This test ensures that closing app window on 'loadcommit' does not crash. |
| 1734 // The test launches an app with guest and closes the window on loadcommit. It | 1734 // The test launches an app with guest and closes the window on loadcommit. It |
| 1735 // then launches the app window again. The process is repeated 3 times. | 1735 // then launches the app window again. The process is repeated 3 times. |
| 1736 // https://crbug.com/291278 | 1736 IN_PROC_BROWSER_TEST_P(WebViewTest, CloseOnLoadcommit) { |
| 1737 // https://crbug.com/619148 | |
| 1738 #if defined(OS_WIN) || defined(MAC_OS_X_VERSION_10_9) || defined(OS_LINUX) | |
| 1739 #define MAYBE_CloseOnLoadcommit DISABLED_CloseOnLoadcommit | |
| 1740 #else | |
| 1741 #define MAYBE_CloseOnLoadcommit CloseOnLoadcommit | |
| 1742 #endif | |
| 1743 IN_PROC_BROWSER_TEST_P(WebViewTest, MAYBE_CloseOnLoadcommit) { | |
| 1744 LoadAndLaunchPlatformApp("web_view/close_on_loadcommit", | 1737 LoadAndLaunchPlatformApp("web_view/close_on_loadcommit", |
| 1745 "done-close-on-loadcommit"); | 1738 "done-close-on-loadcommit"); |
| 1746 } | 1739 } |
| 1747 | 1740 |
| 1748 IN_PROC_BROWSER_TEST_P(WebViewTest, MediaAccessAPIDeny_TestDeny) { | 1741 IN_PROC_BROWSER_TEST_P(WebViewTest, MediaAccessAPIDeny_TestDeny) { |
| 1749 MediaAccessAPIDenyTestHelper("testDeny"); | 1742 MediaAccessAPIDenyTestHelper("testDeny"); |
| 1750 } | 1743 } |
| 1751 | 1744 |
| 1752 IN_PROC_BROWSER_TEST_P(WebViewTest, | 1745 IN_PROC_BROWSER_TEST_P(WebViewTest, |
| 1753 MediaAccessAPIDeny_TestDenyThenAllowThrows) { | 1746 MediaAccessAPIDeny_TestDenyThenAllowThrows) { |
| (...skipping 1842 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3596 gfx::Point embedder_origin = | 3589 gfx::Point embedder_origin = |
| 3597 GetEmbedderWebContents()->GetContainerBounds().origin(); | 3590 GetEmbedderWebContents()->GetContainerBounds().origin(); |
| 3598 guest_rect.Offset(-embedder_origin.x(), -embedder_origin.y()); | 3591 guest_rect.Offset(-embedder_origin.x(), -embedder_origin.y()); |
| 3599 | 3592 |
| 3600 // Generate and send synthetic touch event. | 3593 // Generate and send synthetic touch event. |
| 3601 content::SimulateTouchPressAt(GetEmbedderWebContents(), | 3594 content::SimulateTouchPressAt(GetEmbedderWebContents(), |
| 3602 guest_rect.CenterPoint()); | 3595 guest_rect.CenterPoint()); |
| 3603 EXPECT_TRUE(aura_webview->HasFocus()); | 3596 EXPECT_TRUE(aura_webview->HasFocus()); |
| 3604 } | 3597 } |
| 3605 #endif | 3598 #endif |
| OLD | NEW |