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 = ''; |
} |
} |