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

Unified Diff: third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline_unittest.py

Issue 2803143002: Support filling in baselines from other platforms in rebaseline-cl. (Closed)
Patch Set: Undo some changes Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline_cl_unittest.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline_unittest.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline_unittest.py b/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline_unittest.py
index c43bcad2b1d5cefc7d2b55e8186c17599d68721f..f63b28eae004bd0861a5a1b9bda737aaf9ae729e 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline_unittest.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline_unittest.py
@@ -1187,3 +1187,15 @@ class TestBaselineSetTest(unittest.TestCase):
('<TestBaselineSet with:\n'
' a/x.html: Build(builder_name=\'MOCK Mac10.12\', build_number=None), test-mac-mac10.12\n'
' a/x.html: Build(builder_name=\'MOCK Win10\', build_number=None), test-win-win10>'))
+
+ def test_getters(self):
+ test_baseline_set = TestBaselineSet(host=self.host)
+ test_baseline_set.add('a/x.html', Build('MOCK Mac10.12'))
+ test_baseline_set.add('a/x.html', Build('MOCK Win10'))
+ self.assertEqual(test_baseline_set.test_prefixes(), ['a/x.html'])
+ self.assertEqual(
+ test_baseline_set.build_port_pairs('a/x.html'),
+ [
+ (Build(builder_name='MOCK Mac10.12'), 'test-mac-mac10.12'),
+ (Build(builder_name='MOCK Win10'), 'test-win-win10')
+ ])
« no previous file with comments | « third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/rebaseline_cl_unittest.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698