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

Unified Diff: third_party/WebKit/Source/modules/webaudio/BaseAudioContextTest.cpp

Issue 2473163002: Fix tests to ship Aura overlay scrollbars for ChromeOS (Closed)
Patch Set: Flag Off - Removed DCHECKs in painting - Should pass all tests Created 4 years, 1 month 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: third_party/WebKit/Source/modules/webaudio/BaseAudioContextTest.cpp
diff --git a/third_party/WebKit/Source/modules/webaudio/BaseAudioContextTest.cpp b/third_party/WebKit/Source/modules/webaudio/BaseAudioContextTest.cpp
index eb46576a320bcd92d1264793ae31d7a64d6e3d2f..0c9bda27d5925e8dc59c98ae90e84ddfa6b5d479 100644
--- a/third_party/WebKit/Source/modules/webaudio/BaseAudioContextTest.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/BaseAudioContextTest.cpp
@@ -80,6 +80,8 @@ class BaseAudioContextTest : public ::testing::Test {
using AutoplayStatus = BaseAudioContext::AutoplayStatus;
void SetUp() override {
+ m_oldMockScrollbarSetting = Settings::mockScrollbarsEnabled();
+ Settings::setMockScrollbarsEnabled(true);
m_dummyPageHolder = DummyPageHolder::create();
m_dummyFrameOwner = DummyFrameOwner::create();
document().updateSecurityOrigin(
@@ -87,6 +89,7 @@ class BaseAudioContextTest : public ::testing::Test {
}
void TearDown() override {
+ Settings::setMockScrollbarsEnabled(m_oldMockScrollbarSetting);
if (m_childFrame) {
m_childDocumentLoader->detachFromFrame();
m_childDocumentLoader.clear();
@@ -132,6 +135,7 @@ class BaseAudioContextTest : public ::testing::Test {
Persistent<LocalFrame> m_childFrame;
Persistent<DocumentLoader> m_childDocumentLoader;
+ bool m_oldMockScrollbarSetting;
BaseAudioContextTestPlatform m_testPlatform;
};

Powered by Google App Engine
This is Rietveld 408576698