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

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

Issue 2711893002: Loosen FirstMeaningfulPaint UMA network-idle heuristics (Closed)
Patch Set: Capture 0-stable and 2-stable independently 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..01db68607b24c51be977eff9b5401a72615a379c 100644
--- a/third_party/WebKit/Source/core/paint/FirstMeaningfulPaintDetectorTest.cpp
+++ b/third_party/WebKit/Source/core/paint/FirstMeaningfulPaintDetectorTest.cpp
@@ -37,7 +37,11 @@ class FirstMeaningfulPaintDetectorTest : public testing::Test {
detector().notifyPaint();
}
- void simulateNetworkStable() { detector().networkStableTimerFired(nullptr); }
+ void simulateNetworkStable() {
+ document().setParsingState(Document::FinishedParsing);
+ detector().network0QuietTimerFired(nullptr);
+ detector().network2QuietTimerFired(nullptr);
tdresser 2017/03/07 17:15:51 Should we have a test where we hit the two network
Kunihiko Sakamoto 2017/03/08 04:34:51 Done.
+ }
private:
static double returnMockTime() {

Powered by Google App Engine
This is Rietveld 408576698