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

Unified Diff: third_party/WebKit/Tools/Scripts/webkitpy/common/system/filesystem_unittest.py

Issue 2896423004: webkitpy: Remove contents of directory. (Closed)
Patch Set: Fixing tests. Created 3 years, 7 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/common/system/filesystem_mock.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/common/system/filesystem_unittest.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/common/system/filesystem_unittest.py b/third_party/WebKit/Tools/Scripts/webkitpy/common/system/filesystem_unittest.py
index 9318ca031f0753a3aafdb8ba25dbfb95a85052c4..858c47c8549a447eecd81df4bb3d7d9380bdf4bf 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/common/system/filesystem_unittest.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/common/system/filesystem_unittest.py
@@ -119,6 +119,15 @@ class GenericFileSystemTests(object):
self.assertFalse(self.fs.exists('foodir'))
self.assertFalse(self.fs.exists(self.fs.join('foodir', 'baz')))
+ def test_remove_contents(self):
+ self.fs.chdir(self.generic_test_dir)
+
+ self.assertTrue(self.fs.exists('foodir'))
+ self.assertTrue(self.fs.exists(self.fs.join('foodir', 'baz')))
+ self.assertTrue(self.fs.remove_contents('foodir'))
+ self.assertTrue(self.fs.exists('foodir'))
+ self.assertFalse(self.fs.exists(self.fs.join('foodir', 'baz')))
+
def test_copytree(self):
self.fs.chdir(self.generic_test_dir)
self.fs.copytree('foodir/', 'bardir/')
« no previous file with comments | « third_party/WebKit/Tools/Scripts/webkitpy/common/system/filesystem_mock.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698