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

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

Issue 2409343003: In rebaseline-cl, also rebaseline tests with MISSING results. (Closed)
Patch Set: Created 4 years, 2 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
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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 }, 58 },
59 "prototype-strawberry.html": { 59 "prototype-strawberry.html": {
60 "expected": "PASS", 60 "expected": "PASS",
61 "actual": "IMAGE PASS", 61 "actual": "IMAGE PASS",
62 "is_unexpected": true 62 "is_unexpected": true
63 }, 63 },
64 "prototype-crashy.html": { 64 "prototype-crashy.html": {
65 "expected": "PASS", 65 "expected": "PASS",
66 "actual": "CRASH", 66 "actual": "CRASH",
67 "is_unexpected": true 67 "is_unexpected": true
68 },
69 "prototype-newtest.html": {
70 "expected": "PASS",
71 "actual": "MISSING",
72 "is_unexpected": true,
73 "is_missing_text": true
68 } 74 }
69 } 75 }
70 }, 76 },
71 "svg": { 77 "svg": {
72 "dynamic-updates": { 78 "dynamic-updates": {
73 "SVGFEDropShadowElement-dom-stdDeviation-attr.html": { 79 "SVGFEDropShadowElement-dom-stdDeviation-attr.html": {
74 "expected": "PASS", 80 "expected": "PASS",
75 "actual": "IMAGE", 81 "actual": "IMAGE",
76 "has_stderr": true, 82 "has_stderr": true,
77 "is_unexpected": true 83 "is_unexpected": true
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 119
114 def test_unexpected_mismatch_results(self): 120 def test_unexpected_mismatch_results(self):
115 results = LayoutTestResults.results_from_string(self.example_full_result s_json) 121 results = LayoutTestResults.results_from_string(self.example_full_result s_json)
116 self.assertEqual( 122 self.assertEqual(
117 [r.test_name() for r in results.unexpected_mismatch_results()], 123 [r.test_name() for r in results.unexpected_mismatch_results()],
118 [ 124 [
119 'fast/dom/prototype-inheritance.html', 125 'fast/dom/prototype-inheritance.html',
120 'fast/dom/prototype-taco.html', 126 'fast/dom/prototype-taco.html',
121 'svg/dynamic-updates/SVGFEDropShadowElement-dom-stdDeviation-att r.html' 127 'svg/dynamic-updates/SVGFEDropShadowElement-dom-stdDeviation-att r.html'
122 ]) 128 ])
129
130 def test_missing_baseline(self):
131 results = LayoutTestResults.results_from_string(self.example_full_result s_json)
132 missing_results = results.missing_results()
133 self.assertEqual(len(missing_results), 1)
134 self.assertEqual(missing_results[0].test_name(), "fast/dom/prototype-new test.html")
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698