Chromium Code Reviews| Index: third_party/WebKit/Tools/Scripts/webkitpy/w3c/test_converter_unittest.py |
| diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/w3c/test_converter_unittest.py b/third_party/WebKit/Tools/Scripts/webkitpy/w3c/test_converter_unittest.py |
| index 3c060ff91aacce46bb128a4c651ca8612bfd6ca6..23fe506e6f82f7a63490240d2075872898ca5ddf 100644 |
| --- a/third_party/WebKit/Tools/Scripts/webkitpy/w3c/test_converter_unittest.py |
| +++ b/third_party/WebKit/Tools/Scripts/webkitpy/w3c/test_converter_unittest.py |
| @@ -33,7 +33,9 @@ from webkitpy.common.host import Host |
| from webkitpy.common.system.outputcapture import OutputCapture |
| from webkitpy.common.webkit_finder import WebKitFinder |
| from webkitpy.thirdparty.BeautifulSoup import BeautifulSoup |
| -from webkitpy.w3c.test_converter import _W3CTestConverter |
| +from webkitpy.w3c.test_converter import _W3CTestConverter, convert_for_webkit |
| +from webkitpy.common.system.systemhost_mock import MockSystemHost |
| +from webkitpy.common.system.filesystem_mock import MockFileSystem |
| DUMMY_FILENAME = 'dummy.html' |
| DUMMY_PATH = 'dummy/testharness/path' |
| @@ -310,3 +312,17 @@ CONTENT OF TEST |
| index -= 1 |
| return (test_properties, html) |
| + |
| + # Test for convert_for_webkit; determing if 'utf-16' decodes correctly |
|
qyearsley
2016/06/02 21:05:17
I think this comment (and the similar one below) i
|
| + def test_convert_for_webkit_with_non_utf8(self): |
| + files = {'/file': 'e\x87[P', |
| + '/mock-checkout/third_party/WebKit/Source/core/css/CSSProperties.in': '', } |
| + host = MockSystemHost(filesystem=MockFileSystem(files=files)) |
| + convert_for_webkit('', '/file', '', host) |
|
qyearsley
2016/06/02 21:05:17
Optionally, you could add a comment that this test
|
| + |
| + # Test for convert_for_webkit; determing if 'utf-8' decodes correctly |
| + def test_convert_for_webkit_with_utf8(self): |
| + files = {'/file': 'foo', |
| + '/mock-checkout/third_party/WebKit/Source/core/css/CSSProperties.in': '', } |
| + host = MockSystemHost(filesystem=MockFileSystem(files=files)) |
| + convert_for_webkit('', '/file', '', host) |