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

Unified Diff: third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/models/test_expectations_unittest.py

Issue 2341173002: Move tokenize_line method from TestExpectationParser to TestExpectationLine. (Closed)
Patch Set: Created 4 years, 3 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/layout_tests/models/test_expectations_unittest.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/models/test_expectations_unittest.py b/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/models/test_expectations_unittest.py
index 5dbff14fb2249e381c4ee9643d372fc81c7d7916..2bc9cd994435fae57b4a4f48fabd7d63435b65e1 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/models/test_expectations_unittest.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/models/test_expectations_unittest.py
@@ -463,7 +463,7 @@ class ExpectationSyntaxTests(Base):
expectations = expectations or []
warnings = warnings or []
line_number = '1'
- expectation_line = TestExpectationParser._tokenize_line(filename, line, line_number)
+ expectation_line = TestExpectationLine.tokenize_line(filename, line, line_number)
self.assertEqual(expectation_line.warnings, warnings)
self.assertEqual(expectation_line.name, name)
self.assertEqual(expectation_line.filename, filename)
@@ -904,7 +904,7 @@ class TestExpectationSerializationTests(unittest.TestCase):
unittest.TestCase.__init__(self, testFunc)
def _tokenize(self, line):
- return TestExpectationParser._tokenize_line('path', line, 0)
+ return TestExpectationLine.tokenize_line('path', line, 0)
def assert_round_trip(self, in_string, expected_string=None):
expectation = self._tokenize(in_string)

Powered by Google App Engine
This is Rietveld 408576698