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

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

Issue 2715553002: Change all relative imports in webkitpy to absolute imports. (Closed)
Patch Set: Created 3 years, 10 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 a9b94336fea9b0aca24a774406b8fb6df8ac08b2..beeffb6bfd37b2afff5294384d7eb8332215a518 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
@@ -26,12 +26,9 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-"""Unit test for text_style.py."""
-
import unittest
-import text as text_style
-from text import TextChecker
+from webkitpy.style.checkers.text import process_file_data, TextChecker
class TextStyleTestCase(unittest.TestCase):
@@ -45,7 +42,7 @@ class TextStyleTestCase(unittest.TestCase):
"""Records if an error occurs."""
self.had_error = True
- text_style.process_file_data('', lines, error_for_test)
+ process_file_data('', lines, error_for_test)
self.assertFalse(self.had_error, '%s should not have any errors.' % lines)
def assertError(self, lines, expected_line_number):
@@ -58,7 +55,7 @@ class TextStyleTestCase(unittest.TestCase):
self.assertEqual('whitespace/tab', category)
self.had_error = True
- text_style.process_file_data('', lines, error_for_test)
+ 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):

Powered by Google App Engine
This is Rietveld 408576698