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

Unified Diff: third_party/WebKit/Tools/Scripts/webkitpy/w3c/directory_owners_extractor_unittest.py

Issue 2684423004: WPT Auto-import: fix for owner list in import CLs. (Closed)
Patch Set: Created 3 years, 10 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
Index: third_party/WebKit/Tools/Scripts/webkitpy/w3c/directory_owners_extractor_unittest.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/w3c/directory_owners_extractor_unittest.py b/third_party/WebKit/Tools/Scripts/webkitpy/w3c/directory_owners_extractor_unittest.py
index 189570e8a2d93488f403d970f8a5c5c3b9e2cfdd..3fbfc496cb929d59cb521e41e8b42cbde2affd4b 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/w3c/directory_owners_extractor_unittest.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/w3c/directory_owners_extractor_unittest.py
@@ -39,17 +39,22 @@ class DirectoryOwnersExtractorTest(unittest.TestCase):
self.extractor.owner_map = {
'external/wpt/foo': ['a@chromium.org'],
'external/wpt/bar': ['b@chromium.org'],
+ 'external/wpt/baz': ['a@chromium.org'],
}
self.filesystem.files = {
'/mock-checkout/third_party/WebKit/LayoutTests/external/wpt/foo/x/y.html': '',
'/mock-checkout/third_party/WebKit/LayoutTests/external/wpt/bar/x/y.html': '',
+ '/mock-checkout/third_party/WebKit/LayoutTests/external/wpt/baz/x/y.html': '',
'/mock-checkout/third_party/WebKit/LayoutTests/external/wpt/quux/x/y.html': '',
}
changed_files = [
'third_party/WebKit/LayoutTests/external/wpt/foo/x/y.html',
+ 'third_party/WebKit/LayoutTests/external/wpt/baz/x/y.html',
'third_party/WebKit/LayoutTests/external/wpt/quux/x/y.html',
]
- self.assertEqual(self.extractor.list_owners(changed_files), {'a@chromium.org': 'external/wpt/foo'})
+ self.assertEqual(
+ self.extractor.list_owners(changed_files),
+ {'a@chromium.org': ['external/wpt/foo', 'external/wpt/baz']})
def test_extract_owner_positive_cases(self):
self.assertEqual(self.extractor.extract_owners('## Owners: foo@chromium.org'), ['foo@chromium.org'])

Powered by Google App Engine
This is Rietveld 408576698