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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/gc-dom-tree-lifetime.html

Issue 2025773002: Remove node count checks from fast/dom/gc-dom-tree-lifetime.html (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « no previous file | third_party/WebKit/LayoutTests/fast/dom/gc-dom-tree-lifetime-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/dom/gc-dom-tree-lifetime.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/gc-dom-tree-lifetime.html b/third_party/WebKit/LayoutTests/fast/dom/gc-dom-tree-lifetime.html
index 06f1420ab812606f8c6638dfeb5dc71bfde89e92..4d4281476c74c126277416b0a7dce2348cc0a276 100644
--- a/third_party/WebKit/LayoutTests/fast/dom/gc-dom-tree-lifetime.html
+++ b/third_party/WebKit/LayoutTests/fast/dom/gc-dom-tree-lifetime.html
@@ -64,22 +64,11 @@ testCases.forEach(function (test) {
divX = document.getElementById(test[0]);
divY = document.getElementById(test[1]);
divZ = document.getElementById(test[2]);
- if (window.internals)
- prevNodes = window.internals.numberOfLiveNodes();
+
rootDiv.innerHTML = "";
divX = null;
divY = null;
divZ = null;
- gc();
- if (window.internals) {
- // If all the Node objects in testHtml are successfully destructed,
- // at least 9 <div>s objects will be removed.
- // (Actually, since testHtml rendering requires more than 9 Node objects.)
- if (window.internals.numberOfLiveNodes() <= prevNodes - 9)
- testPassed("All <div> objects in a DOM tree are successfully destructed.");
- else
- testFailed("<div> objects in a DOM tree are not destructed.");
- }
});
function checkParentAndChildAlive(div, name) {
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/dom/gc-dom-tree-lifetime-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698