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

Unified Diff: third_party/WebKit/LayoutTests/fast/forms/associatedFormControls-leak-nodes.html

Issue 1965753002: Try running GC twice to fix flaky associatedFormControls-leak-nodes.html (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 7 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 | « third_party/WebKit/LayoutTests/TestExpectations ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/forms/associatedFormControls-leak-nodes.html
diff --git a/third_party/WebKit/LayoutTests/fast/forms/associatedFormControls-leak-nodes.html b/third_party/WebKit/LayoutTests/fast/forms/associatedFormControls-leak-nodes.html
index 40612b1c2fff41b453594618acc6694dc6d81454..f0743c3b91a9728b95449c09eca28e6ee4ae7ccf 100644
--- a/third_party/WebKit/LayoutTests/fast/forms/associatedFormControls-leak-nodes.html
+++ b/third_party/WebKit/LayoutTests/fast/forms/associatedFormControls-leak-nodes.html
@@ -12,20 +12,23 @@ if (!window.internals) {
window.jsTestIsAsync = true;
var documentsBefore;
var documentsAfter;
+ // FIXME(keishi): Calling asyncGC twice to fix flakiness.
asyncGC(function() {
- documentsBefore = window.internals.numberOfLiveDocuments();
+ asyncGC(function() {
+ documentsBefore = window.internals.numberOfLiveDocuments();
- var frame = document.getElementById('frame');
- frame.contentDocument.body.innerHTML = '<form></form>';
- document.body.removeChild(frame);
- frame = null;
+ var frame = document.getElementById('frame');
+ frame.contentDocument.body.innerHTML = '<form></form>';
+ document.body.removeChild(frame);
+ frame = null;
- asyncGC(function() {
- documentsAfter = window.internals.numberOfLiveDocuments();
+ asyncGC(function() {
+ documentsAfter = window.internals.numberOfLiveDocuments();
- // -1 is from removing frame itself.
- shouldBe('documentsBefore - 1', 'documentsAfter');
- finishJSTest();
+ // -1 is from removing frame itself.
+ shouldBe('documentsBefore - 1', 'documentsAfter');
+ finishJSTest();
+ });
});
});
}
« no previous file with comments | « third_party/WebKit/LayoutTests/TestExpectations ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698