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

Unified Diff: third_party/WebKit/LayoutTests/imported/web-platform-tests/resources/testharnessreport.js

Issue 1977313003: testharnessreport: Clear BODY content regardless of existence of <div id=log> (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix unregister_service_worker() 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
Index: third_party/WebKit/LayoutTests/imported/web-platform-tests/resources/testharnessreport.js
diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/resources/testharnessreport.js b/third_party/WebKit/LayoutTests/imported/web-platform-tests/resources/testharnessreport.js
index 56dcac5451cb9946762eabcc06c1c28302f4aa6b..1cd3133e1eaa9f2ec698fad997f8dddc3ddb40f3 100644
--- a/third_party/WebKit/LayoutTests/imported/web-platform-tests/resources/testharnessreport.js
+++ b/third_party/WebKit/LayoutTests/imported/web-platform-tests/resources/testharnessreport.js
@@ -107,12 +107,11 @@
function done() {
if (self.testRunner) {
- var logDiv = document.getElementById('log');
- 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
+ if (isCSSWGTest() || isJSTest()) {
+ // Anything isn't material to the testrunner output, so
// should be hidden from the text dump.
- document.body.textContent = '';
+ if (document.body)
+ document.body.textContent = '';
}
}

Powered by Google App Engine
This is Rietveld 408576698