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

Unified Diff: third_party/WebKit/Tools/Scripts/webkitpy/w3c/test_importer.py

Issue 2020943002: update-w3c-deps: Do not modify testharness tests. (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 | « third_party/WebKit/LayoutTests/imported/wpt/webrtc/simplecall.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Tools/Scripts/webkitpy/w3c/test_importer.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/w3c/test_importer.py b/third_party/WebKit/Tools/Scripts/webkitpy/w3c/test_importer.py
index 1e3a6a9d8ebb5c4784a0f39dfd593188929159e2..f2ed1c9d1eef7aeb67952d021a29716a73c8c4fc 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/w3c/test_importer.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/w3c/test_importer.py
@@ -276,7 +276,7 @@ class TestImporter(object):
elif 'jstest' in test_info.keys():
jstests += 1
total_tests += 1
- copy_list.append({'src': fullpath, 'dest': filename})
+ copy_list.append({'src': fullpath, 'dest': filename, 'is_jstest': True})
else:
total_tests += 1
copy_list.append({'src': fullpath, 'dest': filename})
@@ -365,7 +365,7 @@ class TestImporter(object):
# Only html, xml, or css should be converted
# FIXME: Eventually, so should js when support is added for this type of conversion
mimetype = mimetypes.guess_type(orig_filepath)
- if 'html' in str(mimetype[0]) or 'xml' in str(mimetype[0]) or 'css' in str(mimetype[0]):
+ if 'is_jstest' not in file_to_copy and ('html' in str(mimetype[0]) or 'xml' in str(mimetype[0]) or 'css' in str(mimetype[0])):
converted_file = convert_for_webkit(new_path, filename=orig_filepath,
reference_support_info=reference_support_info)
« no previous file with comments | « third_party/WebKit/LayoutTests/imported/wpt/webrtc/simplecall.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698