Exemplo n.º 1
0
 def test_find_no_paths_specified(self):
     port = base.Port()
     layout_tests_dir = port.layout_tests_dir()
     port.layout_tests_dir = lambda: os.path.join(layout_tests_dir,
                                                  'fast', 'html')
     tests = test_files.find(port, [])
     self.assertNotEqual(tests, 0)
 def test_find_with_skipped_directories_2(self):
     port = test.TestPort()
     tests = test_files.find(port, ['userscripts/resources'])
     self.assertEqual(tests, set([]))
 def test_find_glob(self):
     port = test.TestPort()
     tests = test_files.find(port, ['failures/expected/im*'])
     self.assertEqual(len(tests), 2)
 def test_find_one_test(self):
     port = test.TestPort()
     tests = test_files.find(port, ['failures/expected/image.html'])
     self.assertEqual(len(tests), 1)
 def test_find_no_paths_specified(self):
     port = test.TestPort()
     layout_tests_dir = port.layout_tests_dir()
     tests = test_files.find(port, [])
     self.assertNotEqual(len(tests), 0)
Exemplo n.º 6
0
 def test_find_with_skipped_directories_2(self):
     port = base.Port()
     tests = test_files.find(port, ['userscripts/resources'])
     self.assertEqual(tests, set([]))
Exemplo n.º 7
0
 def test_find_glob(self):
     port = base.Port()
     tests = test_files.find(port, ['fast/html/key*'])
     self.assertEqual(len(tests), 1)
Exemplo n.º 8
0
 def test_find_one_test(self):
     port = base.Port()
     # This is just a test picked at random but known to exist.
     tests = test_files.find(port, ['fast/html/keygen.html'])
     self.assertEqual(len(tests), 1)
 def test_find_glob(self):
     port = test.TestPort()
     tests = test_files.find(port, ['failures/expected/im*'])
     self.assertEqual(len(tests), 2)
Exemplo n.º 10
0
 def test_find_one_test(self):
     port = test.TestPort()
     tests = test_files.find(port, ['failures/expected/image.html'])
     self.assertEqual(len(tests), 1)
Exemplo n.º 11
0
 def test_find_no_paths_specified(self):
     port = test.TestPort()
     layout_tests_dir = port.layout_tests_dir()
     tests = test_files.find(port, [])
     self.assertNotEqual(len(tests), 0)
Exemplo n.º 12
0
 def tests(self, paths):
     """Return the list of tests found (relative to layout_tests_dir()."""
     return test_files.find(self, paths)