Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(83)

Side by Side Diff: third_party/WebKit/Tools/Scripts/webkitpy/common/net/layouttestresults_unittest.py

Issue 2151693006: Add "builder_name" key to example_full_results_json (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 }, 81 },
82 "skipped": 450, 82 "skipped": 450,
83 "num_regressions": 15, 83 "num_regressions": 15,
84 "layout_tests_dir": "/b/build/slave/Webkit_Mac10_5/build/src/third_party/Web Kit/LayoutTests", 84 "layout_tests_dir": "/b/build/slave/Webkit_Mac10_5/build/src/third_party/Web Kit/LayoutTests",
85 "version": 3, 85 "version": 3,
86 "num_passes": 77, 86 "num_passes": 77,
87 "has_pretty_patch": false, 87 "has_pretty_patch": false,
88 "fixable": 1220, 88 "fixable": 1220,
89 "num_flaky": 0, 89 "num_flaky": 0,
90 "chromium_revision": "1234", 90 "chromium_revision": "1234",
91 "has_wdiff": false 91 "has_wdiff": false,
92 "builder_name": "mock_builder_name"
92 });""" 93 });"""
93 94
94 def test_results_from_string(self): 95 def test_results_from_string(self):
95 self.assertIsNone(LayoutTestResults.results_from_string(None)) 96 self.assertIsNone(LayoutTestResults.results_from_string(None))
96 self.assertIsNone(LayoutTestResults.results_from_string("")) 97 self.assertIsNone(LayoutTestResults.results_from_string(""))
97 98
98 def test_was_interrupted(self): 99 def test_was_interrupted(self):
99 self.assertTrue(LayoutTestResults.results_from_string( 100 self.assertTrue(LayoutTestResults.results_from_string(
100 'ADD_RESULTS({"tests":{},"interrupted":true});').run_was_interrupted ()) 101 'ADD_RESULTS({"tests":{},"interrupted":true});').run_was_interrupted ())
101 self.assertFalse(LayoutTestResults.results_from_string( 102 self.assertFalse(LayoutTestResults.results_from_string(
(...skipping 10 matching lines...) Expand all
112 113
113 def test_unexpected_mismatch_results(self): 114 def test_unexpected_mismatch_results(self):
114 results = LayoutTestResults.results_from_string(self.example_full_result s_json) 115 results = LayoutTestResults.results_from_string(self.example_full_result s_json)
115 self.assertEqual( 116 self.assertEqual(
116 [r.test_name() for r in results.unexpected_mismatch_results()], 117 [r.test_name() for r in results.unexpected_mismatch_results()],
117 [ 118 [
118 'fast/dom/prototype-inheritance.html', 119 'fast/dom/prototype-inheritance.html',
119 'fast/dom/prototype-taco.html', 120 'fast/dom/prototype-taco.html',
120 'svg/dynamic-updates/SVGFEDropShadowElement-dom-stdDeviation-att r.html' 121 'svg/dynamic-updates/SVGFEDropShadowElement-dom-stdDeviation-att r.html'
121 ]) 122 ])
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698