Title: [172803] trunk/Tools
Revision
172803
Author
[email protected]
Date
2014-08-20 12:10:38 -0700 (Wed, 20 Aug 2014)

Log Message

import-w3c-tests doesn't import .svg support files
https://bugs.webkit.org/show_bug.cgi?id=135928

Patch by Rebecca Hauck <[email protected]> on 2014-08-20
Reviewed by Bem Jones-Bey.

This patch fixes the W3C import script to not treat all
files with an xml mimetype as convertible tests, which
was causing SVG support files to not be imported.

* Scripts/webkitpy/w3c/test_importer.py:
(TestImporter.find_importable_tests):

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (172802 => 172803)


--- trunk/Tools/ChangeLog	2014-08-20 18:37:41 UTC (rev 172802)
+++ trunk/Tools/ChangeLog	2014-08-20 19:10:38 UTC (rev 172803)
@@ -1,3 +1,17 @@
+2014-08-20  Rebecca Hauck  <[email protected]>
+
+        import-w3c-tests doesn't import .svg support files
+        https://bugs.webkit.org/show_bug.cgi?id=135928
+
+        Reviewed by Bem Jones-Bey.
+
+        This patch fixes the W3C import script to not treat all
+        files with an xml mimetype as convertible tests, which
+        was causing SVG support files to not be imported.
+
+        * Scripts/webkitpy/w3c/test_importer.py:
+        (TestImporter.find_importable_tests):
+
 2014-08-19  Dan Bernstein  <[email protected]>
 
         update-webkit should not check for the presence of Apple’s Internal directory

Modified: trunk/Tools/Scripts/webkitpy/w3c/test_importer.py (172802 => 172803)


--- trunk/Tools/Scripts/webkitpy/w3c/test_importer.py	2014-08-20 18:37:41 UTC (rev 172802)
+++ trunk/Tools/Scripts/webkitpy/w3c/test_importer.py	2014-08-20 19:10:38 UTC (rev 172803)
@@ -185,7 +185,7 @@
                 fullpath = os.path.join(root, filename)
 
                 mimetype = mimetypes.guess_type(fullpath)
-                if not 'html' in str(mimetype[0]) and not 'xml' in str(mimetype[0]):
+                if not 'html' in str(mimetype[0]) and not 'application/xhtml+xml' in str(mimetype[0]) and not 'application/xml' in str(mimetype[0]):
                     copy_list.append({'src': fullpath, 'dest': filename})
                     continue
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to