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

Unified Diff: third_party/WebKit/Source/core/paint/FirstMeaningfulPaintDetectorTest.cpp

Issue 2711893002: Loosen FirstMeaningfulPaint UMA network-idle heuristics (Closed)
Patch Set: Created 3 years, 10 months 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/core/paint/FirstMeaningfulPaintDetectorTest.cpp
diff --git a/third_party/WebKit/Source/core/paint/FirstMeaningfulPaintDetectorTest.cpp b/third_party/WebKit/Source/core/paint/FirstMeaningfulPaintDetectorTest.cpp
index 842d2731b0604d96e2da5a3b072ac73c9e1196ee..978c49da075d9a3b13f6fbca1e1a8d9ac50e3342 100644
--- a/third_party/WebKit/Source/core/paint/FirstMeaningfulPaintDetectorTest.cpp
+++ b/third_party/WebKit/Source/core/paint/FirstMeaningfulPaintDetectorTest.cpp
@@ -37,7 +37,10 @@ class FirstMeaningfulPaintDetectorTest : public testing::Test {
detector().notifyPaint();
}
- void simulateNetworkStable() { detector().networkStableTimerFired(nullptr); }
+ void simulateNetworkStable() {
+ document().setParsingState(Document::FinishedParsing);
+ detector().networkStableTimerFired(nullptr);
+ }
private:
static double returnMockTime() {

Powered by Google App Engine
This is Rietveld 408576698