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

Unified Diff: grit/node/misc_unittest.py

Issue 68163013: Properly substitute variables that reference paths outside SRCDIR. (Closed) Base URL: https://grit-i18n.googlecode.com/svn/trunk
Patch Set: Created 7 years, 1 month 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 | « grit/node/misc.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: grit/node/misc_unittest.py
diff --git a/grit/node/misc_unittest.py b/grit/node/misc_unittest.py
index 496d1531615608b034db864912aa72877f6a2805..b353edb0b7a889271b8e0becf91d0e7f2483e342 100644
--- a/grit/node/misc_unittest.py
+++ b/grit/node/misc_unittest.py
@@ -46,6 +46,12 @@ class GritNodeUnittest(unittest.TestCase):
self.assertEqual({},
id_dict.get('out/Release/obj/gen/devtools/devtools.grd', None))
+ src_dir, id_dict = misc._ReadFirstIdsFromFile(
+ test_resource_ids,
+ {
+ 'SHARED_INTERMEDIATE_DIR': '/outside/src_dir',
+ })
+ self.assertEqual({}, id_dict.get('devtools.grd', None))
class IfNodeUnittest(unittest.TestCase):
def testIffyness(self):
« no previous file with comments | « grit/node/misc.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698