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

Side by Side Diff: third_party/WebKit/Tools/Scripts/webkitpy/w3c/local_wpt_unittest.py

Issue 2544173002: Skip commits that don't generate a patch + fixes to get export working (Closed)
Patch Set: Merge ChromiumWPT functionality into TestExporter, expose exportable_commits Created 4 years 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 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import unittest 5 import unittest
6 from webkitpy.w3c.local_wpt import LocalWPT 6 from webkitpy.w3c.local_wpt import LocalWPT
7 from webkitpy.common.host_mock import MockHost 7 from webkitpy.common.host_mock import MockHost
8 from webkitpy.common.system.executive_mock import MockExecutive2 8 from webkitpy.common.system.executive_mock import MockExecutive2
9 from webkitpy.common.system.filesystem_mock import MockFileSystem 9 from webkitpy.common.system.filesystem_mock import MockFileSystem
10 10
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 commit = local_wpt.most_recent_chromium_commit() 77 commit = local_wpt.most_recent_chromium_commit()
78 self.assertEqual(commit, (None, None)) 78 self.assertEqual(commit, (None, None))
79 79
80 def test_create_branch_with_patch(self): 80 def test_create_branch_with_patch(self):
81 host = MockHost() 81 host = MockHost()
82 host.filesystem = MockFileSystem() 82 host.filesystem = MockFileSystem()
83 83
84 local_wpt = LocalWPT(host) 84 local_wpt = LocalWPT(host)
85 85
86 local_branch_name = local_wpt.create_branch_with_patch('message', 'patch ') 86 local_branch_name = local_wpt.create_branch_with_patch('message', 'patch ')
87 self.assertEqual(len(host.executive.calls), 9) 87 self.assertEqual(len(host.executive.calls), 11)
88 self.assertEqual(local_branch_name, 'chromium-export-try') 88 self.assertEqual(local_branch_name, 'chromium-export-try')
89 # TODO(jeffcarp): Add more specific assertions 89 # TODO(jeffcarp): Add more specific assertions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698