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

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

Issue 2523473004: In test_parser, skip files with non-ascii tags, and emit an error. (Closed)
Patch Set: l Created 4 years, 1 month 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/Tools/Scripts/webkitpy/w3c/test_parser.py ('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_parser_unittest.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/w3c/test_parser_unittest.py b/third_party/WebKit/Tools/Scripts/webkitpy/w3c/test_parser_unittest.py
index f4b1686454d0842d4ccb88c3fcc6a61cd943377b..04d965447e143fe661e58c75c24bdd4817afdeb9 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/w3c/test_parser_unittest.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/w3c/test_parser_unittest.py
@@ -223,3 +223,10 @@ CONTENT OF TEST
self.assertEqual(parser.filename, 'some/bogus/path.html')
self.assertIsNone(parser.test_doc)
self.assertIsNone(parser.ref_doc)
+
+ def test_load_file_with_non_ascii_tags(self):
+ host = MockHost()
+ host.filesystem.files['/some/path.xml'] = '<d\xc3\x98dd></d\xc3\x98dd>'
+ parser = TestParser('/some/path.xml', host)
+ self.assertEqual(parser.filename, '/some/path.xml')
+ self.assertIsNone(parser.test_doc)
« no previous file with comments | « third_party/WebKit/Tools/Scripts/webkitpy/w3c/test_parser.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698