third_party/blink/tools/blinkpy/web_tests/models/test_expectations.py
def commit_changes(self):
        """Writes to the expectations files any modifications made
        through the remove_expectations or add_expectations member
        methods"""
        for path in self._expectations_dict:
            exp_lines = self._reset_lines(path)
            new_content = '\n'.join(
                [e.to_string() for e in exp_lines]) + '\n'

            self._expectations_dict[path] = new_content
            self._expectation_file_linenos[path] = set()

            for lineno, exp in enumerate(exp_lines, 1):
                exp.lineno = lineno
                if not isinstance(exp, _NotExpectation):
                    self._expectation_file_linenos[path].add(lineno)

            self._port.host.filesystem.write_text_file(path, new_content)
Writes to the expectations files any modifications made
        through the remove_expectations or add_expectations member
        methods
Writes to the expectations files any modifications made
through the remove_expectations or add_expectations member
methods
Writes to the expectations files any modifications made through the remove_expectations or add_expectations member methods
def commit_changes(self):
        for path in self._expectations_dict:
            exp_lines = self._reset_lines(path)
            new_content = '\n'.join(
                [e.to_string() for e in exp_lines]) + '\n'
            self._expectations_dict[path] = new_content
            self._expectation_file_linenos[path] = set()
            for lineno, exp in enumerate(exp_lines, 1):
                exp.lineno = lineno
                if not isinstance(exp, _NotExpectation):
                    self._expectation_file_linenos[path].add(lineno)
            self._port.host.filesystem.write_text_file(path, new_content)
def commit_changes ( self ) : for path in self . _expectations_dict : exp_lines = self . _reset_lines ( path ) new_content = '\n' . join ( [ e . to_string ( ) for e in exp_lines ] ) + '\n' self . _expectations_dict [ path ] = new_content self . _expectation_file_linenos [ path ] = set ( ) for lineno , exp in enumerate ( exp_lines , 1 ) : exp . lineno = lineno if not isinstance ( exp , _NotExpectation ) : self . _expectation_file_linenos [ path ] . add ( lineno ) self . _port . host . filesystem . write_text_file ( path , new_content )
Writes to the expectations files any modifications made
through the remove_expectations or add_expectations member
methods
Writes to the expectations files any modifications made through the remove_expectations or add_expectations member methods
"""Writes to the expectations files any modifications made
        through the remove_expectations or add_expectations member
        methods"""
self