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

Unified Diff: third_party/WebKit/LayoutTests/resources/testharnessreport.js

Issue 2639113002: testharnessreport: Remove isCSSWGTest() and isJSTest(). (Closed)
Patch Set: Created 3 years, 11 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/external/wpt/resources/testharnessreport.js ('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/resources/testharnessreport.js
diff --git a/third_party/WebKit/LayoutTests/resources/testharnessreport.js b/third_party/WebKit/LayoutTests/resources/testharnessreport.js
index ef9f0193e7aa528266b236a9bdb339caf751fc43..ec8af45ca9a5a72dc570fae29f96c5114b3d0362 100644
--- a/third_party/WebKit/LayoutTests/resources/testharnessreport.js
+++ b/third_party/WebKit/LayoutTests/resources/testharnessreport.js
@@ -76,18 +76,6 @@
return text;
}
- // If the test has a meta tag named flags and the content contains "dom",
- // then it's a CSSWG test.
- function isCSSWGTest() {
- var flags = document.querySelector('meta[name=flags]'),
- content = flags ? flags.getAttribute('content') : null;
- return content && content.match(/\bdom\b/);
- }
-
- function isJSTest() {
- return !!document.querySelector('script[src*="/resources/testharness"]');
- }
-
function isWPTManualTest() {
var path = location.pathname;
if (location.hostname == 'web-platform.test' && path.endsWith('-manual.html'))
@@ -219,12 +207,10 @@
// test.
testRunner.setDumpConsoleMessages(false);
- if (isCSSWGTest() || isJSTest()) {
- // Anything isn't material to the testrunner output, so
- // should be hidden from the text dump.
- if (output_document.body && output_document.body.tagName == 'BODY')
- output_document.body.textContent = '';
- }
+ // Anything isn't material to the testrunner output, so should
+ // be hidden from the text dump.
+ if (output_document.body && output_document.body.tagName == 'BODY')
+ output_document.body.textContent = '';
}
// Add results element to output_document.
« no previous file with comments | « third_party/WebKit/LayoutTests/external/wpt/resources/testharnessreport.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698