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

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

Issue 2779053002: Ignore OWNERS files during external/wpt import and export (Closed)
Patch Set: Addressed comments Created 3 years, 9 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/w3c/test_importer.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/w3c/test_importer_unittest.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/w3c/test_importer_unittest.py b/third_party/WebKit/Tools/Scripts/webkitpy/w3c/test_importer_unittest.py
index 85a71060e2f75583756f67bfb413bba00262b983..ec4b84a8539db7ea7368055751f7f84dfc118214 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/w3c/test_importer_unittest.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/w3c/test_importer_unittest.py
@@ -206,3 +206,17 @@ class TestImporterTest(LoggingTestCase):
self.assertFalse(host.filesystem.exists(dest_path + '/b-expected.txt'))
self.assertTrue(host.filesystem.exists(dest_path + '/b.x-expected.txt'))
self.assertTrue(host.filesystem.exists(dest_path + '/b.x.html'))
+
+ def test_keeps_owners_files_and_baselines(self):
+ host = MockHost()
+ dest_path = '/mock-checkout/third_party/WebKit/LayoutTests/external/wpt'
+ host.filesystem.write_text_file(dest_path + '/foo-test.html', '')
+ host.filesystem.write_text_file(dest_path + '/foo-test-expected.txt', '')
+ host.filesystem.write_text_file(dest_path + '/OWNERS', '')
+ host.filesystem.write_text_file(dest_path + '/bar/baz/OWNERS', '')
+ importer = TestImporter(host)
+ importer._clear_out_dest_path(dest_path)
+ self.assertFalse(host.filesystem.exists(dest_path + '/foo-test.html'))
+ self.assertTrue(host.filesystem.exists(dest_path + '/foo-test-expected.txt'))
+ self.assertTrue(host.filesystem.exists(dest_path + '/OWNERS'))
+ self.assertTrue(host.filesystem.exists(dest_path + '/bar/baz/OWNERS'))
« no previous file with comments | « third_party/WebKit/Tools/Scripts/webkitpy/w3c/test_importer.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698