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

Unified Diff: third_party/WebKit/Tools/Scripts/webkitpy/style/checkers/text_unittest.py

Issue 1839193004: Run auto-formatter (autopep8) on webkitpy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 9 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/style/checkers/text_unittest.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/style/checkers/text_unittest.py b/third_party/WebKit/Tools/Scripts/webkitpy/style/checkers/text_unittest.py
index d4c1aaa4eb9c035e60412b91eaa0579f73cf864a..a9b94336fea9b0aca24a774406b8fb6df8ac08b2 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/style/checkers/text_unittest.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/style/checkers/text_unittest.py
@@ -33,6 +33,7 @@ import unittest
import text as text_style
from text import TextChecker
+
class TextStyleTestCase(unittest.TestCase):
"""TestCase for text_style.py"""
@@ -60,13 +61,11 @@ class TextStyleTestCase(unittest.TestCase):
text_style.process_file_data('', lines, error_for_test)
self.assertTrue(self.had_error, '%s should have an error [whitespace/tab].' % lines)
-
def test_no_error(self):
"""Tests for no error cases."""
self.assertNoError([''])
self.assertNoError(['abc def', 'ggg'])
-
def test_error(self):
"""Tests for error cases."""
self.assertError(['2009-12-16\tKent Tamura\t<tkent@chromium.org>'], 1)

Powered by Google App Engine
This is Rietveld 408576698