Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2589)

Unified Diff: Source/web/tests/WebScopedWindowFocusAllowedIndicatorTest.cpp

Issue 804163002: Revert 186849 "Bind Window focus ability to the ExecutionContext..." (Closed) Base URL: svn://svn.chromium.org/blink/branches/chromium/2250/
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/web/tests/WebScopedWindowFocusAllowedIndicatorTest.cpp
===================================================================
--- Source/web/tests/WebScopedWindowFocusAllowedIndicatorTest.cpp (revision 187183)
+++ Source/web/tests/WebScopedWindowFocusAllowedIndicatorTest.cpp (working copy)
@@ -31,11 +31,10 @@
#include "config.h"
#include "public/web/WebScopedWindowFocusAllowedIndicator.h"
-#include "core/dom/Document.h"
#include "core/page/WindowFocusAllowedIndicator.h"
-#include "public/web/WebDocument.h"
#include <gtest/gtest.h>
+
using namespace blink;
namespace {
@@ -55,22 +54,4 @@
EXPECT_FALSE(WindowFocusAllowedIndicator::windowFocusAllowed());
}
-TEST(WebScopedWindowFocusAllowedIndicatorTest, WithDocument)
-{
- RefPtrWillBePersistent<Document> document = Document::create();
- WebDocument webDocument(document);
-
- EXPECT_FALSE(document->isWindowFocusAllowed());
- {
- WebScopedWindowFocusAllowedIndicator indicator1(&webDocument);
- EXPECT_TRUE(document->isWindowFocusAllowed());
- {
- WebScopedWindowFocusAllowedIndicator indicator2(&webDocument);
- EXPECT_TRUE(document->isWindowFocusAllowed());
- }
- EXPECT_TRUE(document->isWindowFocusAllowed());
- }
- EXPECT_FALSE(document->isWindowFocusAllowed());
}
-
-}
« no previous file with comments | « Source/web/WebScopedWindowFocusAllowedIndicator.cpp ('k') | public/web/WebScopedWindowFocusAllowedIndicator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698