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

Unified Diff: content/shell/renderer/layout_test/leak_detector.cc

Issue 2496853003: Adjust leak detector expectations for IntersectionObserver
Patch Set: 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/LeakExpectations » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/renderer/layout_test/leak_detector.cc
diff --git a/content/shell/renderer/layout_test/leak_detector.cc b/content/shell/renderer/layout_test/leak_detector.cc
index bc8de7e5449d18443d6618b92c89e1d6b8cd107d..92123cb7bb870ae047ea7caeee7a26858e6fc22e 100644
--- a/content/shell/renderer/layout_test/leak_detector.cc
+++ b/content/shell/renderer/layout_test/leak_detector.cc
@@ -31,8 +31,10 @@ const int kInitialNumberOfLiveFrames = 1;
const int kInitialNumberOfWorkerGlobalScopes = 0;
// In the initial state, there are two ActiveDOMObjects (FontFaceSet created by
-// HTMLDocument and SuspendableTimer created by DocumentLoader).
-const int kInitialNumberOfLiveActiveDOMObject = 2;
+// HTMLDocument and SuspendableTimer created by DocumentLoader). A third one
+// (IntersectionObserverController) may be created if the root document
+// registers an intersection observer.
+const int kInitialNumberOfLiveActiveDOMObject = 3;
// This includes not only about:blank's context but also ScriptRegexp (e.g.
// created by isValidEmailAddress in EmailInputType.cpp). The leak detector
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/LeakExpectations » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698