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

Unified Diff: LayoutTests/http/tests/inspector/search/search-test.js

Issue 1254293008: Perform initial GC to improve inspector/search test stability. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/inspector/search/search-test.js
diff --git a/LayoutTests/http/tests/inspector/search/search-test.js b/LayoutTests/http/tests/inspector/search/search-test.js
index f52fdf908d83e43630f8f1f81e5b2fb77ce1c5fc..bffd2940c1593afae2f73f91af504b9827b699b5 100644
--- a/LayoutTests/http/tests/inspector/search/search-test.js
+++ b/LayoutTests/http/tests/inspector/search/search-test.js
@@ -1,5 +1,9 @@
-var initialize_SearchTest = function() {
+// To ensure that no GC-able resources from other tests upset
+// expectations, perform an initial GC.
+if (window.GCController)
+ GCController.collect();
haraken 2015/07/29 13:43:23 Shall we use GCController.collectAll()?
sof 2015/07/29 13:43:57 I've repeatedly tested, and didn't see a need for
+var initialize_SearchTest = function() {
InspectorTest.dumpSearchResults = function(searchResults)
{
function comparator(a, b)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698