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

Unified Diff: Source/build/scripts/in_file_unittest.py

Issue 397513003: InFile.load_from_files should try to load only '.in' files (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 5 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 | « Source/build/scripts/in_file.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/build/scripts/in_file_unittest.py
diff --git a/Source/build/scripts/in_file_unittest.py b/Source/build/scripts/in_file_unittest.py
index e065d442987150afe98b0910ff3a814f53e5fbae..5b9d190903ca15ff7ccfcc6b4f8a55d0a83a13a5 100755
--- a/Source/build/scripts/in_file_unittest.py
+++ b/Source/build/scripts/in_file_unittest.py
@@ -72,6 +72,17 @@ name2
}
self.assertEquals(in_file.parameters, expected_parameters)
+ def test_assertion_for_non_in_files(self):
+ in_files = ['some_sample_file.json']
+ assertion_thrown = False
+ try:
+ in_file = InFile.load_from_files(in_files, None, None, None)
+ except AssertionError:
+ assertion_thrown = True
+ except:
+ pass
+ self.assertTrue(assertion_thrown)
+
if __name__ == "__main__":
unittest.main()
« no previous file with comments | « Source/build/scripts/in_file.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698