| OLD | NEW |
| 1 # Copyright (c) 2010, Google Inc. All rights reserved. | 1 # Copyright (c) 2010, Google Inc. All rights reserved. |
| 2 # | 2 # |
| 3 # Redistribution and use in source and binary forms, with or without | 3 # Redistribution and use in source and binary forms, with or without |
| 4 # modification, are permitted provided that the following conditions are | 4 # modification, are permitted provided that the following conditions are |
| 5 # met: | 5 # met: |
| 6 # | 6 # |
| 7 # * Redistributions of source code must retain the above copyright | 7 # * Redistributions of source code must retain the above copyright |
| 8 # notice, this list of conditions and the following disclaimer. | 8 # notice, this list of conditions and the following disclaimer. |
| 9 # * Redistributions in binary form must reproduce the above | 9 # * Redistributions in binary form must reproduce the above |
| 10 # copyright notice, this list of conditions and the following disclaimer | 10 # copyright notice, this list of conditions and the following disclaimer |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 self.assertTrue(LayoutTestResults.results_from_string( | 98 self.assertTrue(LayoutTestResults.results_from_string( |
| 99 'ADD_RESULTS({"tests":{},"interrupted":true});').run_was_interrupted
()) | 99 'ADD_RESULTS({"tests":{},"interrupted":true});').run_was_interrupted
()) |
| 100 self.assertFalse(LayoutTestResults.results_from_string( | 100 self.assertFalse(LayoutTestResults.results_from_string( |
| 101 'ADD_RESULTS({"tests":{},"interrupted":false});').run_was_interrupte
d()) | 101 'ADD_RESULTS({"tests":{},"interrupted":false});').run_was_interrupte
d()) |
| 102 | 102 |
| 103 def test_chromium_revision(self): | 103 def test_chromium_revision(self): |
| 104 self.assertEqual(LayoutTestResults.results_from_string(self.example_full
_results_json).chromium_revision(), 1234) | 104 self.assertEqual(LayoutTestResults.results_from_string(self.example_full
_results_json).chromium_revision(), 1234) |
| 105 | 105 |
| 106 def test_actual_results(self): | 106 def test_actual_results(self): |
| 107 results = LayoutTestResults.results_from_string(self.example_full_result
s_json) | 107 results = LayoutTestResults.results_from_string(self.example_full_result
s_json) |
| 108 self.assertEqual(results.actual_results("fast/dom/prototype-banana.html"
), "PASS") | 108 self.assertEqual(results.result_for_test("fast/dom/prototype-banana.html
").actual_results(), "PASS") |
| 109 self.assertEqual(results.actual_results("fast/dom/prototype-taco.html"),
"PASS TEXT") | 109 self.assertEqual(results.result_for_test("fast/dom/prototype-taco.html")
.actual_results(), "PASS TEXT") |
| 110 self.assertEqual(results.actual_results("nonexistant.html"), "") | 110 self.assertFalse(results.result_for_test("nonexistant.html")) |
| OLD | NEW |