339 # Parse reftest.list
340 self._reftest_list = {}
341 test_dirs = set()
342 for path in self._test_files:
343 test_dir = self._fs.dirname(path)
344 if test_dir in test_dirs:
345 continue
346 test_dirs.add(test_dir)
347 reftest_list_path = self._fs.join(self._port.path_from_webkit_base('LayoutTests'), test_dir, 'reftest.list')
348 if self._fs.exists(reftest_list_path):
349 for line in self._fs.read_text_file(reftest_list_path).split('\n'):
350 split_line = line.split()
351 if len(split_line) < 3:
352 continue
353 expectation_type, test_file, ref_file = split_line[0], split_line[1], split_line[2]
354 self._reftest_list[self._fs.join(test_dir, test_file)] = (expectation_type, self._fs.join(test_dir, ref_file))
355
356 print self._reftest_list
357
358