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

Unified Diff: client/dom/scripts/dartgenerator_test.py

Issue 9317024: Fix all_tests script. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/dom/scripts/dartgenerator_test.py
diff --git a/client/dom/scripts/dartgenerator_test.py b/client/dom/scripts/dartgenerator_test.py
index 3ee28947b2491a8bd05099759a5e66b5108b2f34..dadf6e7a07eefad5665c85d33c803a38f6cf8a92 100755
--- a/client/dom/scripts/dartgenerator_test.py
+++ b/client/dom/scripts/dartgenerator_test.py
@@ -23,13 +23,17 @@ class DartGeneratorTestCase(unittest.TestCase):
return os.path.exists(os.path.join(self._database_dir,
'%s.idl' % interface_name))
+ def _FilePathForDartInterface(self, interface_name):
+ return os.path.join(self._generator._output_dir, 'src', 'interface',
+ '%s.dart' % interface_name)
+
def _InOutput(self, interface_name):
return os.path.exists(
- self._generator.FilePathForDartInterface(interface_name))
+ self._FilePathForDartInterface(interface_name))
def _ReadOutputFile(self, interface_name):
self.assertTrue(self._InOutput(interface_name))
- file_path = self._generator.FilePathForDartInterface(interface_name)
+ file_path = self._FilePathForDartInterface(interface_name)
f = open(file_path, 'r')
content = f.read()
f.close()
@@ -131,6 +135,7 @@ FILE CONTENT:
self._database = database.Database(self._database_dir)
self._generator = dartgenerator.DartGenerator(self._auxiliary_dir,
+ '../templates',
'test')
def tearDown(self):
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698