def test_same_extra_png_for_reftest(self):
     x = ResultDigest(
         self.fs, '/others/reftest-expected.png', is_reftest=True)
     y = ResultDigest(
         self.fs, '/others/reftest2-expected.png', is_reftest=True)
     self.assertTrue(x == y)
     self.assertFalse(x != y)
예제 #2
0
 def test_extra_png_for_reftest_result(self):
     self.assertFalse(
         ResultDigest(self.fs,
                      '/others/something-expected.png').is_extra_result)
     self.assertTrue(
         ResultDigest(self.fs,
                      '/others/reftest-expected.png',
                      is_reftest=True).is_extra_result)
예제 #3
0
 def test_implicit_all_pass(self):
     # Implicit all-PASS should equal to any all-PASS but not failures.
     implicit = ResultDigest(None, None)
     self.assertTrue(
         implicit == ResultDigest(self.fs, '/all-pass/foo-expected.txt'))
     self.assertTrue(
         implicit == ResultDigest(self.fs, '/all-pass/bar-expected.txt'))
     self.assertFalse(
         implicit == ResultDigest(self.fs, '/failures/baz-expected.txt'))
 def test_test_all_pass_testharness_result(self):
     self.assertTrue(ResultDigest.test_all_pass_testharness_result(
         self.fs, '/all-pass/foo-expected.txt'))
     self.assertTrue(ResultDigest.test_all_pass_testharness_result(
         self.fs, '/all-pass/bar-expected.txt'))
     self.assertFalse(ResultDigest.test_all_pass_testharness_result(
         self.fs, '/failures/baz-expected.txt'))
     self.assertFalse(ResultDigest.test_all_pass_testharness_result(
         self.fs, '/others/something-expected.png'))
예제 #5
0
 def test_empty_result(self):
     self.assertFalse(
         ResultDigest(self.fs,
                      '/others/something-expected.png').is_extra_result)
     self.assertTrue(
         ResultDigest(self.fs,
                      '/others/empty-expected.txt').is_extra_result)
     self.assertTrue(
         ResultDigest(self.fs,
                      '/others/empty-expected.png').is_extra_result)
예제 #6
0
 def test_all_pass_testharness_result(self):
     self.assertTrue(
         ResultDigest(self.fs,
                      '/all-pass/foo-expected.txt').is_extra_result)
     self.assertTrue(
         ResultDigest(self.fs,
                      '/all-pass/bar-expected.txt').is_extra_result)
     self.assertFalse(
         ResultDigest(self.fs,
                      '/failures/baz-expected.txt').is_extra_result)
예제 #7
0
 def test_implicit_extra_result(self):
     # Implicit empty equal to any extra result but not failures.
     implicit = ResultDigest(None, None)
     self.assertTrue(
         implicit == ResultDigest(self.fs, '/all-pass/foo-expected.txt'))
     self.assertTrue(
         implicit == ResultDigest(self.fs, '/all-pass/bar-expected.txt'))
     self.assertFalse(
         implicit == ResultDigest(self.fs, '/failures/baz-expected.txt'))
     self.assertTrue(implicit == ResultDigest(
         self.fs, '/others/reftest-expected.png', is_reftest=True))
예제 #8
0
 def test_different_all_pass_results(self):
     x = ResultDigest(self.fs, '/all-pass/foo-expected.txt')
     y = ResultDigest(self.fs, '/all-pass/bar-expected.txt')
     self.assertTrue(x != y)
     self.assertFalse(x == y)
예제 #9
0
 def test_non_extra_result(self):
     self.assertFalse(
         ResultDigest(self.fs,
                      '/others/something-expected.png').is_extra_result)