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

Unified Diff: LayoutTests/resources/testharnessreport.js

Issue 1332523002: testharnessreport: Hide elements in tests by removing them from the document tree, instead of visibi (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 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 | « LayoutTests/imported/web-platform-tests/resources/testharnessreport.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/resources/testharnessreport.js
diff --git a/LayoutTests/resources/testharnessreport.js b/LayoutTests/resources/testharnessreport.js
index 86873d816e61c752327b272df1fe76d378a4aae1..b05aeb333a0145c91eaa359fd9eeb2589c3f21f5 100644
--- a/LayoutTests/resources/testharnessreport.js
+++ b/LayoutTests/resources/testharnessreport.js
@@ -103,14 +103,7 @@ add_completion_callback(function (tests, harness_status) {
if ((isCSSWGTest() || isJSTest()) && logDiv) {
// Assume it's a CSSWG style test, and anything other than the log div isn't
// material to the testrunner output, so should be hidden from the text dump
- var next = null;
- for (var child = document.body.firstChild; child; child = next) {
- next = child.nextSibling;
- if (child.nodeType == Node.ELEMENT_NODE)
- child.style.visibility = "hidden";
- else if (child.nodeType == Node.TEXT_NODE)
- document.body.removeChild(child);
- }
+ document.body.textContent = '';
}
}
« no previous file with comments | « LayoutTests/imported/web-platform-tests/resources/testharnessreport.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698