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

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

Issue 7285006: Revert 91161 - 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/gather/rc_unittest.py ('k') | tools/grit/grit/grd_reader_unittest.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/grit/grit/gather/tr_html_unittest.py
===================================================================
--- tools/grit/grit/gather/tr_html_unittest.py (revision 91164)
+++ tools/grit/grit/gather/tr_html_unittest.py (working copy)
@@ -1,5 +1,5 @@
#!/usr/bin/python2.4
-# Copyright (c) 2011 The Chromium Authors. All rights reserved.
+# Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
@@ -241,7 +241,7 @@
def testRegressionInToolbarAbout(self):
html = tr_html.TrHtml.FromFile(
- util.PathFromRoot(r'grit/testdata/toolbar_about.html'))
+ util.PathFromRoot(r'grit/test/data/toolbar_about.html'))
html.Parse()
cliques = html.GetCliques()
for cl in cliques:
@@ -267,7 +267,7 @@
def testPrivacyHtml(self):
html = self.HtmlFromFileWithManualCheck(
- util.PathFromRoot(r'grit/testdata/privacy.html'))
+ util.PathFromRoot(r'grit/test/data/privacy.html'))
self.failUnless(html.skeleton_[1].GetMessage().GetRealContent() ==
'Privacy and Google Desktop Search')
@@ -277,7 +277,7 @@
def testPreferencesHtml(self):
html = self.HtmlFromFileWithManualCheck(
- util.PathFromRoot(r'grit/testdata/preferences.html'))
+ util.PathFromRoot(r'grit/test/data/preferences.html'))
# Verify that we don't get '[STATUS-MESSAGE]' as the original content of
# one of the MessageClique objects (it would be a placeholder-only message
@@ -300,7 +300,7 @@
num: 3
'''
for f in files:
- f = util.PathFromRoot(r'grit/testdata/%s' % f)
+ f = util.PathFromRoot(r'grit/test/data/%s' % f)
html = self.HtmlFromFileWithManualCheck(f)
self.failUnless(len(html.GetCliques()) == num)
@@ -325,7 +325,7 @@
]
for f in files:
self.HtmlFromFileWithManualCheck(
- util.PathFromRoot(r'grit/testdata/%s' % f))
+ util.PathFromRoot(r'grit/test/data/%s' % f))
def testTranslate(self):
# Note that the English translation of documents that use character
@@ -399,7 +399,7 @@
# match never to return. (culprit is the _ELEMENT regexp(
if False:
html = self.HtmlFromFileWithManualCheck(util.PathFromRoot(
- r'grit/testdata/ko_oem_enable_bug.html'))
+ r'grit/test/data/ko_oem_enable_bug.html'))
self.failUnless(True)
def testRegressionCpuHang(self):
@@ -410,3 +410,4 @@
if __name__ == '__main__':
unittest.main()
+
« no previous file with comments | « tools/grit/grit/gather/rc_unittest.py ('k') | tools/grit/grit/grd_reader_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698