Ejemplo n.º 1
0
    def watch_list(self):
        config_path = self.filesystem.dirname(self.filesystem.path_to_module('webkitpy.common.config'))
        watch_list_full_path = self.filesystem.join(config_path, 'watchlist')
        if not self.filesystem.exists(watch_list_full_path):
            raise Exception('Watch list file (%s) not found.' % watch_list_full_path)

        watch_list_contents = self.filesystem.read_text_file(watch_list_full_path)
        return WatchListParser().parse(watch_list_contents)
Ejemplo n.º 2
0
    def check(self, lines):
        def log_to_style_error(message):
            # Always report line 0 since we don't have anything better.
            self._handle_style_error(0,
                                     'watchlist/general', 5,
                                     message)

        WatchListParser(log_error=log_to_style_error).parse('\n'.join(lines))
Ejemplo n.º 3
0
 def setUp(self):
     self._watch_list_parser = WatchListParser()
 def setUp(self):
     webkitunittest.TestCase.setUp(self)
     self._watch_list_parser = WatchListParser()