third_party/blink/tools/blinkpy/style/checkers/common_unittest.py
def assert_carriage_return(self, input_lines, expected_lines, error_lines):
        """Process the given line and assert that the result is correct."""
        handle_style_error = self._mock_style_error_handler

        checker = CarriageReturnChecker(handle_style_error)
        output_lines = checker.check(input_lines)

        # Check both the return value and error messages.
        self.assertEqual(output_lines, expected_lines)

        expected_errors = [(line_number, self._category, self._confidence,
                            self._expected_message)
                           for line_number in error_lines]
        self.assertEqual(self._style_errors, expected_errors)
Process the given line and assert that the result is correct.
Process the given line and assert that the result is correct.
Process the given line and assert that the result is correct .
def assert_carriage_return(self, input_lines, expected_lines, error_lines):
        handle_style_error = self._mock_style_error_handler
        checker = CarriageReturnChecker(handle_style_error)
        output_lines = checker.check(input_lines)
        self.assertEqual(output_lines, expected_lines)
        expected_errors = [(line_number, self._category, self._confidence,
                            self._expected_message)
                           for line_number in error_lines]
        self.assertEqual(self._style_errors, expected_errors)
def assert_carriage_return ( self , input_lines , expected_lines , error_lines ) : handle_style_error = self . _mock_style_error_handler checker = CarriageReturnChecker ( handle_style_error ) output_lines = checker . check ( input_lines ) self . assertEqual ( output_lines , expected_lines ) expected_errors = [ ( line_number , self . _category , self . _confidence , self . _expected_message ) for line_number in error_lines ] self . assertEqual ( self . _style_errors , expected_errors )
Process the given line and assert that the result is correct.
Process the given line and assert that the result is correct .
"""Process the given line and assert that the result is correct.""" # Check both the return value and error messages.
self
input_lines
expected_lines
error_lines