| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "content/browser/site_per_process_browsertest.h" | 5 #include "content/browser/site_per_process_browsertest.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <algorithm> | 10 #include <algorithm> |
| (...skipping 1308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1319 EXPECT_FALSE(main_frame_monitor.EventWasReceived()); | 1319 EXPECT_FALSE(main_frame_monitor.EventWasReceived()); |
| 1320 } | 1320 } |
| 1321 | 1321 |
| 1322 // This test tests that browser process hittesting ignores frames with | 1322 // This test tests that browser process hittesting ignores frames with |
| 1323 // pointer-events: none. | 1323 // pointer-events: none. |
| 1324 #if defined(OS_ANDROID) | 1324 #if defined(OS_ANDROID) |
| 1325 // Browser process hit testing is not implemented on Android. | 1325 // Browser process hit testing is not implemented on Android. |
| 1326 // https://crbug.com/491334 | 1326 // https://crbug.com/491334 |
| 1327 #define MAYBE_SurfaceHitTestPointerEventsNone \ | 1327 #define MAYBE_SurfaceHitTestPointerEventsNone \ |
| 1328 DISABLED_SurfaceHitTestPointerEventsNone | 1328 DISABLED_SurfaceHitTestPointerEventsNone |
| 1329 #elif defined(THREAD_SANITIZER) | |
| 1330 // Flaky on TSAN. https://crbug.com/582277 | |
| 1331 #define MAYBE_SurfaceHitTestPointerEventsNone \ | |
| 1332 DISABLED_SurfaceHitTestPointerEventsNone | |
| 1333 #else | 1329 #else |
| 1334 #define MAYBE_SurfaceHitTestPointerEventsNone SurfaceHitTestPointerEventsNone | 1330 #define MAYBE_SurfaceHitTestPointerEventsNone SurfaceHitTestPointerEventsNone |
| 1335 #endif | 1331 #endif |
| 1336 IN_PROC_BROWSER_TEST_F(SitePerProcessBrowserTest, | 1332 IN_PROC_BROWSER_TEST_F(SitePerProcessBrowserTest, |
| 1337 MAYBE_SurfaceHitTestPointerEventsNone) { | 1333 MAYBE_SurfaceHitTestPointerEventsNone) { |
| 1338 GURL main_url(embedded_test_server()->GetURL( | 1334 GURL main_url(embedded_test_server()->GetURL( |
| 1339 "/frame_tree/page_with_positioned_frame_pointer-events_none.html")); | 1335 "/frame_tree/page_with_positioned_frame_pointer-events_none.html")); |
| 1340 EXPECT_TRUE(NavigateToURL(shell(), main_url)); | 1336 EXPECT_TRUE(NavigateToURL(shell(), main_url)); |
| 1341 | 1337 |
| 1342 // It is safe to obtain the root frame tree node here, as it doesn't change. | 1338 // It is safe to obtain the root frame tree node here, as it doesn't change. |
| (...skipping 7484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8827 | 8823 |
| 8828 // Ensure that the iframe reuses its parent's process. | 8824 // Ensure that the iframe reuses its parent's process. |
| 8829 EXPECT_EQ(srcdoc_url, child->current_url()); | 8825 EXPECT_EQ(srcdoc_url, child->current_url()); |
| 8830 EXPECT_EQ(root->current_frame_host()->GetSiteInstance(), | 8826 EXPECT_EQ(root->current_frame_host()->GetSiteInstance(), |
| 8831 child->current_frame_host()->GetSiteInstance()); | 8827 child->current_frame_host()->GetSiteInstance()); |
| 8832 EXPECT_EQ(root->current_frame_host()->GetProcess(), | 8828 EXPECT_EQ(root->current_frame_host()->GetProcess(), |
| 8833 child->current_frame_host()->GetProcess()); | 8829 child->current_frame_host()->GetProcess()); |
| 8834 } | 8830 } |
| 8835 | 8831 |
| 8836 } // namespace content | 8832 } // namespace content |
| OLD | NEW |