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

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

Issue 2016953002: update-w3c-deps: Do not rewrite links to /resources and /common. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix a comment, fix python tests 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/Tools/Scripts/webkitpy/w3c/test_converter.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/w3c/test_converter.py b/third_party/WebKit/Tools/Scripts/webkitpy/w3c/test_converter.py
index 0bebc73a208bfc002690e71dac992a2fd0107612..01a6c6f2623aaf10249a6351643ce7d1fbb7b937 100755
--- a/third_party/WebKit/Tools/Scripts/webkitpy/w3c/test_converter.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/w3c/test_converter.py
@@ -150,21 +150,6 @@ class _W3CTestConverter(HTMLParser):
def convert_attributes_if_needed(self, tag, attrs):
converted = self.get_starttag_text()
- if tag in ('script', 'link'):
- target_attr = 'src'
- if tag != 'script':
- target_attr = 'href'
- for attr_name, attr_value in attrs:
- if attr_name == target_attr:
- new_path = re.sub('/resources/(?=testharness|idlharness|WebIDLParser)',
- self.resources_relpath + '/',
- attr_value)
- converted = re.sub(re.escape(attr_value), new_path, converted)
- new_path = re.sub('/common/vendor-prefix',
- self.resources_relpath + '/vendor-prefix',
- attr_value)
- converted = re.sub(re.escape(attr_value), new_path, converted)
-
for attr_name, attr_value in attrs:
if attr_name == 'style':
new_style = self.convert_style_data(attr_value)

Powered by Google App Engine
This is Rietveld 408576698