def test_basic(self):
     expected_results = [
         test_results.TestResult("svg/dynamic-updates/SVGFEDropShadowElement-dom-stdDeviation-attr.html", [test_failures.FailureImageHashMismatch()], 0),
         test_results.TestResult("fast/dom/prototype-inheritance.html", [test_failures.FailureTextMismatch(), test_failures.FailureImageHashMismatch(), test_failures.FailureAudioMismatch()], 0),
     ]
     parsed_results = ParsedJSONResults(self._example_full_results_json)
     self.assertEqual(expected_results, parsed_results.test_results())
     self.assertTrue(parsed_results.did_exceed_test_failure_limit())
Beispiel #2
0
 def test_basic(self):
     self.maxDiff = None
     expected_results = [
         test_results.TestResult("svg/dynamic-updates/SVGFEDropShadowElement-dom-stdDeviation-attr.html", [test_failures.FailureImageHashMismatch()], 0),
         test_results.TestResult("fast/dom/prototype-inheritance.html", [test_failures.FailureTextMismatch(), test_failures.FailureImageHashMismatch(), test_failures.FailureAudioMismatch()], 0),
         test_results.TestResult("fast/dom/prototype-strawberry.html", [test_failures.FailureDocumentLeak(['file:///Volumes/Data/worker/webkit/build/LayoutTests/fast/dom/prototype-strawberry.html'])], 0),
     ]
     expected_results.sort(key=lambda result: result.test_name)
     parsed_results = ParsedJSONResults(self._example_full_results_json)
     self.assertEqual(expected_results, parsed_results.test_results())
     self.assertTrue(parsed_results.did_exceed_test_failure_limit())
Beispiel #3
0
 def results_from_string(cls, string):
     if not string:
         return None
     parsed_results = ParsedJSONResults(string)
     return cls(parsed_results.test_results(),
                parsed_results.did_exceed_test_failure_limit())
 def test_not_interrupted(self):
     parsed_results = ParsedJSONResults(self._not_interrupted_example_full_results_json)
     self.assertFalse(parsed_results.did_exceed_test_failure_limit())
 def results_from_string(cls, string):
     if not string:
         return None
     parsed_results = ParsedJSONResults(string)
     return cls(parsed_results.test_results(), parsed_results.did_exceed_test_failure_limit())