Commit c90a6ca1 authored by flackr's avatar flackr Committed by Commit bot

Evict resources from memory cache after running rendering test.

BUG=640344
TEST=Manual steps in bug.

Review-Url: https://codereview.chromium.org/2278723002
Cr-Commit-Position: refs/heads/master@{#414691}
parent b08ddda7
......@@ -4,6 +4,7 @@
#include "core/layout/LayoutTestHelper.h"
#include "core/fetch/MemoryCache.h"
#include "core/frame/FrameHost.h"
#include "core/html/HTMLIFrameElement.h"
#include "platform/scroll/ScrollbarTheme.h"
......@@ -42,6 +43,9 @@ void RenderingTest::TearDown()
// RuntimeEnabledFeatures setting during teardown, which happens before our destructor
// getting invoked, breaking the assumption that REF can't change during Blink lifetime.
m_pageHolder = nullptr;
// Clear memory cache, otherwise we can leak pruned resources.
memoryCache()->evictResources();
}
Document& RenderingTest::setupChildIframe(const AtomicString& iframeElementId, const String& htmlContentOfIframe)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment