| Index: third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/models/testharness_results_unittest.py
|
| diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/models/testharness_results_unittest.py b/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/models/testharness_results_unittest.py
|
| index 160f09174483d517773e19fb41e1e2e5c513ef89..7cb22aed087f23f48c9c2e0f715da19f4d27b766 100644
|
| --- a/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/models/testharness_results_unittest.py
|
| +++ b/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/models/testharness_results_unittest.py
|
| @@ -9,6 +9,26 @@ from webkitpy.layout_tests.models import testharness_results
|
|
|
| class TestHarnessResultCheckerTest(unittest.TestCase):
|
|
|
| + # TODO(qyearsley): Reformat this unit test and split up test methods to improve readability.
|
| +
|
| + def is_all_pass_testharness_result(self):
|
| + test_data = [
|
| + {
|
| + 'content': 'This is a testharness.js-based test.\nCONSOLE WARNING: This is a warning.\nTest ran to completion.',
|
| + 'result': False
|
| + },
|
| + {
|
| + 'content': 'This is a testharness.js-based test.\n PASS: foo bar \n Harness: the test ran to completion.',
|
| + 'result': True
|
| + },
|
| + {
|
| + 'content': 'This is a testharness.js-based test.\n PASS: foo bar \nFAIL \n Harness: the test ran to completion.',
|
| + 'result': False
|
| + },
|
| + ]
|
| + for data in test_data:
|
| + self.assertEqual(data['result'], testharness_results.is_all_pass_testharness_result(data['content']))
|
| +
|
| def test_is_testharness_output(self):
|
| test_data = [
|
| {
|
|
|