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

Unified Diff: tools/grit/grit/gather/admin_template_unittest.py

Issue 7269003: Change grit to depend on test data in the main repository. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 6 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 | « tools/grit/grit/format/rc_unittest.py ('k') | tools/grit/grit/gather/rc_unittest.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/grit/grit/gather/admin_template_unittest.py
diff --git a/tools/grit/grit/gather/admin_template_unittest.py b/tools/grit/grit/gather/admin_template_unittest.py
index 1889b7282041066e96bf74147a1eacd30422140e..287b73f8993d626e144348facc7e2e38ea4fb780 100644
--- a/tools/grit/grit/gather/admin_template_unittest.py
+++ b/tools/grit/grit/gather/admin_template_unittest.py
@@ -49,11 +49,11 @@ class AdmGathererUnittest(unittest.TestCase):
gatherer.Parse)
_TRANSLATABLES_FROM_FILE = (
- 'Google', 'Google Desktop Search', 'Preferences',
- 'Controls Google Deskop Search preferences',
+ 'Google', 'Google Desktop', 'Preferences',
+ 'Controls Google Desktop preferences',
'Indexing and Capture Control',
- 'Controls what files, web pages, and other content will be indexed by Google Desktop Search.',
- 'Prevent indexing of e-mail',
+ 'Controls what files, web pages, and other content will be indexed by Google Desktop.',
+ 'Prevent indexing of email',
# there are lots more but we don't check any further
)
@@ -64,7 +64,7 @@ class AdmGathererUnittest(unittest.TestCase):
self.failUnless(text == self._TRANSLATABLES_FROM_FILE[ix])
def testFromFile(self):
- fname = util.PathFromRoot('grit/test/data/GoogleDesktopSearch.adm')
+ fname = util.PathFromRoot('grit/testdata/GoogleDesktop.adm')
gatherer = admin_template.AdmGatherer.FromFile(fname)
gatherer.Parse()
cliques = gatherer.GetCliques()
@@ -76,7 +76,7 @@ class AdmGathererUnittest(unittest.TestCase):
<release seq="3">
<structures>
<structure type="admin_template" name="IDAT_GOOGLE_DESKTOP_SEARCH"
- file="GoogleDesktopSearch.adm" exclude_from_rc="true" />
+ file="GoogleDesktop.adm" exclude_from_rc="true" />
<structure type="txt" name="BINGOBONGO"
file="README.txt" exclude_from_rc="true" />
</structures>
@@ -84,7 +84,7 @@ class AdmGathererUnittest(unittest.TestCase):
<outputs>
<output filename="de_res.rc" type="rc_all" lang="de" />
</outputs>
- </grit>'''), util.PathFromRoot('grit/test/data'))
+ </grit>'''), util.PathFromRoot('grit/testdata'))
grd.RunGatherers(recursive=True)
return grd
@@ -104,7 +104,7 @@ class AdmGathererUnittest(unittest.TestCase):
tool.Process()
self.failUnless(os.path.isfile(
- os.path.join(dirname, 'de_GoogleDesktopSearch.adm')))
+ os.path.join(dirname, 'de_GoogleDesktop.adm')))
self.failUnless(os.path.isfile(
os.path.join(dirname, 'de_README.txt')))
finally:
@@ -114,4 +114,3 @@ class AdmGathererUnittest(unittest.TestCase):
if __name__ == '__main__':
unittest.main()
-
« no previous file with comments | « tools/grit/grit/format/rc_unittest.py ('k') | tools/grit/grit/gather/rc_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698