summaryrefslogtreecommitdiff
path: root/Tools/Scripts/webkitpy/style/patchreader_unittest.py
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/Scripts/webkitpy/style/patchreader_unittest.py')
-rw-r--r--Tools/Scripts/webkitpy/style/patchreader_unittest.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/Tools/Scripts/webkitpy/style/patchreader_unittest.py b/Tools/Scripts/webkitpy/style/patchreader_unittest.py
index b1210825b..eb26d4761 100644
--- a/Tools/Scripts/webkitpy/style/patchreader_unittest.py
+++ b/Tools/Scripts/webkitpy/style/patchreader_unittest.py
@@ -33,6 +33,7 @@
import unittest
+from webkitpy.common.system.filesystem_mock import MockFileSystem
from webkitpy.style.patchreader import PatchReader
@@ -90,3 +91,13 @@ index ef65bee..e3db70e 100644
""")
# _mock_check_file should not be called for the deletion patch.
self._assert_checked([], 1)
+
+ def test_check_patch_with_png_deletion(self):
+ fs = MockFileSystem()
+ diff_text = """Index: LayoutTests/platform/mac/foo-expected.png
+===================================================================
+Cannot display: file marked as a binary type.
+svn:mime-type = image/png
+"""
+ self._patch_checker.check(diff_text, fs)
+ self._assert_checked([], 1)