diff options
Diffstat (limited to 'chromium/third_party/blink/renderer/core/exported/web_scoped_window_focus_allowed_indicator_test.cc')
-rw-r--r-- | chromium/third_party/blink/renderer/core/exported/web_scoped_window_focus_allowed_indicator_test.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/chromium/third_party/blink/renderer/core/exported/web_scoped_window_focus_allowed_indicator_test.cc b/chromium/third_party/blink/renderer/core/exported/web_scoped_window_focus_allowed_indicator_test.cc index be2e44fd906..2e1c14b783a 100644 --- a/chromium/third_party/blink/renderer/core/exported/web_scoped_window_focus_allowed_indicator_test.cc +++ b/chromium/third_party/blink/renderer/core/exported/web_scoped_window_focus_allowed_indicator_test.cc @@ -32,7 +32,7 @@ #include "testing/gtest/include/gtest/gtest.h" #include "third_party/blink/public/web/web_document.h" -#include "third_party/blink/renderer/core/dom/document.h" +#include "third_party/blink/renderer/core/frame/local_dom_window.h" #include "third_party/blink/renderer/core/testing/dummy_page_holder.h" #include "third_party/blink/renderer/platform/heap/heap.h" @@ -40,20 +40,20 @@ namespace blink { TEST(WebScopedWindowFocusAllowedIndicatorTest, Basic) { auto dummy = std::make_unique<DummyPageHolder>(); - auto* document = &dummy->GetDocument(); - WebDocument web_document(document); + auto* window = dummy->GetFrame().DomWindow(); + WebDocument web_document(&dummy->GetDocument()); - EXPECT_FALSE(document->ToExecutionContext()->IsWindowInteractionAllowed()); + EXPECT_FALSE(window->IsWindowInteractionAllowed()); { WebScopedWindowFocusAllowedIndicator indicator1(&web_document); - EXPECT_TRUE(document->ToExecutionContext()->IsWindowInteractionAllowed()); + EXPECT_TRUE(window->IsWindowInteractionAllowed()); { WebScopedWindowFocusAllowedIndicator indicator2(&web_document); - EXPECT_TRUE(document->ToExecutionContext()->IsWindowInteractionAllowed()); + EXPECT_TRUE(window->IsWindowInteractionAllowed()); } - EXPECT_TRUE(document->ToExecutionContext()->IsWindowInteractionAllowed()); + EXPECT_TRUE(window->IsWindowInteractionAllowed()); } - EXPECT_FALSE(document->ToExecutionContext()->IsWindowInteractionAllowed()); + EXPECT_FALSE(window->IsWindowInteractionAllowed()); } } // namespace blink |